Hi,
I'm using cocos2d-iphone.
I want to apply a OpenGL effect to my Spine Character, is that possible ?
Hi,
I'm using cocos2d-iphone.
I want to apply a OpenGL effect to my Spine Character, is that possible ?
Yes. You can implement your own renderer and draw however you like. You can see the reference implementation renderer here:
https://github.com/EsotericSoftware/spi ... n.cpp#L120
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 escreveuyou 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.