CC RGBA protocol. More...
#import "CCProtocols.h"
Inherited by CCAtlasNode, CCLabelBMFont, CCLayerColor, CCMenu, CCMenuItemLabel, CCMenuItemSprite, CCMenuItemToggle, and CCSprite.
Public Member Functions | |
(ccColor3B) | - color |
(BOOL) | - doesOpacityModifyRGB |
(GLubyte) | - opacity |
returns the opacity | |
(void) | - setColor: |
(void) | - setOpacity: |
(void) | - setOpacityModifyRGB: |
CC RGBA protocol.
- (ccColor3B) color |
returns the color
- (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) setColor: | (ccColor3B) | color |
sets Color
- (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