Forum Discussion
Gasteclair
7 years agoExplorer
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
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
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 7 months ago
- 2 months ago
- 11 months ago
- 10 months ago