cpShapeNode Class Reference
Inherits from | cpCCNode : CCNode : NSObject |
Conforms to | CCRGBAProtocol |
Declared in | cpShapeNode.h |
Tasks
-
color
Color of our drawn shape
property -
opacity
Opacity of our drawn shape
property -
pointSize
Size of drawn points, default is 3
property -
lineWidth
Width of the drawn lines, default is 1
property -
smoothDraw
If this is set to YES/TRUE then the shape will be drawn with smooth lines/points
property -
fillShape
If this is set to YES/TRUE then the shape will be filled when drawn
property -
drawDecoration
Currently only circle has a “decoration” it is an extra line to see the rotation
property -
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
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 cacheDraw
Declared In
cpShapeNode.h
color
Color of our drawn shape
@property (nonatomic, readwrite, assign) ccColor3B color
Declared In
cpShapeNode.h
drawDecoration
Currently only circle has a “decoration” it is an extra line to see the rotation
@property (readwrite, assign) BOOL drawDecoration
Declared In
cpShapeNode.h
fillShape
If this is set to YES/TRUE then the shape will be filled when drawn
@property (readwrite, assign) BOOL fillShape
Declared In
cpShapeNode.h
lineWidth
Width of the drawn lines, default is 1
@property (readwrite, assign) cpFloat lineWidth
Declared In
cpShapeNode.h
opacity
Opacity of our drawn shape
@property (nonatomic, readwrite, assign) GLubyte opacity
Declared In
cpShapeNode.h