Class CCNodeRGBA

#include <Geode/cocos/base_nodes/CCNode.h>
classCCNodeRGBA:publiccocos2d::CCNode,publiccocos2d::CCRGBAProtocol{ ... }

Since v2.1

CCNodeRGBA is a subclass of CCNode that implements the CCRGBAProtocol protocol. All features from CCNode are valid, plus the following new features:

  • opacity
  • RGB colors Opacity/Color propagates into children that conform to the CCRGBAProtocol if cascadeOpacity/cascadeColor is enabled.
Examples0
Public static methods1
staticcocos2d::CCNodeRGBA*create()

Allocates and initializes a nodergba.

Return value
A initialized node which is marked as "autorelease".
Public member functions15
virtualboolinit()
No description provided
virtualGLubytegetOpacity()
No description provided
virtualGLubytegetDisplayedOpacity()
No description provided
virtualvoidsetOpacity(
GLubyteopacity
)
No description provided
virtualvoidupdateDisplayedOpacity(
GLubyteparentOpacity
)
No description provided
virtualboolisCascadeOpacityEnabled()
No description provided
virtualvoidsetCascadeOpacityEnabled(
boolcascadeOpacityEnabled
)
No description provided
virtualcocos2d::ccColor3Bconst&getColor()
No description provided
virtualcocos2d::ccColor3Bconst&getDisplayedColor()
No description provided
virtualvoidsetColor()
No description provided
virtualvoidupdateDisplayedColor()
No description provided
virtualboolisCascadeColorEnabled()
No description provided
virtualvoidsetCascadeColorEnabled(
boolcascadeColorEnabled
)
No description provided
virtualvoidsetOpacityModifyRGB(
boolbValue
)
No description provided
virtualboolisOpacityModifyRGB()
No description provided
Fields0
Protected member functions0
Protected fields6
GLubyte_displayedOpacity
;
No description provided
GLubyte_realOpacity
;
No description provided
cocos2d::ccColor3B_displayedColor
;
No description provided
;
No description provided
bool_cascadeColorEnabled
;
No description provided
bool_cascadeOpacityEnabled
;
No description provided