CCTextureProtocol Protocol Reference
Conforms to | CCBlendProtocol |
Declared in | CCProtocols.h |
Overview
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 function at any time.
Tasks
-
– texture
returns the used texture
required method -
– setTexture:
sets a new texture. it will be retained
required method