#include <CCProtocols.h>
Public Member Functions | |
virtual CCTexture2D * | getTexture (void)=0 |
Returns the currently used texture. More... | |
virtual void | setTexture (CCTexture2D *texture)=0 |
Sets a new texuture. More... | |
Public Member Functions inherited from CCBlendProtocol | |
virtual void | setBlendFunc (ccBlendFunc blendFunc)=0 |
Sets the source blending function. More... | |
virtual ccBlendFunc | getBlendFunc (void)=0 |
Returns the blending function that is currently being used. More... | |
|
pure virtual |
Returns the currently used texture.
Implemented in CCParticleSystem, CCSprite, CCSpriteBatchNode, CCAtlasNode, CCParticleBatchNode, and CCMotionStreak.
|
pure virtual |
Sets a new texuture.
It will be retained.
texture | A valid CCTexture2D object, which will be applied to this sprite object. |
Implemented in CCParticleSystem, CCSprite, CCSpriteBatchNode, CCAtlasNode, CCParticleBatchNode, CCParticleSystemQuad, and CCMotionStreak.