Hello!
I wanted to know is there any way i can use Cocos2d texture objects to texture triangle, that i draw manually using OpenGL?
I have heard about subclassing texture node and then setting self.texture = my_tex;, but i cant figure out how it actually works.
Texturing polygon using Cocos2d texture objects?
(2 posts) (2 voices)-
Posted 1 year ago #
-
Sprites are drawn as textured triangles (a triangle strip actually) - look in Sprite.m's -draw method to see how its done.
Posted 1 year ago #
Reply
You must log in to post.