cocos2d-iphone
1.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
CC RGBA protocol. More...
#import <CCProtocols.h>
Public Member Functions | |
(void) | - setColor: |
(ccColor3B) | - color |
(GLubyte) | - opacity |
returns the opacity | |
(void) | - setOpacity: |
(void) | - setOpacityModifyRGB: |
(BOOL) | - doesOpacityModifyRGB |
CC RGBA protocol.
- (BOOL) doesOpacityModifyRGB | [optional] |
returns whether or not the opacity will be applied using glColor(R,G,B,opacity) or glColor(opacity, opacity, opacity, opacity);
- (GLubyte) opacity |
returns the opacity
- (void) setOpacity: | (GLubyte) | opacity |
sets the opacity.
- (void) setOpacityModifyRGB: | (BOOL) | boolean | [optional] |
sets the premultipliedAlphaOpacity property. If set to NO then opacity will be applied as: glColor(R,G,B,opacity); If set to YES then oapcity will be applied as: glColor(opacity, opacity, opacity, opacity ); Textures with premultiplied alpha will have this property by default on YES. Otherwise the default value is NO