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] = ?
ld.ColorTexture[0] = ?
- 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.
2 Replies
- jhericoAdventurerthe `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. - AnonymousThank you : still struggling a bit but perhaps I will manage to muddle through.
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
- 21 days ago
- 9 months ago
- 4 months ago
- 9 months ago
- 9 months ago