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

Why ccsprite's texture coordinate don't coincide with OpenGL?

$
0
0

@ford88998 wrote:

Hi all

In Opengl ES 2.0 specification, the texture coordinate's bottom left is (0,0), top left is (0, 1).

but in cocos2d-x 3.x, the texture coordinate of ccsprite are different with Opengl. in 2dx, bottom left is (0,1) ,top left is (0, 0).

Please tell why 2dx need to invert the texture coordinate. Thanks very much.

please check the function setTextureCoords() of ccsprite

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17088

Trending Articles



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