Drawing OpenGL ES primitives. More...
Namespaces | |
cocos2d | |
Add deprecated global functions and variables here. | |
cocos2d::DrawPrimitives | |
Constant Groups | |
cocos2d | |
Add deprecated global functions and variables here. | |
cocos2d::DrawPrimitives | |
Functions | |
void | () |
Initializes the drawing primitives. More... | |
void | () |
Frees allocated resources by the drawing primitives. More... | |
void | (const Point &point) |
draws a point given x and y coordinate measured in points More... | |
local | ( local point) |
draws a point given x and y coordinate measured in points More... | |
void | (const Point *points, unsigned int numberOfPoints) |
draws an array of points. More... | |
var | ( var points, var numberOfPoints) |
draws an array of points. More... | |
local | ( local points, local numberOfPoints) |
draws an array of points. More... | |
void | (const Point &origin, const Point &destination) |
draws a line given the origin and destination point measured in points More... | |
local | ( local origin, local destination) |
draws a line given the origin and destination point measured in points More... | |
void | (Point origin, Point destination) |
draws a rectangle given the origin and destination point measured in points. More... | |
void | (Point origin, Point destination, Color4F color) |
draws a solid rectangle given the origin and destination point measured in points. More... | |
var | ( var origin, var destination, var color) |
draws a solid rectangle given the origin and destination point measured in points. More... | |
local | ( local origin, local destination, local color) |
draws a solid rectangle given the origin and destination point measured in points. More... | |
void | (const Point *vertices, unsigned int numOfVertices, bool closePolygon) |
draws a polygon given a pointer to Point coordinates and the number of vertices measured in points. More... | |
void | (const Point *poli, unsigned int numberOfPoints, Color4F color) |
draws a solid polygon given a pointer to CGPoint coordinates, the number of vertices measured in points, and a color. More... | |
void | (const Point ¢er, float radius, float angle, unsigned int segments, bool drawLineToCenter, float scaleX, float scaleY) |
draws a circle given the center, radius and number of segments. More... | |
void | (const Point ¢er, float radius, float angle, unsigned int segments, bool drawLineToCenter) |
local | ( local center, local radius, local angle, local segments, local drawLineToCenter) |
void | (const Point ¢er, float radius, float angle, unsigned int segments, float scaleX, float scaleY) |
draws a solid circle given the center, radius and number of segments. More... | |
void | (const Point ¢er, float radius, float angle, unsigned int segments) |
void | (const Point &origin, const Point &control, const Point &destination, unsigned int segments) |
draws a quad bezier path More... | |
local | ( local origin, local control, local destination, local segments) |
draws a quad bezier path More... | |
void | (const Point &origin, const Point &control1, const Point &control2, const Point &destination, unsigned int segments) |
draws a cubic bezier path More... | |
local | ( local origin, local control1, local control2, local destination, local segments) |
draws a cubic bezier path More... | |
void | (PointArray *arrayOfControlPoints, unsigned int segments) |
draws a Catmull Rom path. More... | |
local | ( local arrayOfControlPoints, local segments) |
draws a Catmull Rom path. More... | |
void | (PointArray *config, float tension, unsigned int segments) |
draws a Cardinal Spline path. More... | |
local | ( local config, local tension, local segments) |
draws a Cardinal Spline path. More... | |
void | (GLubyte r, GLubyte g, GLubyte b, GLubyte a) |
set the drawing color with 4 unsigned bytes More... | |
local | ( local r, local g, local b, local a) |
set the drawing color with 4 unsigned bytes More... | |
void | (GLfloat r, GLfloat g, GLfloat b, GLfloat a) |
set the drawing color with 4 floats More... | |
void | (GLfloat pointSize) |
set the point size in points. More... | |
Drawing OpenGL ES primitives.
You can change the color, point size, width by calling: