Files
Aerofoil/GpCommon/GpDisplayDriverProperties.h

33 lines
730 B
C
Raw Normal View History

2019-12-21 18:40:17 -05:00
#pragma once
#include "EGpDisplayDriverType.h"
struct IGpDisplayDriver;
struct IGpFiber;
2019-12-21 18:40:17 -05:00
struct GpDisplayDriverProperties
{
typedef void(*TickFunc_t)(void *context, IGpFiber *vosFiber);
2019-12-21 18:40:17 -05:00
typedef void(*RenderFunc_t)(void *context);
EGpDisplayDriverType m_type;
unsigned int m_frameTimeLockNumerator;
unsigned int m_frameTimeLockDenominator;
unsigned int m_frameTimeLockMinNumerator;
unsigned int m_frameTimeLockMinDenominator;
unsigned int m_frameTimeLockMaxNumerator;
unsigned int m_frameTimeLockMaxDenominator;
2019-12-22 00:35:30 -05:00
void *m_osGlobals;
2019-12-21 18:40:17 -05:00
// Tick function and context to call when a frame needs to be served.
TickFunc_t m_tickFunc;
void *m_tickFuncContext;
RenderFunc_t m_renderFunc;
void *m_renderFuncContext;
};