|
cocos2d-iphone
1.0.1
Improved Cocos2D API Reference (iOS version) for Kobold2D developers
|
#include <CCProtocols.h>
Inheritance diagram for <CCTextureProtocol>:
Collaboration diagram for <CCTextureProtocol>:Public Member Functions | |
| CCTexture2D * | texture () |
| void | setTexture: (CCTexture2D *texture) |
CCNode objects that uses a Texture2D to render the images. The texture can have a blending function. If the texture has alpha premultiplied the default blending function is: src=GL_ONE dst= GL_ONE_MINUS_SRC_ALPHA else src=GL_SRC_ALPHA dst= GL_ONE_MINUS_SRC_ALPHA But you can change the blending funtion at any time.
| void CCTextureProtocol-p::setTexture: | ( | CCTexture2D * | texture | ) | [virtual] |
sets a new texture. it will be retained
| CCTexture2D* CCTextureProtocol-p::texture | ( | ) | [virtual] |
returns the used texture