27 #ifndef OVR_CAPI_DistortionRenderer_h
28 #define OVR_CAPI_DistortionRenderer_h
34 namespace OVR {
namespace CAPI {
63 unsigned distortionCaps) = 0;
72 virtual void EndFrame(
bool swapBuffers,
unsigned char* latencyTesterDrawColor,
73 unsigned char* latencyTester2DrawColor) = 0;
99 virtual void Save() = 0;
116 #endif // OVR_CAPI_DistortionRenderer_h
const HMDRenderState & RState
FrameTimeManager & TimeManager
virtual ~DistortionRenderer()
void operator=(const DistortionRenderer &)
virtual void SubmitEye(int eyeId, ovrTexture *eyeTexture)=0
DistortionRenderer(ovrRenderAPIType api, ovrHmd hmd, FrameTimeManager &timeManager, const HMDRenderState &renderState)
const ovrRenderAPIType RenderAPI
Ptr< GraphicsState > GfxState
virtual bool Initialize(const ovrRenderAPIConfig *apiConfig, unsigned distortionCaps)=0
virtual void EndFrame(bool swapBuffers, unsigned char *latencyTesterDrawColor, unsigned char *latencyTester2DrawColor)=0
DistortionRenderer *(* CreateFunc)(ovrHmd hmd, FrameTimeManager &timeManager, const HMDRenderState &renderState)
ovrRenderAPIType GetRenderAPI() const
static CreateFunc APICreateRegistry[ovrRenderAPI_Count]
void RestoreGraphicsState()