Function ovr_sys::opengl::ovr_GetTextureSwapChainBufferGL
source · pub unsafe extern "C" fn ovr_GetTextureSwapChainBufferGL(
session: ovrSession,
chain: ovrTextureSwapChain,
index: c_int,
out_TexId: *mut c_uint
) -> ovrResult
Expand description
Get a specific buffer within the chain as a GL texture name
in session
Specifies an ovrSession
previously returned by ovr_Create
.
in chain
Specifies an ovrTextureSwapChain
previously returned by ovr_CreateTextureSwapChainGL
in index
Specifies the index within the chain to retrieve. Must be between 0 and length (see ovr_GetTextureSwapChainLength
)
or may pass -1 to get the buffer at the CurrentIndex
location. (Saving a call to GetTextureSwapChainCurrentIndex
)
out out_TexId
Returns the GL texture object name associated with the specific index requested
Returns an ovrResult
indicating success or failure. In the case of failure, use
ovr_GetLastErrorInfo
to get more information.