cocos2d-x  3.3rc0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Base Nodes

Classes

class  AtlasNode
 AtlasNode is a subclass of Node that implements the RGBAProtocol and TextureProtocol protocol. More...
 
class  Node
 Node is the base element of the Scene Graph. More...
 
class  __NodeRGBA
 NodeRGBA is a subclass of Node that implements the RGBAProtocol protocol. More...
 
class  AutoreleasePool
 
class  PoolManager
 
class  Director
 
class  DisplayLinkDirector
 DisplayLinkDirector is a Director that synchronizes timers with the refresh rate of the display. More...
 
class  Clonable
 Interface that defines how to clone an Ref. More...
 
class  Ref
 

Macros

#define CC_CALLFUNC_SELECTOR(_SELECTOR)   static_cast<cocos2d::SEL_CallFunc>(&_SELECTOR)
#define CC_CALLFUNCN_SELECTOR(_SELECTOR)   static_cast<cocos2d::SEL_CallFuncN>(&_SELECTOR)
#define CC_CALLFUNCND_SELECTOR(_SELECTOR)   static_cast<cocos2d::SEL_CallFuncND>(&_SELECTOR)
#define CC_CALLFUNCO_SELECTOR(_SELECTOR)   static_cast<cocos2d::SEL_CallFuncO>(&_SELECTOR)
#define CC_MENU_SELECTOR(_SELECTOR)   static_cast<cocos2d::SEL_MenuHandler>(&_SELECTOR)
#define CC_SCHEDULE_SELECTOR(_SELECTOR)   static_cast<cocos2d::SEL_SCHEDULE>(&_SELECTOR)
#define callfunc_selector(_SELECTOR)   CC_CALLFUNC_SELECTOR(_SELECTOR)
#define callfuncN_selector(_SELECTOR)   CC_CALLFUNCN_SELECTOR(_SELECTOR)
#define callfuncND_selector(_SELECTOR)   CC_CALLFUNCND_SELECTOR(_SELECTOR)
#define callfuncO_selector(_SELECTOR)   CC_CALLFUNCO_SELECTOR(_SELECTOR)
#define menu_selector(_SELECTOR)   CC_MENU_SELECTOR(_SELECTOR)
#define schedule_selector(_SELECTOR)   CC_SCHEDULE_SELECTOR(_SELECTOR)

Typedefs

typedef void(Ref::* SEL_CallFunc )()
typedef void(Ref::* SEL_CallFuncN )(Node *)
typedef void(Ref::* SEL_CallFuncND )(Node *, void *)
typedef void(Ref::* SEL_CallFuncO )(Ref *)
typedef void(Ref::* SEL_MenuHandler )(Ref *)
typedef void(Ref::* SEL_SCHEDULE )(float)

Enumerations

enum  {
  kNodeOnEnter, kNodeOnExit, kNodeOnEnterTransitionDidFinish, kNodeOnExitTransitionDidStart,
  kNodeOnCleanup
}
 
enum  { FLAGS_TRANSFORM_DIRTY = (1 << 0), FLAGS_CONTENT_SIZE_DIRTY = (1 << 1), FLAGS_DIRTY_MASK = (FLAGS_TRANSFORM_DIRTY | FLAGS_CONTENT_SIZE_DIRTY) }
 
enum  MATRIX_STACK_TYPE { MATRIX_STACK_MODELVIEW, MATRIX_STACK_PROJECTION, MATRIX_STACK_TEXTURE }
 Class that creates and handles the main Window and manages how and when to execute the Scenes. More...
 
enum  Projection { _2D, _3D, CUSTOM, DEFAULT = _3D }
 

Functions

bool CC_DLL  (Node *n1, Node *n2)
local  ( local n1, local n2)

Detailed Description

Macro Definition Documentation

