Class CCLayerRGBA

#include <Geode/cocos/layers_scenes_transitions_nodes/CCLayer.h>
classCCLayerRGBA:publiccocos2d::CCLayer,publiccocos2d::CCRGBAProtocol{ ... }

Since 2.1

CCLayerRGBA is a subclass of CCLayer that implements the CCRGBAProtocol protocol using a solid color as the background. All features from CCLayer are valid, plus the following new features that propagate into children that conform to the CCRGBAProtocol:

  • opacity
  • RGB colors
Examples0
Public static methods1
staticcocos2d::CCLayerRGBA*create()
No description provided
Public member functions15
virtualboolinit()
No description provided
virtual_::GLubytegetOpacity()
No description provided
virtual_::GLubytegetDisplayedOpacity()
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_cascadeOpacityEnabled
;
No description provided
bool_cascadeColorEnabled
;
No description provided