Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17076

Create sprite or Texture2D from TextureName on OpenGL

$
0
0

@namkazt wrote:

Hello,

As title, i want to ask how to create a Sprite or Texture2D from a texture name already with OpenGL.

More details is : I have capture image from Java code then pull it to a SurfaceTexture with input Texture ID so how can i get that texture out with cocos2d-x. ( v3.8.1 )

For now i'm using JNI to transfer image data to cocos2d-x but i think it is not so performance.

thank you.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>