cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for www.koboldtouch.com developers
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
<CCTextureProtocol> Protocol Reference

#import <CCProtocols.h>

Inheritance diagram for <CCTextureProtocol>:
Collaboration diagram for <CCTextureProtocol>:

Instance Methods

(CCTexture2D *) - texture
 
(void) - setTexture:
 
 Instance Methods inherited from <CCBlendProtocol>
(void) - setBlendFunc:
 
(ccBlendFunc- blendFunc
 

Detailed Description

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.

Since
v0.8.0

Method Documentation

- (void) setTexture: (CCTexture2D *)  texture

sets a new texture. it will be retained

- (CCTexture2D*) texture

returns the used texture


The documentation for this protocol was generated from the following file: