ovrResult | ovr_CreateTextureSwapChainGL ( ovrSession session, const ovrTextureSwapChainDesc * desc, ovrTextureSwapChain * out_TextureSwapChain ) Creates a TextureSwapChain suitable for use with OpenGL. |
ovrResult | ovr_GetTextureSwapChainBufferGL ( ovrSession session, ovrTextureSwapChain chain, int index, unsigned int * out_TexId ) Get a specific buffer within the chain as a GL texture name. |
ovrResult | ovr_CreateMirrorTextureWithOptionsGL ( ovrSession session, const ovrMirrorTextureDesc * desc, ovrMirrorTexture * out_MirrorTexture ) Creates a Mirror Texture which is auto-refreshed to mirror Rift contents produced by this application. |
ovrResult | ovr_CreateMirrorTextureGL ( ovrSession session, const ovrMirrorTextureDesc * desc, ovrMirrorTexture * out_MirrorTexture ) Deprecated. |
ovrResult | ovr_GetMirrorTextureBufferGL ( ovrSession session, ovrMirrorTexture mirrorTexture, unsigned int * out_TexId ) Get a the underlying buffer as a GL texture name. |
/********************************************************************************/ #ifndef OVR_CAPI_GL_h #define OVR_CAPI_GL_h #include "OVR_CAPI.h" #if !defined(OVR_EXPORTING_CAPI) // ovr_DestroyTextureSwapChain before destroying the session with ovr_Destroy. OVR_PUBLIC_FUNCTION(ovrResult) ovr_CreateTextureSwapChainGL( ovrSession session, const ovrTextureSwapChainDesc* desc, ovrTextureSwapChain* out_TextureSwapChain); OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetTextureSwapChainBufferGL( ovrSession session, ovrTextureSwapChain chain, int index, unsignedint* out_TexId); // are requested as sRGB formats because the distortion compositor does sRGB-correct // incorrect gamma conversions leading to gamma-curve artifacts and color banding. OVR_PUBLIC_FUNCTION(ovrResult) ovr_CreateMirrorTextureWithOptionsGL( ovrSession session, const ovrMirrorTextureDesc* desc, ovrMirrorTexture* out_MirrorTexture); OVR_PUBLIC_FUNCTION(ovrResult) ovr_CreateMirrorTextureGL( ovrSession session, const ovrMirrorTextureDesc* desc, ovrMirrorTexture* out_MirrorTexture); // by ovr_CreateMirrorTextureWithOptionsGL OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetMirrorTextureBufferGL( ovrSession session, ovrMirrorTexture mirrorTexture, unsignedint* out_TexId); #endif // !defined(OVR_EXPORTING_CAPI) #endif // OVR_CAPI_GL_h