|
cocos2d-mac
1.0.1
Improved Cocos2D API Reference (Mac OS X version) for Kobold2D developers
|
CC RGBA protocol. More...
#include <CCProtocols.h>
Public Member Functions | |
| void | setColor: (ccColor3B color) |
| ccColor3B | color () |
| GLubyte | opacity () |
| returns the opacity | |
| void | setOpacity: (GLubyte opacity) |
| void | setOpacityModifyRGB: (BOOL boolean) |
| BOOL | doesOpacityModifyRGB () |
CC RGBA protocol.
| ccColor3B CCRGBAProtocol-p::color | ( | ) | [virtual] |
returns the color
| BOOL CCRGBAProtocol-p::doesOpacityModifyRGB | ( | ) | [optional, virtual] |
returns whether or not the opacity will be applied using glColor(R,G,B,opacity) or glColor(opacity, opacity, opacity, opacity);
| GLubyte CCRGBAProtocol-p::opacity | ( | ) | [virtual] |
returns the opacity
| void CCRGBAProtocol-p::setColor: | ( | ccColor3B | color | ) | [virtual] |
sets Color
| void CCRGBAProtocol-p::setOpacity: | ( | GLubyte | opacity | ) | [virtual] |
sets the opacity.
| void CCRGBAProtocol-p::setOpacityModifyRGB: | ( | BOOL | boolean | ) | [optional, virtual] |
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