CCClippingNode Class Reference
| Inherits from | CCNode : CCResponder : NSObject |
| Declared in | CCClippingNode.h |
Overview
CCClippingNode can be used to clip (crop) your node content using a stencil.
Notes
- The stencil is an other CCNode that will not be drawn.
- The clipping is done using the alpha part of the stencil (adjusted with an alphaThreshold).
- Alpha threshold, content is only drawn where the stencil has pixels with alpha greater than the alpha threshold. (Default 1 disable alpha test)
- Inverted, when True only draw the content outside of the stencil. (Default False)
Tasks
Accessing Clipping Node Attributes
-
stencilproperty -
alphaThresholdproperty -
invertedproperty
Creating a CCClippingNode Object
Initializing a CCClippingNode Object
Properties
Class Methods
clippingNode
Creates and returns a clipping node object without a stencil.
+ (id)clippingNodeReturn Value
The CCClippingNode Object.
Declared In
CCClippingNode.hInstance Methods
init
Initializes and returns a clipping node object without a stencil.
- (id)initReturn Value
An initialized CCClippingNode Object.
Declared In
CCClippingNode.h