CCDrawNode with texture?

I was drawing a few thousand vertices every frame and performance was pretty bad on mobile, so i converted to a CCDrawNode for vbo caching benefits and it made a big difference. However I can’t figure out how to make textures work in the CCDrawNode. Does CCDrawNode support textures on its polygons? I was looking at its source and I see the rendering and structs account for texture coordinates, and it’s generating some texture coordinates somehow but I had no luck at all trying to hack it into using my texture vertices and texture objects. Any suggestions?

1 Like