cancel
Showing results for 
Search instead for 
Did you mean: 

How to create and use TextureSwapChain in OpenGL?

Gasteclair
Explorer
Hello, I'm currently trying to use the Native SDK of OVR.
But I've a problem : 
https://developer.oculus.com/documentation/pcsdk/latest/concepts/dg-render/
What should I put instead of "...", I tried FBOs, but doesn't works.
And how to use while render it.

Thanks.

EDIT : It was not a problem with FBO, so yes you should you fbos there
if (ovr_CreateTextureSwapChainGL(session, &desc, &textureSwapChain) == ovrSuccess)
{
// Sample texture access:
int texId;
ovr_GetTextureSwapChainBufferGL(session, textureSwapChain, 0, &texId);
glBindTexture(GL_TEXTURE_2D, texId);
...
}

0 REPLIES 0