#define callfunc_selector (   _SELECTOR)    CC_CALLFUNC_SELECTOR(_SELECTOR)
var callfunc_selector (   var)    CC_CALLFUNC_SELECTOR(_SELECTOR)
local callfunc_selector (   local)    CC_CALLFUNC_SELECTOR(_SELECTOR)
#define callfuncN_selector (   _SELECTOR)    CC_CALLFUNCN_SELECTOR(_SELECTOR)
var callfuncN_selector (   var)    CC_CALLFUNCN_SELECTOR(_SELECTOR)
local callfuncN_selector (   local)    CC_CALLFUNCN_SELECTOR(_SELECTOR)
#define callfuncND_selector (   _SELECTOR)    CC_CALLFUNCND_SELECTOR(_SELECTOR)
#define callfuncO_selector (   _SELECTOR)    CC_CALLFUNCO_SELECTOR(_SELECTOR)
var callfuncO_selector (   var)    CC_CALLFUNCO_SELECTOR(_SELECTOR)
local callfuncO_selector (   local)    CC_CALLFUNCO_SELECTOR(_SELECTOR)
#define CC_CALLFUNC_SELECTOR (   _SELECTOR)    static_cast<cocos2d::SEL_CallFunc>(&_SELECTOR)
var CC_CALLFUNC_SELECTOR (   var)    static_cast<cocos2d::SEL_CallFunc>(&_SELECTOR)
local CC_CALLFUNC_SELECTOR (   local)    static_cast<cocos2d::SEL_CallFunc>(&_SELECTOR)
#define CC_CALLFUNCN_SELECTOR (   _SELECTOR)    static_cast<cocos2d::SEL_CallFuncN>(&_SELECTOR)
var CC_CALLFUNCN_SELECTOR (   var)    static_cast<cocos2d::SEL_CallFuncN>(&_SELECTOR)
local CC_CALLFUNCN_SELECTOR (   local)    static_cast<cocos2d::SEL_CallFuncN>(&_SELECTOR)
#define CC_CALLFUNCND_SELECTOR (   _SELECTOR)    static_cast<cocos2d::SEL_CallFuncND>(&_SELECTOR)
var CC_CALLFUNCND_SELECTOR (   var)    static_cast<cocos2d::SEL_CallFuncND>(&_SELECTOR)
local CC_CALLFUNCND_SELECTOR (   local)    static_cast<cocos2d::SEL_CallFuncND>(&_SELECTOR)
#define CC_CALLFUNCO_SELECTOR (   _SELECTOR)    static_cast<cocos2d::SEL_CallFuncO>(&_SELECTOR)
#define CC_MENU_SELECTOR (   _SELECTOR)    static_cast<cocos2d::SEL_MenuHandler>(&_SELECTOR)
var CC_MENU_SELECTOR (   var)    static_cast<cocos2d::SEL_MenuHandler>(&_SELECTOR)
local CC_MENU_SELECTOR (   local)    static_cast<cocos2d::SEL_MenuHandler>(&_SELECTOR)
#define CC_SCHEDULE_SELECTOR (   _SELECTOR)    static_cast<cocos2d::SEL_SCHEDULE>(&_SELECTOR)
local CC_SCHEDULE_SELECTOR (   local)    static_cast<cocos2d::SEL_SCHEDULE>(&_SELECTOR)
#define menu_selector (   _SELECTOR)    CC_MENU_SELECTOR(_SELECTOR)
var menu_selector (   var)    CC_MENU_SELECTOR(_SELECTOR)
local menu_selector (   local)    CC_MENU_SELECTOR(_SELECTOR)
#define schedule_selector (   _SELECTOR)    CC_SCHEDULE_SELECTOR(_SELECTOR)
var schedule_selector (   var)    CC_SCHEDULE_SELECTOR(_SELECTOR)
local schedule_selector (   local)    CC_SCHEDULE_SELECTOR(_SELECTOR)

Typedef Documentation

typedef void(Ref::* SEL_CallFunc)()
typedef void(Ref::* SEL_CallFunc)()
typedef void(Ref::* SEL_CallFunc)()
typedef void(Ref::*
SEL_CallFuncN)(Node *)
typedef void(Ref::*
SEL_CallFuncN)(Node *)
typedef void(Ref::*
SEL_CallFuncN)(Node *)
typedef void(Ref::*
SEL_CallFuncND)(Node *, void *)
typedef void(Ref::*
SEL_CallFuncND)(Node *, void *)
typedef void(Ref::*
SEL_CallFuncND)(Node *, void *)
typedef void(Ref::*
SEL_CallFuncO)(Ref *)
typedef void(Ref::*
SEL_CallFuncO)(Ref *)
typedef void(Ref::*
SEL_CallFuncO)(Ref *)
typedef void(Ref::*
SEL_MenuHandler)(Ref *)
typedef void(Ref::*
SEL_MenuHandler)(Ref *)
typedef void(Ref::*
SEL_MenuHandler)(Ref *)
typedef void(Ref::*
SEL_SCHEDULE)(float)
typedef void(Ref::*
SEL_SCHEDULE)(float)
typedef void(Ref::*
SEL_SCHEDULE)(float)

