#import "CCProtocols.h"
Inherits CCBlendProtocol-p.
Inherited by CCAtlasNode, CCMotionStreak, CCParticleSystem, CCRibbon, CCSprite, and CCSpriteBatchNode.
Public Member Functions | |
| (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) setTexture: | (CCTexture2D *) | texture |
sets a new texture. it will be retained
| - (CCTexture2D*) texture |
returns the used texture
1.7.1