• Editor
  • Spine and OpenGL

Hi,

I'm using cocos2d-iphone.
I want to apply a OpenGL effect to my Spine Character, is that possible ?

Related Discussions
...

thanks 🙂
you wouldn't happen to know how to 'ccGLBindTexture2D()' bind the skeleton texture, or each attachment, if it is possible?

Sorry, cocos2d fourms are probably your best bet.

BigRed escreveu

you wouldn't happen to know how to 'ccGLBindTexture2D()' bind the skeleton texture, or each attachment, if it is possible?

The 'ccGLBindTexture2D()' call happens when the 'textureAtlas->drawQuads()' call happens in CCSkeleton.cpp. Essentially, the 'draw()' function updates where each section of the atlas should be drawn then all the 'draws' happen at once.

Not sure what you're looking to do here or how this helps but... there you go.

Are you thinking about applying different shader programs to the draws? Because, if so, I'd be curious to see what you come up with.