Enumeration Type Documentation

anonymous enum
Enumerator
kNodeOnEnter 
kNodeOnExit 
kNodeOnEnterTransitionDidFinish 
kNodeOnExitTransitionDidStart 
kNodeOnCleanup 
var enum
Enumerator
kNodeOnEnter 
kNodeOnExit 
kNodeOnEnterTransitionDidFinish 
kNodeOnExitTransitionDidStart 
kNodeOnCleanup 
local enum
Enumerator
kNodeOnEnter 
kNodeOnExit 
kNodeOnEnterTransitionDidFinish 
kNodeOnExitTransitionDidStart 
kNodeOnCleanup 
anonymous enum
Enumerator
FLAGS_TRANSFORM_DIRTY 
FLAGS_CONTENT_SIZE_DIRTY 
FLAGS_DIRTY_MASK 
var enum
Enumerator
FLAGS_TRANSFORM_DIRTY 
FLAGS_CONTENT_SIZE_DIRTY 
FLAGS_DIRTY_MASK 
local enum
Enumerator
FLAGS_TRANSFORM_DIRTY 
FLAGS_CONTENT_SIZE_DIRTY 
FLAGS_DIRTY_MASK 
enum MATRIX_STACK_TYPE
strong

Class that creates and handles the main Window and manages how and when to execute the Scenes.

The Director is also responsible for:

  • initializing the OpenGL context
  • setting the OpenGL pixel format (default on is RGB565)
  • setting the OpenGL buffer depth (default one is 0-bit)
  • setting the projection (default one is 3D)
  • setting the orientation (default one is Portrait)

Since the Director is a singleton, the standard way to use it is by calling: _ Director::getInstance()->methodName();

The Director also sets the default OpenGL context:

  • GL_TEXTURE_2D is enabled
  • GL_VERTEX_ARRAY is enabled
  • GL_COLOR_ARRAY is enabled
  • GL_TEXTURE_COORD_ARRAY is enabled
Enumerator
MATRIX_STACK_MODELVIEW 
MATRIX_STACK_PROJECTION 
MATRIX_STACK_TEXTURE 
var MATRIX_STACK_TYPE
strong

Class that creates and handles the main Window and manages how and when to execute the Scenes.

The Director is also responsible for:

  • initializing the OpenGL context
  • setting the OpenGL pixel format (default on is RGB565)
  • setting the OpenGL buffer depth (default one is 0-bit)
  • setting the projection (default one is 3D)
  • setting the orientation (default one is Portrait)

Since the Director is a singleton, the standard way to use it is by calling: _ Director::getInstance()->methodName();

The Director also sets the default OpenGL context:

  • GL_TEXTURE_2D is enabled
  • GL_VERTEX_ARRAY is enabled
  • GL_COLOR_ARRAY is enabled
  • GL_TEXTURE_COORD_ARRAY is enabled
Enumerator
MATRIX_STACK_MODELVIEW 
MATRIX_STACK_PROJECTION 
MATRIX_STACK_TEXTURE 
local MATRIX_STACK_TYPE
strong

Class that creates and handles the main Window and manages how and when to execute the Scenes.

The Director is also responsible for:

  • initializing the OpenGL context
  • setting the OpenGL pixel format (default on is RGB565)
  • setting the OpenGL buffer depth (default one is 0-bit)
  • setting the projection (default one is 3D)
  • setting the orientation (default one is Portrait)

Since the Director is a singleton, the standard way to use it is by calling: _ Director::getInstance()->methodName();

The Director also sets the default OpenGL context:

  • GL_TEXTURE_2D is enabled
  • GL_VERTEX_ARRAY is enabled
  • GL_COLOR_ARRAY is enabled
  • GL_TEXTURE_COORD_ARRAY is enabled
Enumerator
MATRIX_STACK_MODELVIEW 
MATRIX_STACK_PROJECTION 
MATRIX_STACK_TEXTURE 
enum Projection
strong
Enumerator
_2D 

sets a 2D projection (orthogonal projection)

_3D 

sets a 3D projection with a fovy=60, znear=0.5f and zfar=1500.

CUSTOM 

it calls "updateProjection" on the projection delegate.

DEFAULT 

Default projection is 3D projection.

Function Documentation

bool CC_DLL
cocos2d::nodeComparisonLess
( Node *  n1,
Node *  n2 
)
var nodeComparisonLess ( var  n1,
var  n2 
)
local nodeComparisonLess ( local  n1,
local  n2 
)