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

Properties

blendFunc

Instance Methods

clear

Clear the geometry in the node’s buffer.

- (void)clear

Declared In

CCDrawNode.h

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

drawPolyWithVerts:count:fillColor:borderWidth:borderColor:

draw a polygon with a fill color and line color

- (void)drawPolyWithVerts:(CGPoint *)verts count:(NSUInteger)count fillColor:(ccColor4F)fill borderWidth:(CGFloat)width borderColor:(ccColor4F)line

Declared In

CCDrawNode.h

drawSegmentFrom:to:radius:color:

draw a segment with a radius and color

- (void)drawSegmentFrom:(CGPoint)a to:(CGPoint)b radius:(CGFloat)radius color:(ccColor4F)color

Declared In

CCDrawNode.h