cpShapeNode Class Reference
| Inherits from | cpCCNode : CCNode : NSObject |
| Conforms to | CCRGBAProtocol |
| Declared in | cpShapeNode.h |
Tasks
-
colorColor of our drawn shape
property -
opacityOpacity of our drawn shape
property -
pointSizeSize of drawn points, default is 3
property -
lineWidthWidth of the drawn lines, default is 1
property -
smoothDrawIf this is set to YES/TRUE then the shape will be drawn with smooth lines/points
property -
fillShapeIf this is set to YES/TRUE then the shape will be filled when drawn
property -
drawDecorationCurrently only circle has a “decoration” it is an extra line to see the rotation
property -
cacheDrawCache the drawing (default is YES), if you are going to be changing the shape physically (ex. increase circle radius) then this should be NO
property
Properties
cacheDraw
Cache the drawing (default is YES), if you are going to be changing the shape physically (ex. increase circle radius) then this should be NO
@property (readwrite, assign) BOOL cacheDrawDeclared In
cpShapeNode.hcolor
Color of our drawn shape
@property (nonatomic, readwrite, assign) ccColor3B colorDeclared In
cpShapeNode.hdrawDecoration
Currently only circle has a “decoration” it is an extra line to see the rotation
@property (readwrite, assign) BOOL drawDecorationDeclared In
cpShapeNode.hfillShape
If this is set to YES/TRUE then the shape will be filled when drawn
@property (readwrite, assign) BOOL fillShapeDeclared In
cpShapeNode.hlineWidth
Width of the drawn lines, default is 1
@property (readwrite, assign) cpFloat lineWidthDeclared In
cpShapeNode.hopacity
Opacity of our drawn shape
@property (nonatomic, readwrite, assign) GLubyte opacityDeclared In
cpShapeNode.h