Forum Discussion
Anonymous
10 years agoHow to pass a GL texture pointer to ovrTextureSwapChain?
We are working with our own custom plugin, and are now a bit stuck on how to pass the GL texture handle we have to the ovrLayerEyeFov ld. ( 1.3 SDK ) ld.ColorTexture[0] = ?
- 10 years agothe `ColorTexture` member of `ovrLayerEyeFov` is an `ovrTextureSwapChain`. It should be populated with a swap chain you created with `ovr_CreateTextureSwapChainGL`.
If the GL texture handle you have is one you got from that swap chain (using `ovr_GetTextureSwapChainBufferGL`) then it's already part of the internals. If it's some GL texture handle you created, then you need to copy it into the texture handle fetched from the SDK.
jherico
10 years agoAdventurer
the `ColorTexture` member of `ovrLayerEyeFov` is an `ovrTextureSwapChain`. It should be populated with a swap chain you created with `ovr_CreateTextureSwapChainGL`.
If the GL texture handle you have is one you got from that swap chain (using `ovr_GetTextureSwapChainBufferGL`) then it's already part of the internals. If it's some GL texture handle you created, then you need to copy it into the texture handle fetched from the SDK.
If the GL texture handle you have is one you got from that swap chain (using `ovr_GetTextureSwapChainBufferGL`) then it's already part of the internals. If it's some GL texture handle you created, then you need to copy it into the texture handle fetched from the SDK.
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
- 2 months ago
- 10 months ago
- 9 months ago
- 5 months ago
- 10 months ago