Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Gasteclair's avatar
Gasteclair
Explorer
7 years ago

How to create and use TextureSwapChain in OpenGL?

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);
...
}

No RepliesBe the first to reply