RGBA protocol that affects CCNode’s color and opacity
Class CCRGBAProtocol
#include <Geode/cocos/include/CCProtocols.h>
Examples0
Public static methods0
Public member functions14
virtualvoidsetColor()=0
Changes the color with R,G,B bytes
color
virtualcocos2d::ccColor3Bconst&getColor()=0
Returns color that is currently used.
virtualcocos2d::ccColor3Bconst&getDisplayedColor()=0
Returns the displayed color.
virtual_::GLubytegetDisplayedOpacity()=0
Returns the displayed opacity.
virtual_::GLubytegetOpacity()=0
Returns the opacity.
The opacity which indicates how transparent or opaque this node is. 0 indicates fully transparent and 255 is fully opaque.
virtualvoidsetOpacity(_::GLubyteopacity)=0
Changes the opacity.
value
virtualvoidsetOpacityModifyRGB(boolbValue)=0
Changes the OpacityModifyRGB property. If thie property is set to true, then the rendered color will be affected by opacity. Normally, r = r * opacity/255, g = g * opacity/255, b = b * opacity/255.
bValue
virtualboolisOpacityModifyRGB()=0
Returns whether or not the opacity will be applied using glColor(R,G,B,opacity) or glColor(opacity, opacity, opacity, opacity)
virtualboolisCascadeColorEnabled()=0
whether or not color should be propagated to its children.
virtualvoidupdateDisplayedColor()=0
recursive method that updates display color
virtualboolisCascadeOpacityEnabled()=0
whether or not opacity should be propagated to its children.
virtualvoidupdateDisplayedOpacity(_::GLubyteopacity)=0
recursive method that updates the displayed opacity.