Skip to main content

CCLayerRGBA

CCLayerRGBA

Cocos2D

Inheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCLayer

Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, System.Collections.Generic.IComparer{Cocos2D.CCNode}, Cocos2D.ICCAccelerometerDelegate, Cocos2D.ICCRGBAProtocol

Constructors

CCLayerRGBA()

CCLayerRGBA()()

Fields

_cascadeColorEnabled(System.Boolean)
_cascadeOpacityEnabled(System.Boolean)
_displayedColor(Cocos2D.CCColor3B)
_displayedOpacity(System.Byte)
_realColor(Cocos2D.CCColor3B)
_realOpacity(System.Byte)

Properties

CascadeColorEnabled(System.Boolean)

returns whether or not the opacity will be applied using glColor(R,G,B,opacity) or glColor(opacity, opacity, opacity, opacity); @since v0.8 whether or not color should be propagated to its children.

CascadeOpacityEnabled(System.Boolean)

whether or not opacity should be propagated to its children.

Color(Cocos2D.CCColor3B)

Gets or sets the color

DisplayedColor(Cocos2D.CCColor3B)
DisplayedOpacity(System.Byte)
IsOpacityModifyRGB(System.Boolean)

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 @since v0.8

Opacity(System.Byte)

Gets or sets the Opacity @warning If the the texture has premultiplied alpha then, the R, G and B channels will be modifed. Values goes from 0 to 255, where 255 means fully opaque.

Methods

Init()

System.Boolean Init()()
Returns:
System.Boolean
Example

UpdateDisplayedColor(CCColor3B)

UpdateDisplayedColor(CCColor3B)(Cocos2D.CCColor3B parentColor)

recursive method that updates display color

Parameters:
parentColor (Cocos2D.CCColor3B)
Example

UpdateDisplayedOpacity(byte)

UpdateDisplayedOpacity(byte)(System.Byte parentOpacity)

recursive method that updates the displayed opacity.

Parameters:
parentOpacity (System.Byte)
Example