Android sample: draw onto texture from TextureView in regular Activity #185
Answered
by
TheMostDiligent
netherpyro
asked this question in
Q&A
-
Hi! Thank you for the great lib. Could you please describe in general terms how can I change the Android sample to use TextureView inside Activity instead of NativeActivity to render on to? |
Beta Was this translation helpful? Give feedback.
Answered by
TheMostDiligent
Feb 20, 2022
Replies: 1 comment
-
I suppose you need to extract a native handle from the view and then you can create a Diligent texture using either IRenderDeviceGL::CreateTextureFromGLHandle or IRenderDeviceVk::CreateTextureFromVulkanImage depending on the API you are using. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
netherpyro
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suppose you need to extract a native handle from the view and then you can create a Diligent texture using either IRenderDeviceGL::CreateTextureFromGLHandle or IRenderDeviceVk::CreateTextureFromVulkanImage depending on the API you are using.