cocos2d-x  2.2.3-gd2.113-rev1ec524e
Loading...
Searching...
No Matches
Global

Classes

class  CCConfiguration
 CCConfiguration contains some openGL variables. More...
 
class  CCTimer
 Light-weight timer. More...
 
class  CCScheduler
 Scheduler is responsible for triggering the scheduled callbacks. More...
 
class  CCProfiler
 CCProfiler cocos2d builtin profiler. More...
 
class  CCProfilingTimer
 NA NA. More...
 

Macros

#define kCCPrioritySystem   INT_MIN
 
#define kCCPriorityNonSystemMin   (kCCPrioritySystem+1)
 

Functions

void CC_DLL ccDrawInit ()
 Initializes the drawing primitives. More...
 
void CC_DLL ccDrawFree ()
 Frees allocated resources by the drawing primitives. More...
 
void CC_DLL ccDrawPoint (const CCPoint &point)
 draws a point given x and y coordinate measured in points More...
 
void CC_DLL ccDrawPoints (const CCPoint *points, unsigned int numberOfPoints)
 draws an array of points. More...
 
void CC_DLL ccDrawLine (const CCPoint &origin, const CCPoint &destination)
 draws a line given the origin and destination point measured in points More...
 
void CC_DLL ccDrawRect (CCPoint origin, CCPoint destination)
 draws a rectangle given the origin and destination point measured in points. More...
 
void CC_DLL ccDrawSolidRect (CCPoint origin, CCPoint destination, ccColor4F color)
 draws a solid rectangle given the origin and destination point measured in points. More...
 
void CC_DLL ccDrawPoly (const CCPoint *vertices, unsigned int numOfVertices, bool closePolygon)
 draws a polygon given a pointer to CCPoint coordinates and the number of vertices measured in points. More...
 
void CC_DLL ccDrawSolidPoly (const CCPoint *poli, unsigned int numberOfPoints, ccColor4F color)
 draws a solid polygon given a pointer to CGPoint coordinates, the number of vertices measured in points, and a color. More...
 
