cocos2d-x  2.2.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
 

Macros

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

Functions

void CC_DLL  ()
 Initializes the drawing primitives. More...
 
void CC_DLL  (const CCPoint &point)
 draws a point given x and y coordinate measured in points More...
 
var  ( var 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 CC_DLL  (const CCPoint *points, unsigned int numberOfPoints)
 draws an array of points. More...
 
void CC_DLL  (const CCPoint &origin, const CCPoint &destination)
 draws a line given the origin and destination point measured in points More...
 
void CC_DLL  (CCPoint origin, CCPoint destination)
 draws a rectangle given the origin and destination point measured in points. More...
 
void CC_DLL  (CCPoint origin, CCPoint destination, ccColor4F color)
 draws a solid rectangle given the origin and destination point measured in points. More...
 
void CC_DLL  (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  (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  (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...
 
local  ( local center, local radius, local angle, local segments, local drawLineToCenter, local scaleX, local scaleY)
 draws a circle given the center, radius and number of segments. More...
 
void CC_DLL  (const CCPoint &center, float radius, float angle, unsigned int segments, bool drawLineToCenter)
var  ( var center, var radius, var angle, var segments, var drawLineToCenter)
local  ( local center, local radius, local angle, local segments, local drawLineToCenter)
void CC_DLL  (const CCPoint &origin, const CCPoint &control, const CCPoint &destination, unsigned int segments)
 draws a quad bezier path More...
 
var  ( var origin, var control, var destination, var segments)
 draws a quad bezier path More...
 
local  ( local origin, local control, local destination, local segments)
 draws a quad bezier path More...
 
void CC_DLL  (const CCPoint &origin, const CCPoint &control1, const CCPoint &control2, const CCPoint &destination, unsigned int segments)
 draws a cubic bezier path More...
 
var  ( var origin, var control1, var control2, var destination, var 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 CC_DLL  (CCPointArray *arrayOfControlPoints, unsigned int segments)
 draws a Catmull Rom path. More...
 
var  ( var arrayOfControlPoints, var segments)
 draws a Catmull Rom path. More...
 
local  ( local arrayOfControlPoints, local segments)
 draws a Catmull Rom path. More...
 
void CC_DLL  (CCPointArray *config, float tension, unsigned int segments)
 draws a Cardinal Spline path. More...
 
void CC_DLL  (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 CC_DLL  (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 set the drawing color with 4 floats More...
 
void CC_DLL  (GLfloat pointSize)
 set the point size in points. More...
 
CC_DLL void  (const char *timerName)

Variables

bool kCCProfilerCategorySprite
var kCCProfilerCategorySprite
local kCCProfilerCategorySprite
bool kCCProfilerCategoryBatchSprite
var kCCProfilerCategoryBatchSprite
local kCCProfilerCategoryBatchSprite
bool kCCProfilerCategoryParticles
var kCCProfilerCategoryParticles
local kCCProfilerCategoryParticles

Detailed Description

Macro Definition Documentation

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

Function Documentation

void CC_DLL cocos2d::ccDrawInit ( )

Initializes the drawing primitives.

var ccDrawInit ( )

Initializes the drawing primitives.

local ccDrawInit ( )

Initializes the drawing primitives.

void CC_DLL cocos2d::ccDrawPoint ( const CCPoint &  point)

draws a point given x and y coordinate measured in points

var ccDrawPoint ( var  point)

draws a point given x and y coordinate measured in points

local ccDrawPoint ( local  point)

draws a point given x and y coordinate measured in points

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

draws an array of points.

Since
v0.7.2
var ccDrawPoints ( var  points,
var  numberOfPoints 
)

draws an array of points.

Since
v0.7.2
local ccDrawPoints ( local  points,
local  numberOfPoints 
)

draws an array of points.

Since
v0.7.2
void CC_DLL cocos2d::ccDrawLine ( const CCPoint &  origin,
const CCPoint &  destination 
)

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

var ccDrawLine ( var  origin,
var  destination 
)

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

local ccDrawLine ( local  origin,
local  destination 
)

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

CC_DLL void
cocos2d::CCProfilingBeginTimingBlock
( const char *  timerName)
var CCProfilingBeginTimingBlock ( var  timerName)
local CCProfilingBeginTimingBlock ( local  timerName)
void CC_DLL cocos2d::ccDrawRect ( CCPoint  origin,
CCPoint  destination 
)

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

var ccDrawRect ( var  origin,
var  destination 
)

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

local ccDrawRect ( local  origin,
local  destination 
)

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

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

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

Since
1.1
var ccDrawSolidRect ( var  origin,
var  destination,
var  color 
)

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

Since
1.1
local ccDrawSolidRect ( local  origin,
local  destination,
local  color 
)

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

Since
1.1
void CC_DLL cocos2d::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

var ccDrawPoly ( var  vertices,
var  numOfVertices,
var  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

local ccDrawPoly ( local  vertices,
local  numOfVertices,
local  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

void CC_DLL
cocos2d::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.

var ccDrawSolidPoly ( var  poli,
var  numberOfPoints,
var  color 
)

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

local ccDrawSolidPoly ( local  poli,
local  numberOfPoints,
local  color 
)

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

void CC_DLL cocos2d::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.

var ccDrawCircle ( var  center,
var  radius,
var  angle,
var  segments,
var  drawLineToCenter,
var  scaleX,
var  scaleY 
)

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

local ccDrawCircle ( local  center,
local  radius,
local  angle,
local  segments,
local  drawLineToCenter,
local  scaleX,
local  scaleY 
)

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

void CC_DLL cocos2d::ccDrawCircle ( const CCPoint &  center,
float  radius,
float  angle,
unsigned int  segments,
bool  drawLineToCenter 
)
var ccDrawCircle ( var  center,
var  radius,
var  angle,
var  segments,
var  drawLineToCenter 
)
local ccDrawCircle ( local  center,
local  radius,
local  angle,
local  segments,
local  drawLineToCenter 
)
void CC_DLL
cocos2d::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
var ccDrawQuadBezier ( var  origin,
var  control,
var  destination,
var  segments 
)

draws a quad bezier path

Warning
This function could be pretty slow. Use it only for debugging purposes.
Since
v0.8
local ccDrawQuadBezier ( local  origin,
local  control,
local  destination,
local  segments 
)

draws a quad bezier path

Warning
This function could be pretty slow. Use it only for debugging purposes.
Since
v0.8
void CC_DLL
cocos2d::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
var ccDrawCubicBezier ( var  origin,
var  control1,
var  control2,
var  destination,
var  segments 
)

draws a cubic bezier path

Warning
This function could be pretty slow. Use it only for debugging purposes.
Since
v0.8
local ccDrawCubicBezier ( local  origin,
local  control1,
local  control2,
local  destination,
local  segments 
)

draws a cubic bezier path

Warning
This function could be pretty slow. Use it only for debugging purposes.
Since
v0.8
void CC_DLL
cocos2d::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
var ccDrawCatmullRom ( var  arrayOfControlPoints,
var  segments 
)

draws a Catmull Rom path.

Warning
This function could be pretty slow. Use it only for debugging purposes.
Since
v2.0
local ccDrawCatmullRom ( local  arrayOfControlPoints,
local  segments 
)

draws a Catmull Rom path.

Warning
This function could be pretty slow. Use it only for debugging purposes.
Since
v2.0
void CC_DLL
cocos2d::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
var ccDrawCardinalSpline ( var  config,
var  tension,
var  segments 
)

draws a Cardinal Spline path.

Warning
This function could be pretty slow. Use it only for debugging purposes.
Since
v2.0
local ccDrawCardinalSpline ( local  config,
local  tension,
local  segments 
)

draws a Cardinal Spline path.

Warning
This function could be pretty slow. Use it only for debugging purposes.
Since
v2.0
void CC_DLL cocos2d::ccDrawColor4B ( GLubyte  r,
GLubyte  g,
GLubyte  b,
GLubyte  a 
)

set the drawing color with 4 unsigned bytes

Since
v2.0
var ccDrawColor4B ( var  r,
var  g,
var  b,
var  a 
)

set the drawing color with 4 unsigned bytes

Since
v2.0
local ccDrawColor4B ( local  r,
local  g,
local  b,
local  a 
)

set the drawing color with 4 unsigned bytes

Since
v2.0
void CC_DLL cocos2d::ccDrawColor4F ( GLfloat  r,
GLfloat  g,
GLfloat  b,
GLfloat  a 
)

set the drawing color with 4 floats

Since
v2.0
var ccDrawColor4F ( var  r,
var  g,
var  b,
var  a 
)

set the drawing color with 4 floats

Since
v2.0
local ccDrawColor4F ( local  r,
local  g,
local  b,
local  a 
)

set the drawing color with 4 floats

Since
v2.0
void CC_DLL cocos2d::ccPointSize ( GLfloat  pointSize)

set the point size in points.

Default 1.

Since
v2.0
var ccPointSize ( var  pointSize)

set the point size in points.

Default 1.

Since
v2.0
local ccPointSize ( local  pointSize)

set the point size in points.

Default 1.

Since
v2.0

Variable Documentation

bool kCCProfilerCategoryBatchSprite
var kCCProfilerCategoryBatchSprite
local
kCCProfilerCategoryBatchSprite
bool kCCProfilerCategoryParticles
var kCCProfilerCategoryParticles
local kCCProfilerCategoryParticles
bool kCCProfilerCategorySprite
var kCCProfilerCategorySprite
local kCCProfilerCategorySprite