CCDrawNode Class Reference
Inherits from | CCNode : NSObject |
Declared in | CCDrawNode.h |
Overview
CCDrawNode Node that draws dots, segments and polygons. Faster than the “drawing primitives” since they it draws everything in one single batch.
Tasks
-
blendFunc
property -
– drawDot:radius:color:
draw a dot at a position, with a given radius and color
-
– drawSegmentFrom:to:radius:color:
draw a segment with a radius and color
-
– drawPolyWithVerts:count:fillColor:borderWidth:borderColor:
draw a polygon with a fill color and line color
-
– clear
Clear the geometry in the node’s buffer.
Instance Methods
drawDot:radius:color:
draw a dot at a position, with a given radius and color
- (void)drawDot:(CGPoint)pos radius:(CGFloat)radius color:(ccColor4F)color
Declared In
CCDrawNode.h