void CC_DLL ccDrawCircle (const CCPoint &center, 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 CC_DLL ccDrawCircle (const CCPoint &center, float radius, float angle, unsigned int segments, bool drawLineToCenter)
 
void CC_DLL ccDrawQuadBezier (const CCPoint &origin, const CCPoint &control, const CCPoint &destination, unsigned int segments)
 draws a quad bezier path More...
 
void CC_DLL ccDrawCubicBezier (const CCPoint &origin, const CCPoint &control1, const CCPoint &control2, const CCPoint &destination, unsigned int segments)
 draws a cubic bezier path More...
 
void CC_DLL ccDrawCatmullRom (CCPointArray *arrayOfControlPoints, unsigned int segments)
 draws a Catmull Rom path. More...
 
void CC_DLL ccDrawCardinalSpline (CCPointArray *config, float tension, unsigned int segments)
 draws a Cardinal Spline path. More...
 
void CC_DLL ccDrawColor4B (GLubyte r, GLubyte g, GLubyte b, GLubyte a)
 set the drawing color with 4 unsigned bytes More...
 
void CC_DLL ccDrawColor4F (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 set the drawing color with 4 floats More...
 
void CC_DLL ccPointSize (GLfloat pointSize)
 set the point size in points. More...
 
CC_DLL void CCProfilingBeginTimingBlock (const char *timerName)
 
CC_DLL void CCProfilingEndTimingBlock (const char *timerName)
 
CC_DLL void CCProfilingResetTimingBlock (const char *timerName)
 

Variables

bool kCCProfilerCategorySprite
 
bool kCCProfilerCategoryBatchSprite
 
bool kCCProfilerCategoryParticles
 

Detailed Description

Macro Definition Documentation

◆ kCCPriorityNonSystemMin

#define kCCPriorityNonSystemMin   (kCCPrioritySystem+1)

◆ kCCPrioritySystem

#define kCCPrioritySystem   INT_MIN

Function Documentation

◆ ccDrawCardinalSpline()

void CC_DLL ccDrawCardinalSpline ( CCPointArray config,
float  tension,
unsigned int  segments 
)

draws a Cardinal Spline path.

Warning
This function could be pretty slow. Use it only for debugging purposes.
Since
v2.0

◆ ccDrawCatmullRom()

void CC_DLL ccDrawCatmullRom ( CCPointArray arrayOfControlPoints,
unsigned int  segments 
)

draws a Catmull Rom path.

Warning
This function could be pretty slow. Use it only for debugging purposes.
Since
v2.0

◆ ccDrawCircle() [1/2]

void CC_DLL ccDrawCircle ( const CCPoint center,
float  radius,
float  angle,
unsigned int  segments,
bool  drawLineToCenter 
)

◆ ccDrawCircle() [2/2]

void CC_DLL ccDrawCircle ( const CCPoint center,
float  radius,
float  angle,
unsigned int  segments,
bool  drawLineToCenter,
float  scaleX,
float  scaleY 
)

draws a circle given the center, radius and number of segments.

◆ ccDrawColor4B()

void CC_DLL ccDrawColor4B ( GLubyte  r,
GLubyte  g,
GLubyte  b,
GLubyte  a 
)

set the drawing color with 4 unsigned bytes

Since
v2.0

◆ ccDrawColor4F()

void CC_DLL ccDrawColor4F ( GLfloat  r,
GLfloat  g,
GLfloat  b,
GLfloat  a 
)

set the drawing color with 4 floats

Since
v2.0

◆ ccDrawCubicBezier()

void CC_DLL ccDrawCubicBezier ( const CCPoint origin,
const CCPoint control1,
const CCPoint control2,
const CCPoint destination,
unsigned int  segments 
)

draws a cubic bezier path

Warning
This function could be pretty slow. Use it only for debugging purposes.
Since
v0.8

◆ ccDrawFree()

void CC_DLL ccDrawFree ( )

Frees allocated resources by the drawing primitives.

◆ ccDrawInit()

void CC_DLL ccDrawInit ( )

Initializes the drawing primitives.

◆ ccDrawLine()

void CC_DLL ccDrawLine ( const CCPoint origin,
const CCPoint destination 
)

draws a line given the origin and destination point measured in points

◆ ccDrawPoint()

void CC_DLL ccDrawPoint ( const CCPoint point)

draws a point given x and y coordinate measured in points

◆ ccDrawPoints()

void CC_DLL ccDrawPoints ( const CCPoint points,
unsigned int  numberOfPoints 
)

draws an array of points.

Since
v0.7.2

◆ ccDrawPoly()

void CC_DLL ccDrawPoly ( const CCPoint vertices,
unsigned int  numOfVertices,
bool  closePolygon 
)

draws a polygon given a pointer to CCPoint coordinates and the number of vertices measured in points.

The polygon can be closed or open

◆ ccDrawQuadBezier()

void CC_DLL ccDrawQuadBezier ( const CCPoint origin,
const CCPoint control,
const CCPoint destination,
unsigned int  segments 
)

draws a quad bezier path

Warning
This function could be pretty slow. Use it only for debugging purposes.
Since
v0.8

◆ ccDrawRect()

void CC_DLL ccDrawRect ( CCPoint  origin,
CCPoint  destination 
)

draws a rectangle given the origin and destination point measured in points.

◆ ccDrawSolidPoly()

void CC_DLL ccDrawSolidPoly ( const CCPoint poli,
unsigned int  numberOfPoints,
ccColor4F  color 
)

draws a solid polygon given a pointer to CGPoint coordinates, the number of vertices measured in points, and a color.

◆ ccDrawSolidRect()

void CC_DLL ccDrawSolidRect ( CCPoint  origin,
CCPoint  destination,
ccColor4F  color 
)

draws a solid rectangle given the origin and destination point measured in points.

Since
1.1

◆ ccPointSize()

void CC_DLL ccPointSize ( GLfloat  pointSize)

set the point size in points.

Default 1.

Since
v2.0

◆ CCProfilingBeginTimingBlock()

CC_DLL void CCProfilingBeginTimingBlock ( const char *  timerName)

◆ CCProfilingEndTimingBlock()

CC_DLL void CCProfilingEndTimingBlock ( const char *  timerName)

◆ CCProfilingResetTimingBlock()

CC_DLL void CCProfilingResetTimingBlock ( const char *  timerName)

Variable Documentation

◆ kCCProfilerCategoryBatchSprite

bool kCCProfilerCategoryBatchSprite
extern

◆ kCCProfilerCategoryParticles

bool kCCProfilerCategoryParticles
extern

◆ kCCProfilerCategorySprite

bool kCCProfilerCategorySprite
extern