mirror of
https://github.com/ValveSoftware/openvr.git
synced 2026-11-17 02:11:36 +00:00
VROverlayError SetOverlayTexture( VROverlayHandle_t ulOverlayHandle, GraphicsAPIConvention eTextureType, void* pTexture )
Texture to draw for the overlay.
VROverlayHandle_t ulOverlayHandle- Handle of the overlay to set the texture forGraphicsAPIConvention eTextureType- EitherAPI_DirectXorAPI_OpenGLdepending on what the texture pointer refers tovoid* pTexture- Pointer to the texture in question. See description
Description
Sets an existing application-created graphics resource as the texture for the overlay. The type of the pTexture depends on the eTextureType parameter
- API_DirectX - pTexture must be a pointer to one of:
- ID3D10Texture*
- ID3D11Texture*
- API_OpenGL - pTexture must the
GLuintof the texture- Supported formats on Windows:
- Linear:
- GL_RGBA16
- GL_RGBA16F
- GL_RGB16F
- sRGB:
- GL_RGBA8
- GL_SRGB8
- GL_SRGB8_ALPHA8
- GL_RGB8
- GL_RGBA
- Linear:
- Supported formats on Windows: