axmol/tools/tolua++/CCDrawingPrimitives.pkg

20 lines
1.2 KiB
Plaintext
Raw Normal View History

2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
void ccDrawPoint(CCPoint point);
void ccDrawPoints(const CCPoint *points, unsigned int numberOfPoints);
void ccDrawLine(CCPoint origin, CCPoint destination);
void ccDrawRect(CCPoint origin, CCPoint destination);
void ccDrawSolidRect(CCPoint origin, CCPoint destination, ccColor4F color);
void ccDrawPoly(const CCPoint *vertices, unsigned int numOfVertices, bool closePolygon);
void ccDrawSolidPoly(const CCPoint* poli, unsigned int numberOfPoints, ccColor4F color);
2012-09-14 18:00:11 +08:00
void ccDrawCircle(const CCPoint& center, float radius, float angle, unsigned int segments, bool drawLineToCenter, float xScale = 1.0f, float yScale = 1.0f);
void ccDrawQuadBezier(CCPoint origin, CCPoint control, CCPoint destination, unsigned int segments);
void ccDrawCubicBezier(CCPoint origin, CCPoint control1, CCPoint control2, CCPoint destination, unsigned int segments);
void ccDrawCatmullRom(CCPointArray* arrayOfControlPoints, unsigned int segments);
void ccDrawCardinalSpline(CCPointArray* config, float tension, unsigned int segments);
void ccDrawColor4B(GLubyte r, GLubyte g, GLubyte b, GLubyte a);
void ccDrawColor4F(GLubyte r, GLubyte g, GLubyte b, GLubyte a);
void ccPointSize(GLfloat pointSize);
// glew.h API:
2012-09-02 01:18:28 +08:00
// void glLineWidth(GLfloat width);