CCRGBAProtocol Protocol Reference
| Conforms to | NSObject |
| Declared in | CCProtocols.h |
Tasks
-
colorsets and returns the color (tint)
property required method -
displayedColorreturns the displayed color
property required method -
cascadeColorEnabledwhether or not color should be propagated to its children
property required method -
– updateDisplayedColor:recursive method that updates display color
required method -
opacitysets and returns the opacity.
property required method -
displayedOpacityreturns the displayed opacity
property required method -
cascadeOpacityEnabledwhether or not opacity should be propagated to its children
property required method -
– updateDisplayedOpacity:recursive method that updates the displayed opacity
required method -
– setOpacityModifyRGB:sets the premultipliedAlphaOpacity property. If set to NO then opacity will be applied as: glColor(R,G,B,opacity); If set to YES then opacity 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
-
– doesOpacityModifyRGBreturns whether or not the opacity will be applied using glColor(R,G,B,opacity) or glColor(opacity, opacity, opacity, opacity);
Properties
cascadeColorEnabled
whether or not color should be propagated to its children
@property (nonatomic, getter=isCascadeColorEnabled) BOOL cascadeColorEnabledDeclared In
CCProtocols.hcascadeOpacityEnabled
whether or not opacity should be propagated to its children
@property (nonatomic, getter=isCascadeOpacityEnabled) BOOL cascadeOpacityEnabledDeclared In
CCProtocols.hcolor
sets and returns the color (tint)
@property (nonatomic) ccColor3B colorAvailability
Declared In
CCProtocols.hdisplayedColor
returns the displayed color
@property (nonatomic, readonly) ccColor3B displayedColorDeclared In
CCProtocols.hInstance Methods
doesOpacityModifyRGB
returns whether or not the opacity will be applied using glColor(R,G,B,opacity) or glColor(opacity, opacity, opacity, opacity);
- (BOOL)doesOpacityModifyRGBAvailability
Declared In
CCProtocols.hsetOpacityModifyRGB:
sets the premultipliedAlphaOpacity property. If set to NO then opacity will be applied as: glColor(R,G,B,opacity); If set to YES then opacity 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
- (void)setOpacityModifyRGB:(BOOL)booleanAvailability
Declared In
CCProtocols.h