cocos2d-x  2.2.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cocos2d Namespace Reference

Namespaces

 extension
 
 ui
 

Classes

class  CCAction
 Base class for CCAction objects. More...
 
class  CCFiniteTimeAction
 Base class actions that do have a finite time duration. More...
 
class  CCSpeed
 Changes the speed of an action, making it take longer (speed>1) or less (speed<1) time. More...
 
class  CCFollow
 CCFollow is an action that "follows" a node. More...
 
class  CCActionCamera
 Base class for CCCamera actions. More...
 
class  CCOrbitCamera
 CCOrbitCamera action Orbits the camera around the center of the screen using spherical coordinates. More...
 
class  CCPointArray
 An Array that contain control points. More...
 
class  CCCardinalSplineTo
 //// @ More...
 
class  CCCardinalSplineBy
 //// @ More...
 
class  CCCatmullRomTo
 //// @ More...
 
class  CCCatmullRomBy
 //// @ More...
 
class  CCActionEase
 Base class for Easing actions. More...
 
class  CCEaseRateAction
 Base class for Easing actions with rate parameters. More...
 
class  CCEaseIn
 CCEaseIn action with a rate. More...
 
class  CCEaseOut
 CCEaseOut action with a rate. More...
 
class  CCEaseInOut
 CCEaseInOut action with a rate. More...
 
class  CCEaseExponentialIn
 CCEase Exponential In. More...
 
class  CCEaseExponentialOut
 Ease Exponential Out. More...
 
class  CCEaseExponentialInOut
 Ease Exponential InOut. More...
 
class  CCEaseSineIn
 Ease Sine In. More...
 
class  CCEaseSineOut
 Ease Sine Out. More...
 
class  CCEaseSineInOut
 Ease Sine InOut. More...
 
class  CCEaseElastic
 Ease Elastic abstract class. More...
 
class  CCEaseElasticIn
 Ease Elastic In action. More...
 
class  CCEaseElasticOut
 Ease Elastic Out action. More...
 
class  CCEaseElasticInOut
 Ease Elastic InOut action. More...
 
class  CCEaseBounce
 CCEaseBounce abstract class. More...
 
class  CCEaseBounceIn
 CCEaseBounceIn action. More...
 
class  CCEaseBounceOut
 EaseBounceOut action. More...
 
class  CCEaseBounceInOut
 CCEaseBounceInOut action. More...
 
class  CCEaseBackIn
 CCEaseBackIn action. More...
 
class  CCEaseBackOut
 CCEaseBackOut action. More...
 
class  CCEaseBackInOut
 CCEaseBackInOut action. More...
 
class  CCGridAction
 Base class for Grid actions. More...
 
class  CCGrid3DAction
 Base class for CCGrid3D actions. More...
 
class  CCTiledGrid3DAction
 Base class for CCTiledGrid3D actions. More...
 
class  CCAccelDeccelAmplitude
 CCAccelDeccelAmplitude action. More...
 
class  CCAccelAmplitude
 CCAccelAmplitude action. More...
 
class  CCDeccelAmplitude
 CCDeccelAmplitude action. More...
 
class  CCStopGrid
 CCStopGrid action. More...
 
class  CCReuseGrid
 CCReuseGrid action. More...
 
class  CCWaves3D
 CCWaves3D action. More...
 
class  CCFlipX3D
 CCFlipX3D action. More...
 
class  CCFlipY3D
 CCFlipY3D action. More...
 
class  CCLens3D
 CCLens3D action. More...
 
class  CCRipple3D
 CCRipple3D action. More...
 
class  CCShaky3D
 CCShaky3D action. More...
 
class  CCLiquid
 CCLiquid action. More...
 
class  CCWaves
 CCWaves action. More...
 
class  CCTwirl
 CCTwirl action. More...
 
class  CCActionInstant
 Instant actions are immediate actions. More...
 
class  CCShow
 Show the node. More...
 
class  CCHide
 Hide the node. More...
 
class  CCToggleVisibility
 Toggles the visibility of a node. More...
 
class  CCRemoveSelf
 Remove the node. More...
 
class  CCFlipX
 @ @ More...
 
class  CCFlipY
 @ @ More...
 
class  CCPlace
 @ More...
 
class  CCCallFunc
 @ More...
 
class  CCCallFuncN
 @ More...
 
class  CCCallFuncND
 @

More...
 
class  CCCallFuncO
 
class  CCActionInterval
 An interval action is an action that takes place within a certain period of time. More...
 
class  CCSequence
 Runs actions sequentially, one after another. More...
 
class  CCRepeat
 Repeats an action a number of times. More...
 
class  CCRepeatForever
 Repeats an action for ever. More...
 
class  CCSpawn
 Spawn a new action immediately. More...
 
class  CCRotateTo
 Rotates a CCNode object to a certain angle by modifying it's rotation attribute. More...
 
class  CCRotateBy
 Rotates a CCNode object clockwise a number of degrees by modifying it's rotation attribute. More...
 
class  CCMoveBy
 Moves a CCNode object x,y pixels by modifying it's position attribute. More...
 
class  CCMoveTo
 Moves a CCNode object to the position x,y. More...
 
class  CCSkewTo
 Skews a CCNode object to given angles by modifying it's skewX and skewY attributes. More...
 
class  CCSkewBy
 Skews a CCNode object by skewX and skewY degrees. More...
 
class  CCJumpBy
 Moves a CCNode object simulating a parabolic jump movement by modifying it's position attribute. More...
 
class  CCJumpTo
 Moves a CCNode object to a parabolic position simulating a jump movement by modifying it's position attribute. More...
 
class  CCBezierBy
 An action that moves the target with a cubic Bezier curve by a certain distance. More...
 
class  CCBezierTo
 An action that moves the target with a cubic Bezier curve to a destination point. More...
 
class  CCScaleTo
 Scales a CCNode object to a zoom factor by modifying it's scale attribute. More...
 
class  CCScaleBy
 Scales a CCNode object a zoom factor by modifying it's scale attribute. More...
 
class  CCBlink
 Blinks a CCNode object by modifying it's visible attribute. More...
 
class  CCFadeIn
 Fades In an object that implements the CCRGBAProtocol protocol. More...
 
class  CCFadeOut
 Fades Out an object that implements the CCRGBAProtocol protocol. More...
 
class  CCFadeTo
 Fades an object that implements the CCRGBAProtocol protocol. More...
 
class  CCTintTo
 Tints a CCNode that implements the CCNodeRGB protocol from current tint to a custom one. More...
 
class  CCTintBy
 Tints a CCNode that implements the CCNodeRGB protocol from current tint to a custom one. More...
 
class  CCDelayTime
 Delays the action a certain amount of seconds. More...
 
class  CCReverseTime
 Executes an action in reverse order, from time=duration to time=0. More...
 
class  CCAnimate
 Animates a sprite given the name of an Animation. More...
 
class  CCTargetedAction
 Overrides the target of an action so that it always runs on the target specified at action creation rather than the one specified by runAction. More...
 
class  CCActionManager
 CCActionManager is a singleton that manages all the actions. More...
 
class  CCPageTurn3D
 This action simulates a page turn from the bottom right hand corner of the screen. More...
 
class  CCProgressTo
 Progress to percentage. More...
 
class  CCProgressFromTo
 Progress from a percentage to another percentage. More...
 
class  CCShakyTiles3D
 CCShakyTiles3D action. More...
 
class  CCShatteredTiles3D
 CCShatteredTiles3D action. More...
 
class  CCShuffleTiles
 CCShuffleTiles action Shuffle the tiles in random order. More...
 
class  CCFadeOutTRTiles
 CCFadeOutTRTiles action Fades out the tiles in a Top-Right direction. More...
 
class  CCFadeOutBLTiles
 CCFadeOutBLTiles action. More...
 
class  CCFadeOutUpTiles
 CCFadeOutUpTiles action. More...
 
class  CCFadeOutDownTiles
 CCFadeOutDownTiles action. More...
 
class  CCTurnOffTiles
 CCTurnOffTiles action. More...
 
class  CCWavesTiles3D
 CCWavesTiles3D action. More...
 
class  CCJumpTiles3D
 CCJumpTiles3D action. More...
 
class  CCSplitRows
 CCSplitRows action. More...
 
class  CCSplitCols
 CCSplitCols action. More...
 
class  CCActionTweenDelegate
 
class  CCActionTween
 CCActionTween. More...
 
class  CCAtlasNode
 CCAtlasNode is a subclass of CCNode that implements the CCRGBAProtocol and CCTextureProtocol protocol. More...
 
class  CCNode
 CCNode is the main element. More...
 
class  CCNodeRGBA
 CCNodeRGBA is a subclass of CCNode that implements the CCRGBAProtocol protocol. More...
 
class  CCCamera
 A CCCamera is used in every CCNode. More...
 
class  CCConfiguration
 CCConfiguration contains some openGL variables. More...
 
class  CCDirector
 Class that creates and handle the main Window and manages how and when to execute the Scenes. More...
 
class  CCDisplayLinkDirector
 DisplayLinkDirector is a Director that synchronizes timers with the refresh rate of the display. More...
 
class  CCTimer
 Light-weight timer. More...
 
class  CCScheduler
 Scheduler is responsible for triggering the scheduled callbacks. More...
 
struct  CCAffineTransform
 
class  CCArray
 
class  CCAutoreleasePool
 
class  CCPoolManager
 
class  CCBool
 
class  CCDataVisitor
 Visitor that helps to perform action that depends on polymorphic object type. More...
 
class  CCPrettyPrinter
 
class  CCDictElement
 CCDictElement is used for traversing CCDictionary. More...
 
class  CCDictionary
 @ More...
 
class  CCDouble
 
class  CCFloat
 
class  CCPoint
 
class  CCSize
 
class  CCRect
 
class  CCInteger
 
class  CCCopying
 
class  CCObject
 
class  CCSet
 
class  CCString
 
struct  CCStringCompare
 
class  CCZone
 
class  CCDrawNode
 CCDrawNode Node that draws dots, segments and polygons. More...
 
class  CCGrabber
 FBO class that grabs the the contents of the screen. More...
 
class  CCGridBase
 Base class for other. More...
 
class  CCGrid3D
 CCGrid3D is a 3D grid implementation. More...
 
class  CCTiledGrid3D
 
class  CCRGBAProtocol
 RGBA protocol that affects CCNode's color and opacity. More...
 
class  CCBlendProtocol
 //////// More...
 
class  CCTextureProtocol
 
class  CCLabelProtocol
 
class  CCDirectorDelegate
 
class  TypeInfo
 
struct  ccAnimationFrameData
 
class  CCKeypadDelegate
 
class  CCKeypadHandler
 @ More...
 
class  CCKeypadDispatcher
 Dispatch the keypad message from the phone. More...
 
class  CCLabelAtlas
 CCLabelAtlas is a subclass of CCAtlasNode. More...
 
class  CCBMFontConfiguration
 CCBMFontConfiguration has parsed configuration of the the .fnt file. More...
 
class  CCLabelBMFont
 @ More...
 
class  CCLabelTTF
 CCLabelTTF is a subclass of CCTextureNode that knows how to render text labels. More...
 
class  CCLayer
 CCLayer is a subclass of CCNode that implements the TouchEventsDelegate protocol. More...
 
class  CCLayerRGBA
 CCLayerRGBA is a subclass of CCLayer that implements the CCRGBAProtocol protocol using a solid color as the background. More...
 
class  CCLayerColor
 CCLayerColor is a subclass of CCLayer that implements the CCRGBAProtocol protocol. More...
 
class  CCLayerGradient
 CCLayerGradient is a subclass of CCLayerColor that draws gradients across the background. More...
 
class  CCLayerMultiplex
 CCMultipleLayer is a CCLayer with the ability to multiplex it's children. More...
 
class  CCScene
 CCScene is a subclass of CCNode that is used only as an abstract concept. More...
 
class  CCTransitionEaseScene
 CCTransitionEaseScene can ease the actions of the scene protocol. More...
 
class  CCTransitionScene
 Base class for CCTransition scenes. More...
 
class  CCTransitionSceneOriented
 A CCTransition that supports orientation like. More...
 
class  CCTransitionRotoZoom
 CCTransitionRotoZoom: Rotate and zoom out the outgoing scene, and then rotate and zoom in the incoming. More...
 
class  CCTransitionJumpZoom
 CCTransitionJumpZoom: Zoom out and jump the outgoing scene, and then jump and zoom in the incoming. More...
 
class  CCTransitionMoveInL
 CCTransitionMoveInL: Move in from to the left the incoming scene. More...
 
class  CCTransitionMoveInR
 CCTransitionMoveInR: Move in from to the right the incoming scene. More...
 
class  CCTransitionMoveInT
 CCTransitionMoveInT: Move in from to the top the incoming scene. More...
 
class  CCTransitionMoveInB
 CCTransitionMoveInB: Move in from to the bottom the incoming scene. More...
 
class  CCTransitionSlideInL
 CCTransitionSlideInL: Slide in the incoming scene from the left border. More...
 
class  CCTransitionSlideInR
 CCTransitionSlideInR: Slide in the incoming scene from the right border. More...
 
class  CCTransitionSlideInB
 CCTransitionSlideInB: Slide in the incoming scene from the bottom border. More...
 
class  CCTransitionSlideInT
 CCTransitionSlideInT: Slide in the incoming scene from the top border. More...
 
class  CCTransitionShrinkGrow
 Shrink the outgoing scene while grow the incoming scene. More...
 
class  CCTransitionFlipX
 CCTransitionFlipX: Flips the screen horizontally. More...
 
class  CCTransitionFlipY
 CCTransitionFlipY: Flips the screen vertically. More...
 
class  CCTransitionFlipAngular
 CCTransitionFlipAngular: Flips the screen half horizontally and half vertically. More...
 
class  CCTransitionZoomFlipX
 CCTransitionZoomFlipX: Flips the screen horizontally doing a zoom out/in The front face is the outgoing scene and the back face is the incoming scene. More...
 
class  CCTransitionZoomFlipY
 CCTransitionZoomFlipY: Flips the screen vertically doing a little zooming out/in The front face is the outgoing scene and the back face is the incoming scene. More...
 
class  CCTransitionZoomFlipAngular
 CCTransitionZoomFlipAngular: Flips the screen half horizontally and half vertically doing a little zooming out/in. More...
 
class  CCTransitionFade
 CCTransitionFade: Fade out the outgoing scene and then fade in the incoming scene. More...
 
class  CCTransitionCrossFade
 CCTransitionCrossFade: Cross fades two scenes using the CCRenderTexture object. More...
 
class  CCTransitionTurnOffTiles
 CCTransitionTurnOffTiles: Turn off the tiles of the outgoing scene in random order. More...
 
class  CCTransitionSplitCols
 CCTransitionSplitCols: The odd columns goes upwards while the even columns goes downwards. More...
 
class  CCTransitionSplitRows
 CCTransitionSplitRows: The odd rows goes to the left while the even rows goes to the right. More...
 
class  CCTransitionFadeTR
 CCTransitionFadeTR: Fade the tiles of the outgoing scene from the left-bottom corner the to top-right corner. More...
 
class  CCTransitionFadeBL
 CCTransitionFadeBL: Fade the tiles of the outgoing scene from the top-right corner to the bottom-left corner. More...
 
class  CCTransitionFadeUp
 CCTransitionFadeUp: Fade the tiles of the outgoing scene from the bottom to the top. More...
 
class  CCTransitionFadeDown
 CCTransitionFadeDown: Fade the tiles of the outgoing scene from the top to the bottom. More...
 
class  CCTransitionPageTurn
 A transition which peels back the bottom right hand corner of a scene to transition to the scene beneath it simulating a page turn. More...
 
class  CCTransitionProgress
 
class  CCTransitionProgressRadialCCW
 CCTransitionRadialCCW transition. More...
 
class  CCTransitionProgressRadialCW
 CCTransitionRadialCW transition. More...
 
class  CCTransitionProgressHorizontal
 CCTransitionProgressHorizontal transition. More...
 
class  CCTransitionProgressVertical
 
class  CCTransitionProgressInOut
 
class  CCTransitionProgressOutIn
 
class  CCMenu
 A CCMenu. More...
 
class  CCMenuItem
 CCMenuItem base class. More...
 
class  CCMenuItemLabel
 An abstract class for "label" CCMenuItemLabel items Any CCNode that supports the CCLabelProtocol protocol can be added. More...
 
class  CCMenuItemAtlasFont
 A CCMenuItemAtlasFont Helper class that creates a MenuItemLabel class with a LabelAtlas. More...
 
class  CCMenuItemFont
 A CCMenuItemFont Helper class that creates a CCMenuItemLabel class with a Label. More...
 
class  CCMenuItemSprite
 CCMenuItemSprite accepts CCNode<CCRGBAProtocol> objects as items. More...
 
class  CCMenuItemImage
 CCMenuItemImage accepts images as items. More...
 
class  CCMenuItemToggle
 A CCMenuItemToggle A simple container class that "toggles" it's inner items The inner items can be any MenuItem. More...
 
class  CCClippingNode
 CCClippingNode is a subclass of CCNode. More...
 
class  CCMotionStreak
 MotionStreak. More...
 
class  CCProgressTimer
 CCProgressTimer is a subclass of CCNode. More...
 
class  CCRenderTexture
 CCRenderTexture is a generic rendering target. More...
 
class  CCParticleBatchNode
 CCParticleBatchNode is like a batch node: if it contains children, it will draw them in 1 single OpenGL call (often known as "batch draw"). More...
 
class  CCParticleFire
 A fire particle system. More...
 
class  CCParticleFireworks
 A fireworks particle system. More...
 
class  CCParticleSun
 A sun particle system. More...
 
class  CCParticleGalaxy
 A galaxy particle system. More...
 
class  CCParticleFlower
 A flower particle system. More...
 
class  CCParticleMeteor
 A meteor particle system. More...
 
class  CCParticleSpiral
 An spiral particle system. More...
 
class  CCParticleExplosion
 An explosion particle system. More...
 
class  CCParticleSmoke
 An smoke particle system. More...
 
class  CCParticleSnow
 An snow particle system. More...
 
class  CCParticleRain
 A rain particle system. More...
 
class  CCParticleSystem
 Particle System base class. More...
 
class  CCParticleSystemQuad
 CCParticleSystemQuad is a subclass of CCParticleSystem. More...
 
class  CCAccelerometer
 The CCAccelerometer class lets you register to receive acceleration-related data from the onboard hardware. More...
 
class  CCApplication
 
class  CCEGLView
 
class  CCFileUtilsAndroid
 Helper class to handle file operations. More...
 
class  JniHelper
 
class  CCFileUtilsBlackberry
 Helper class to handle file operations. More...
 
class  CCAcceleration
 The device accelerometer reports values for each axis in units of g-force. More...
 
class  CCAccelerometerDelegate
 The CCAccelerometerDelegate defines a single method for receiving acceleration-related data from the system. More...
 
class  CCApplicationProtocol
 
class  CCDevice
 
class  CCEGLViewProtocol
 
class  CCFileUtils
 Helper class to handle file operations. More...
 
class  CCImage
 
struct  tImageSource
 
struct  my_error_mgr
 
class  CCSAXDelegator
 
class  CCSAXParser
 
class  CCThread
 
class  CCFileUtilsEmscripten
 Helper class to handle file operations. More...
 
class  CCFileUtilsIOS
 Helper class to handle file operations. More...
 
class  CCLock
 
class  CCFileUtilsLinux
 Helper class to handle file operations. More...
 
class  CCFileUtilsMac
 Helper class to handle file operations. More...
 
class  CCFileUtilsMarmalade
 Helper class to handle file operations. More...
 
class  CCFileUtilsNaCl
 Helper class to handle file operations. More...
 
struct  cc_timeval
 
class  CCTime
 
class  CCFileUtilsTizen
 Helper class to handle file operations. More...
 
class  CCFileUtilsWin32
 Helper class to handle file operations. More...
 
struct  timezone
 
class  sealed
 
class  CCFileUtilsWinRT
 Helper class to handle file operations. More...
 
class  CCFreeTypeFont
 
class  CCPrecompiledShaders
 
class  CCScriptHandlerEntry
 
class  CCSchedulerScriptHandlerEntry
 @ @ More...
 
class  CCTouchScriptHandlerEntry
 
class  CCScriptEngineProtocol
 
class  CCScriptEngineManager
 @ More...
 
class  CCGLProgram
 CCGLProgram Class that implements a glProgram. More...
 
class  CCShaderCache
 CCShaderCache Singleton that stores manages GL shaders. More...
 
class  CCAnimationFrame
 CCAnimationFrame A frame of the animation. More...
 
class  CCAnimation
 A CCAnimation object is used to perform animations on the CCSprite objects. More...
 
class  CCAnimationCache
 Singleton that manages the Animations. More...
 
class  CCSprite
 CCSprite is a 2d image ( http://en.wikipedia.org/wiki/Sprite_(computer_graphics) ) More...
 
class  CCSpriteBatchNode
 CCSpriteBatchNode is like a batch node: if it contains children, it will draw them in 1 single OpenGL call (often known as "batch draw"). More...
 
class  CCSpriteFrame
 A CCSpriteFrame has: More...
 
class  CCSpriteFrameCache
 Singleton that handles the loading of the sprite frames. More...
 
class  CCNotificationCenter
 
class  CCNotificationObserver
 
class  CCProfiler
 CCProfiler cocos2d builtin profiler. More...
 
class  CCProfilingTimer
 
class  CCComponent
 
class  CCComponentContainer
 
class  CCUserDefault
 CCUserDefault acts as a tiny database. More...
 
struct  CCIMEKeyboardNotificationInfo
 
class  CCIMEDelegate
 Input method editor delegate. More...
 
class  CCIMEDispatcher
 Input Method Edit Message Dispatcher. More...
 
class  CCTextFieldDelegate
 
class  CCTextFieldTTF
 @ More...
 
class  CCTexture2D
 CCTexture2D class. More...
 
class  CCTextureAtlas
 A class that implements a Texture Atlas. More...
 
class  CCTextureCache
 Singleton that handles the loading of textures Once the texture is loaded, the next time it will return a reference of the previously loaded texture reducing GPU & CPU memory. More...
 
class  CCTextureETC
 
struct  CCPVRMipmap
 Structure which can tell where mipmap begins and how long is it. More...
 
class  CCTexturePVR
 CCTexturePVR. More...
 
class  CCParallaxNode
 CCParallaxNode: A node that simulates a parallax scroller. More...
 
class  CCTileMapAtlas
 CCTileMapAtlas is a subclass of CCAtlasNode. More...
 
class  CCTMXLayer
 CCTMXLayer represents the TMX layer. More...
 
class  CCTMXObjectGroup
 CCTMXObjectGroup represents the TMX object group. More...
 
class  CCTMXTiledMap
 CCTMXTiledMap knows how to parse and render a TMX map. More...
 
class  CCTMXLayerInfo
 CCTMXLayerInfo contains the information about the layers like: More...
 
class  CCTMXTilesetInfo
 CCTMXTilesetInfo contains the information about the tilesets like: More...
 
class  CCTMXMapInfo
 CCTMXMapInfo contains the information about the map like: More...
 
class  CCTouch
 
class  CCEvent
 
class  CCTouchDelegate
 
class  CCTargetedTouchDelegate
 @ More...
 
class  CCStandardTouchDelegate
 
struct  ccTouchHandlerHelperData
 
class  EGLTouchDelegate
 
class  CCTouchDispatcher
 
class  CCTouchHandler
 CCTouchHandler Object than contains the delegate and priority of the event handler. More...
 
class  CCStandardTouchHandler
 
class  CCTargetedTouchHandler
 
class  CCLuaBridge
 
class  CCLuaEngine
 Lua support for cocos2d-x. More...
 
class  CCLuaStack
 Lua support for cocos2d-x. More...
 
union  CCLuaValueField
 
class  CCLuaValue
 Lua support for cocos2d-x. More...
 
class  CCLuaObjcBridge
 

Typedefs

typedef void(CCObject::* SEL_SCHEDULE )(float)
typedef void(CCObject::* SEL_CallFunc )()
typedef void(CCObject::* SEL_CallFuncN )(CCNode *)
typedef void(CCObject::* SEL_CallFuncND )(CCNode *, void *)
typedef void(CCObject::* SEL_CallFuncO )(CCObject *)
typedef void(CCObject::* SEL_MenuHandler )(CCObject *)
typedef void(CCObject::* SEL_EventHandler )(CCEvent *)
typedef int(CCObject::* SEL_Compare )(CCObject *)
typedef std::set< CCObject * >
::iterator 
CCSetIterator
typedef struct my_error_mgrmy_error_ptr
typedef unsigned char CC_XML_CHAR
typedef LRESULT(* CUSTOM_WND_PROC )(UINT message, WPARAM wParam, LPARAM lParam, BOOL *pProcessed)
typedef HANDLE pthread_t
typedef HANDLE pthread_mutex_t
typedef int pthread_cond_t
typedef void(* GLInfoFunction )(GLuint program, GLenum pname, GLint *params)
typedef void(* GLLogFunction )(GLuint program, GLsizei bufsize, GLsizei *length, GLchar *infolog)
typedef int LUA_FUNCTION
typedef int LUA_TABLE
typedef int LUA_STRING
typedef std::map< std::string,
CCLuaValue
CCLuaValueDict
typedef
CCLuaValueDict::const_iterator 
CCLuaValueDictIterator
typedef std::list< CCLuaValueCCLuaValueArray
typedef
CCLuaValueArray::const_iterator 
CCLuaValueArrayIterator

Enumerations

enum  { kCCActionTagInvalid = -1 }
 
enum  { kCCNodeTagInvalid = -1 }
 
enum  {
  kCCNodeOnEnter, kCCNodeOnExit, kCCNodeOnEnterTransitionDidFinish, kCCNodeOnExitTransitionDidStart,
  kCCNodeOnCleanup
}
 
enum  ccConfigurationType {
  ConfigurationError, ConfigurationString, ConfigurationInt, ConfigurationDouble,
  ConfigurationBoolean
}
 
enum  ccDirectorProjection { kCCDirectorProjection2D, kCCDirectorProjection3D, kCCDirectorProjectionCustom, kCCDirectorProjectionDefault = kCCDirectorProjection3D }
 Possible OpenGL projections used by director. More...
 
enum  CCVerticalTextAlignment { kCCVerticalTextAlignmentTop, kCCVerticalTextAlignmentCenter, kCCVerticalTextAlignmentBottom }
 Vertical text alignment type. More...
 
enum  CCTextAlignment { kCCTextAlignmentLeft, kCCTextAlignmentCenter, kCCTextAlignmentRight }
 Horizontal text alignment type. More...
 
enum  ccKeypadMSGType { kTypeBackClicked = 1, kTypeMenuClicked }
 
enum  { kCCLabelAutomaticWidth = -1 }
 
enum  ccTouchesMode { kCCTouchesAllAtOnce, kCCTouchesOneByOne }
 
enum  tOrientation { kCCTransitionOrientationLeftOver = 0, kCCTransitionOrientationRightOver = 1, kCCTransitionOrientationUpOver = 0, kCCTransitionOrientationDownOver = 1 }
 Orientation Type used by some transitions. More...
 
enum  tCCMenuState { kCCMenuStateWaiting, kCCMenuStateTrackingTouch }
 
enum  { kCCMenuHandlerPriority = -128 }
 
enum  CCProgressTimerType { kCCProgressTimerTypeRadial, kCCProgressTimerTypeBar }
 Types of progress. More...
 
enum  tCCImageFormat { kCCImageFormatJPEG = 0, kCCImageFormatPNG = 1 }
 
enum  {
  kCCParticleDurationInfinity = -1, kCCParticleStartSizeEqualToEndSize = -1, kCCParticleStartRadiusEqualToEndRadius = -1, kParticleStartSizeEqualToEndSize = kCCParticleStartSizeEqualToEndSize,
  kParticleDurationInfinity = kCCParticleDurationInfinity
}
 
enum  { kCCParticleModeGravity, kCCParticleModeRadius }
 
enum  tCCPositionType { kCCPositionTypeFree, kCCPositionTypeRelative, kCCPositionTypeGrouped }
 possible types of particle positions More...
 
enum  { kPositionTypeFree = kCCPositionTypeFree, kPositionTypeGrouped = kCCPositionTypeGrouped }
 
enum  TargetPlatform {
  kTargetWindows, kTargetLinux, kTargetMacOS, kTargetAndroid,
  kTargetIphone, kTargetIpad, kTargetBlackBerry, kTargetNaCl,
  kTargetEmscripten, kTargetTizen, kTargetWinRT, kTargetWP8
}
 
enum  ccLanguageType {
  kLanguageEnglish = 0, kLanguageChinese, kLanguageFrench, kLanguageItalian,
  kLanguageGerman, kLanguageSpanish, kLanguageDutch, kLanguageRussian,
  kLanguageKorean, kLanguageJapanese, kLanguageHungarian, kLanguagePortuguese,
  kLanguageArabic
}
 Enum the language type supported now. More...
 
enum  ccScriptType { kScriptTypeNone = 0, kScriptTypeLua, kScriptTypeJavascript }
 
enum  { kCCVertexAttrib_Position, kCCVertexAttrib_Color, kCCVertexAttrib_TexCoords, kCCVertexAttrib_MAX }
 
enum  {
  kCCUniformPMatrix, kCCUniformMVMatrix, kCCUniformMVPMatrix, kCCUniformTime,
  kCCUniformSinTime, kCCUniformCosTime, kCCUniformRandom01, kCCUniformSampler,
  kCCUniform_MAX
}
 
enum  {
  kCCVertexAttribFlag_None = 0, kCCVertexAttribFlag_Position = 1 << 0, kCCVertexAttribFlag_Color = 1 << 1, kCCVertexAttribFlag_TexCoords = 1 << 2,
  kCCVertexAttribFlag_PosColorTex = ( kCCVertexAttribFlag_Position | kCCVertexAttribFlag_Color | kCCVertexAttribFlag_TexCoords )
}
 vertex attrib flags More...
 
enum  ccGLServerState { CC_GL_ALL = 0 }
 GL server side states. More...
 
enum  CCTexture2DPixelFormat {
  kCCTexture2DPixelFormat_RGBA8888, kCCTexture2DPixelFormat_RGB888, kCCTexture2DPixelFormat_RGB565, kCCTexture2DPixelFormat_A8,
  kCCTexture2DPixelFormat_I8, kCCTexture2DPixelFormat_AI88, kCCTexture2DPixelFormat_RGBA4444, kCCTexture2DPixelFormat_RGB5A1,
  kCCTexture2DPixelFormat_PVRTC4, kCCTexture2DPixelFormat_PVRTC2, kCCTexture2DPixelFormat_Default = kCCTexture2DPixelFormat_RGBA8888, kTexture2DPixelFormat_RGBA8888 = kCCTexture2DPixelFormat_RGBA8888,
  kTexture2DPixelFormat_RGB888 = kCCTexture2DPixelFormat_RGB888, kTexture2DPixelFormat_RGB565 = kCCTexture2DPixelFormat_RGB565, kTexture2DPixelFormat_A8 = kCCTexture2DPixelFormat_A8, kTexture2DPixelFormat_RGBA4444 = kCCTexture2DPixelFormat_RGBA4444,
  kTexture2DPixelFormat_RGB5A1 = kCCTexture2DPixelFormat_RGB5A1, kTexture2DPixelFormat_Default = kCCTexture2DPixelFormat_Default
}
 Possible texture pixel formats. More...
 
enum  { CC_PVRMIPMAP_MAX = 16 }
 Determine how many mipmaps can we have. More...
 
enum  { CCTMXOrientationOrtho, CCTMXOrientationHex, CCTMXOrientationIso }
 Possible orientations of the TMX map. More...
 
enum  { TMXLayerAttribNone = 1 << 0, TMXLayerAttribBase64 = 1 << 1, TMXLayerAttribGzip = 1 << 2, TMXLayerAttribZlib = 1 << 3 }
 
enum  {
  TMXPropertyNone, TMXPropertyMap, TMXPropertyLayer, TMXPropertyObjectGroup,
  TMXPropertyObject, TMXPropertyTile
}
 
enum  ccTMXTileFlags {
  kCCTMXTileHorizontalFlag = 0x80000000, kCCTMXTileVerticalFlag = 0x40000000, kCCTMXTileDiagonalFlag = 0x20000000, kCCFlipedAll = (kCCTMXTileHorizontalFlag|kCCTMXTileVerticalFlag|kCCTMXTileDiagonalFlag),
  kCCFlippedMask = ~(kCCFlipedAll)
}
 
enum  ccTouchSelectorFlag {
  ccTouchSelectorBeganBit = 1 << 0, ccTouchSelectorMovedBit = 1 << 1, ccTouchSelectorEndedBit = 1 << 2, ccTouchSelectorCancelledBit = 1 << 3,
  ccTouchSelectorAllBits = ( ccTouchSelectorBeganBit | ccTouchSelectorMovedBit | ccTouchSelectorEndedBit | ccTouchSelectorCancelledBit)
}
 
enum  {
  CCTOUCHBEGAN, CCTOUCHMOVED, CCTOUCHENDED, CCTOUCHCANCELLED,
  ccTouchMax
}
 
enum  CCLuaBridgeError {
  kCCLuaBridgeErrorOk = 0, kCCLuaBridgeErrorInvalidParameters = -1, kCCLuaBridgeErrorClassNotFound = -2, kCCLuaBridgeErrorMethodNotFound = -3,
  kCCLuaBridgeErrorExceptionOccurred = -4, kCCLuaBridgeErrorMethodSignature = -5, kCCLuaBridgeErrorJavaVMError = -6
}
 
enum  CCLuaValueType {
  CCLuaValueTypeInt, CCLuaValueTypeFloat, CCLuaValueTypeBoolean, CCLuaValueTypeString,
  CCLuaValueTypeDict, CCLuaValueTypeArray, CCLuaValueTypeCCObject
}
 

Functions

CC_DLL CCPoint  (CCPoint &p0, CCPoint &p1, CCPoint &p2, CCPoint &p3, float tension, float t)
CC_DLL CCAffineTransform  (float a, float b, float c, float d, float tx, float ty)
var  ( var a, var b, var c, var d, var tx, var ty)
local  ( local a, local b, local c, local d, local tx, local ty)
CC_DLL CCPoint  (const CCPoint &point, const CCAffineTransform &t)
CC_DLL CCSize  (const CCSize &size, const CCAffineTransform &t)
CC_DLL CCAffineTransform  ()
CC_DLL CCRect  (const CCRect &rect, const CCAffineTransform &anAffineTransform)
CC_DLL CCAffineTransform  (const CCAffineTransform &t, float tx, float ty)
CC_DLL CCAffineTransform  (const CCAffineTransform &aTransform, float anAngle)
CC_DLL CCAffineTransform  (const CCAffineTransform &t, float sx, float sy)
CC_DLL CCAffineTransform  (const CCAffineTransform &t1, const CCAffineTransform &t2)
CC_DLL bool  (const CCAffineTransform &t1, const CCAffineTransform &t2)
CC_DLL CCAffineTransform  (const CCAffineTransform &t)
CCRect CC_DLL  (const char *pszContent)
 Returns a Core Graphics rectangle structure corresponding to the data in a given string. More...
 
CCPoint CC_DLL  (const char *pszContent)
 Returns a Core Graphics point structure corresponding to the data in a given string. More...
 
CCSize CC_DLL  (const char *pszContent)
 Returns a Core Graphics size structure corresponding to the data in a given string. More...
 
void CC_DLL  ()
 Initializes the drawing primitives. More...
 
void CC_DLL  ()
 Frees allocated resources by the drawing primitives. More...
 
void CC_DLL  (const CCPoint &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...
 
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...
 
void CC_DLL  (const CCPoint &origin, const CCPoint &control1, const CCPoint &control2, const CCPoint &destination, unsigned int 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...
 
void CC_DLL  (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 set the drawing color with 4 floats More...
 
var  ( var r, var g, var b, var a)
 set the drawing color with 4 floats More...
 
local  ( local r, local g, local b, local a)
 set the drawing color with 4 floats More...
 
void CC_DLL  (GLfloat pointSize)
 set the point size in points. More...
 
CC_DLL const char *  ()
var  ()
local  ()
CC_DLL CCBMFontConfiguration (const char *file)
CC_DLL void  (void)
 Purges the FNT config cache. More...
 
void CC_DLL  (const char *pszFormat,...)
 Output Debug message. More...
 
void CC_DLL  (const char *pszFormat)
 lua can not deal with ... More...
 
void CC_DLL  (const char *pszMsg, const char *pszTitle)
 Pop out a message box. More...
 
var  ( var pszMsg, var pszTitle)
 Pop out a message box. More...
 
local  ( local pszMsg, local pszTitle)
 Pop out a message box. More...
 
  (void) my_error_exit(j_common_ptr cinfo)
int CC_DLL  (struct timeval *, struct timezone *)
local  ()
void  (pthread_mutex_t *m, void *attributes)
var  ( var m, var attributes)
local  ( local m, local attributes)
int  (pthread_mutex_t *m)
int  (pthread_mutex_t *m)
void  (pthread_mutex_t *m)
std::wstring CC_DLL  (const char *pszUtf8Str, unsigned len=-1)
std::string CC_DLL  (const wchar_t *pwszStr)
std::string  (Platform::String^s)
var  ( var s)
local  ( local s)
float  (float dips)
var  ( var dips)
local  ( local dips)
float  (float v)
var  ( var v)
local  ( local v)
Concurrency::task
< Platform::Array< byte >^> 
(Platform::String^path)
void CC_DLL  (void)
 Invalidates the GL state cache. More...
 
void CC_DLL  (GLuint program)
 Uses the GL program in case program is different than the current one. More...
 
void CC_DLL  (GLuint program)
 Deletes the GL program. More...
 
void CC_DLL  (GLenum sfactor, GLenum dfactor)
 Uses a blending function in case it not already used. More...
 
void CC_DLL  (void)
 Resets the blending mode back to the cached state in case you used glBlendFuncSeparate() or glBlendEquation(). More...
 
void CC_DLL  (void)
 sets the projection matrix as dirty More...
 
void CC_DLL  (unsigned int flags)
 Will enable the vertex attribs that are passed as flags. More...
 
void CC_DLL  (GLuint textureId)
 If the texture is not already bound to texture unit 0, it binds it. More...
 
void CC_DLL  (GLuint textureUnit, GLuint textureId)
 If the texture is not already bound to a given unit, it binds it. More...
 
void CC_DLL  (GLuint textureId)
 It will delete a given texture. More...
 
var  ( var textureId)
 It will delete a given texture. More...
 
local  ( local textureId)
 It will delete a given texture. More...
 
void CC_DLL  (GLuint textureUnit, GLuint textureId)
 It will delete a given texture. More...
 
void CC_DLL  (GLuint vaoId)
 If the vertex array is not already bound, it binds it. More...
 
void CC_DLL  (ccGLServerState flags)
 It will enable / disable the server side GL states. More...
 
int  (unsigned char *in, unsigned int inLength, unsigned char **out)
 Decodes a 64base encoded memory. More...
 
float CC_DLL  (const CCPoint &v)
 Calculates distance between point an origin. More...
 
float CC_DLL  (const CCPoint &v1, const CCPoint &v2)
 Calculates the distance between two points. More...
 
CCPoint CC_DLL  (const CCPoint &v)
 Returns point multiplied to a length of 1. More...
 
CCPoint CC_DLL  (const float a)
 Converts radians to a normalized vector. More...
 
float CC_DLL  (const CCPoint &v)
 Converts a vector to radians. More...
 
float CC_DLL  (float value, float min_inclusive, float max_inclusive)
 Clamp a value between from and to. More...
 
local  ( local value, local min_inclusive, local max_inclusive)
 Clamp a value between from and to. More...
 
CCPoint CC_DLL  (const CCPoint &p, const CCPoint &from, const CCPoint &to)
 Clamp a point between from and to. More...
 
CCPoint CC_DLL  (const CCSize &s)
 Quickly convert CCSize to a CCPoint. More...
 
CCPoint CC_DLL  (const CCPoint &p, float(*opFunc)(float))
 Run a math operation function on each point component absf, fllorf, ceilf, roundf any function that has the signature: float func(float); For example: let's try to take the floor of x,y ccpCompOp(p,floorf);. More...
 
CCPoint CC_DLL  (const CCPoint &a, const CCPoint &b, float alpha)
 Linear Interpolation between two points a and b. More...
 
bool CC_DLL  (const CCPoint &a, const CCPoint &b, float variance)
local  ( local a, local b, local variance)
CCPoint CC_DLL  (const CCPoint &a, const CCPoint &b)
 Multiplies a and b components, a.x*b.x, a.y*b.y. More...
 
float CC_DLL  (const CCPoint &a, const CCPoint &b)
float CC_DLL  (const CCPoint &a, const CCPoint &b)
CCPoint CC_DLL  (const CCPoint &v, const CCPoint &pivot, float angle)
 Rotates a point counter clockwise by the angle around a pivot. More...
 
bool CC_DLL  (const CCPoint &p1, const CCPoint &p2, const CCPoint &p3, const CCPoint &p4, float *s, float *t)
 A general line-line intersection test. More...
 
bool CC_DLL  (const CCPoint &A, const CCPoint &B, const CCPoint &C, const CCPoint &D)
CCPoint CC_DLL  (const CCPoint &A, const CCPoint &B, const CCPoint &C, const CCPoint &D)
var  ( var A, var B, var C, var D)
local  ( local A, local B, local C, local D)
CC_DLL void  (const char *timerName)
CC_DLL void  (const char *timerName)
CC_DLL void  (const char *timerName)
local  ( local timerName)
CC_DLL int  (const unsigned short *str)
CC_DLL void  (std::vector< unsigned short > *str)
var  ( var str)
local  ( local str)
CC_DLL bool  (unsigned short ch)
var  ( var ch)
local  ( local ch)
CC_DLL long  (const char *p, int max)
var  ( var p, var max)
local  ( local p, local max)
CC_DLL unsigned int  (std::vector< unsigned short > str, unsigned short c)
var  ( var str, var c)
local  ( local str, local c)
CC_DLL std::vector< unsigned
short > 
(const unsigned short *str)
CC_DLL unsigned short *  (const char *str_old, int length=-1, int *rUtf16Size=NULL)
var  ( var str_old, var 1, var NULL)
local  ( local str_old, local 1, local NULL)
CC_DLL char *  (const unsigned short *str, long len, long *items_read, long *items_written)
 cc_utf16_to_utf8: : a UTF-16 encoded string : the maximum length of to use. More...
 
unsigned long  (unsigned long value)
 returns the Next Power of Two value. More...
 
void CC_DLL  (CCPoint *points, float stroke, ccVertex2F *vertices, unsigned int offset, unsigned int nuPoints)
 converts a line to a polygon More...
 
var  ( var points, var stroke, var vertices, var offset, var nuPoints)
 converts a line to a polygon More...
 
local  ( local points, local stroke, local vertices, local offset, local nuPoints)
 converts a line to a polygon More...
 
bool CC_DLL  (float Ax, float Ay, float Bx, float By, float Cx, float Cy, float Dx, float Dy, float *T)
 returns whether or not the line intersects More...
 
var  ( var Ax, var Ay, var Bx, var By, var Cx, var Cy, var Dx, var Dy, var T)
 returns whether or not the line intersects More...
 
local  ( local Ax, local Ay, local Bx, local By, local Cx, local Cy, local Dx, local Dy, local T)
 returns whether or not the line intersects More...
 
void  (const CCAffineTransform *t, GLfloat *m)
void  (const GLfloat *m, CCAffineTransform *t)

Variables

CC_DLL const CCAffineTransform CCAffineTransformIdentity
class CC_DLL CCSize
var CCSize
local CCSize
const CCPoint CCPointZero = CCPoint((float)( 0 ), (float)( 0 ))
const CCSize CCSizeZero = CCSize((float)( 0 ), (float)( 0 ))
var CCSizeZero = CCSize((float)( 0 ), (float)( 0 ))
local CCSizeZero = CCSize((float)( 0 ), (float)( 0 ))
const CCRect CCRectZero = CCRect((float)( 0 ), (float)( 0 ), (float)( 0 ), (float)( 0 ))
CC_DLL const GLcharccPosition_uColor_frag
CC_DLL const GLcharccPosition_uColor_vert
var ccPosition_uColor_vert
local ccPosition_uColor_vert
CC_DLL const GLcharccPositionColor_frag
var ccPositionColor_frag
local ccPositionColor_frag
CC_DLL const GLcharccPositionColor_vert
var ccPositionColor_vert
local ccPositionColor_vert
CC_DLL const GLcharccPositionTexture_frag
var ccPositionTexture_frag
local ccPositionTexture_frag
CC_DLL const GLcharccPositionTexture_vert
var ccPositionTexture_vert
local ccPositionTexture_vert
CC_DLL const GLcharccPositionTextureA8Color_frag
CC_DLL const GLcharccPositionTextureA8Color_vert
var ccPositionTextureA8Color_vert
local ccPositionTextureA8Color_vert
CC_DLL const GLcharccPositionTextureColor_frag
var ccPositionTextureColor_frag
local ccPositionTextureColor_frag
CC_DLL const GLcharccPositionTextureColor_vert
var ccPositionTextureColor_vert
local ccPositionTextureColor_vert
CC_DLL const GLcharccPositionTextureColorAlphaTest_frag
CC_DLL const GLcharccPositionTexture_uColor_frag
var ccPositionTexture_uColor_frag
local ccPositionTexture_uColor_frag
CC_DLL const GLcharccPositionTexture_uColor_vert
var ccPositionTexture_uColor_vert
local ccPositionTexture_uColor_vert
CC_DLL const GLcharccPositionColorLengthTexture_frag
CC_DLL const GLcharccPositionColorLengthTexture_vert
var ccPositionColorLengthTexture_vert
local ccPositionColorLengthTexture_vert
CC_DLL const GLcharccExSwitchMask_frag
var ccExSwitchMask_frag
local ccExSwitchMask_frag
bool kCCProfilerCategorySprite
local kCCProfilerCategorySprite
bool kCCProfilerCategoryBatchSprite
var kCCProfilerCategoryBatchSprite
local kCCProfilerCategoryBatchSprite
bool kCCProfilerCategoryParticles
var kCCProfilerCategoryParticles
local kCCProfilerCategoryParticles

Typedef Documentation

typedef std::list<CCLuaValue>
CCLuaValueArray
typedef
CCLuaValueArray::const_iterator
CCLuaValueArrayIterator
typedef std::map<std::string,
CCLuaValue> CCLuaValueDict
typedef
CCLuaValueDict::const_iterator
CCLuaValueDictIterator
typedef LRESULT(*
CUSTOM_WND_PROC)(UINT message,
WPARAM wParam, LPARAM lParam,
BOOL *pProcessed)
typedef LRESULT(*
CUSTOM_WND_PROC)(UINT message,
WPARAM wParam, LPARAM lParam,
BOOL *pProcessed)
typedef LRESULT(*
CUSTOM_WND_PROC)(UINT message,
WPARAM wParam, LPARAM lParam,
BOOL *pProcessed)
typedef int LUA_FUNCTION
local LUA_FUNCTION
typedef int LUA_STRING
local LUA_STRING
typedef int LUA_TABLE
var LUA_TABLE
local LUA_TABLE
typedef struct my_error_mgr*
my_error_ptr
local my_error_ptr
typedef int pthread_cond_t
typedef HANDLE pthread_mutex_t
typedef HANDLE pthread_t
var pthread_t
local pthread_t

Enumeration Type Documentation

anonymous enum
Enumerator
kCCActionTagInvalid 

Default tag.

var enum
Enumerator
kCCActionTagInvalid 

Default tag.

local enum
Enumerator
kCCActionTagInvalid 

Default tag.

Enumerator
ConfigurationError 
ConfigurationString 
ConfigurationInt 
ConfigurationDouble 
ConfigurationBoolean 
Enumerator
ConfigurationError 
ConfigurationString 
ConfigurationInt 
ConfigurationDouble 
ConfigurationBoolean 
Enumerator
ConfigurationError 
ConfigurationString 
ConfigurationInt 
ConfigurationDouble 
ConfigurationBoolean 
Enumerator
kCCLuaBridgeErrorOk 
kCCLuaBridgeErrorInvalidParameters 
kCCLuaBridgeErrorClassNotFound 
kCCLuaBridgeErrorMethodNotFound 
kCCLuaBridgeErrorExceptionOccurred 
kCCLuaBridgeErrorMethodSignature 
kCCLuaBridgeErrorJavaVMError 
Enumerator
kCCLuaBridgeErrorOk 
kCCLuaBridgeErrorInvalidParameters 
kCCLuaBridgeErrorClassNotFound 
kCCLuaBridgeErrorMethodNotFound 
kCCLuaBridgeErrorExceptionOccurred 
kCCLuaBridgeErrorMethodSignature 
kCCLuaBridgeErrorJavaVMError 
Enumerator
kCCLuaBridgeErrorOk 
kCCLuaBridgeErrorInvalidParameters 
kCCLuaBridgeErrorClassNotFound 
kCCLuaBridgeErrorMethodNotFound 
kCCLuaBridgeErrorExceptionOccurred 
kCCLuaBridgeErrorMethodSignature 
kCCLuaBridgeErrorJavaVMError 
Enumerator
CCLuaValueTypeInt 
CCLuaValueTypeFloat 
CCLuaValueTypeBoolean 
CCLuaValueTypeString 
CCLuaValueTypeDict 
CCLuaValueTypeArray 
CCLuaValueTypeCCObject 
Enumerator
CCLuaValueTypeInt 
CCLuaValueTypeFloat 
CCLuaValueTypeBoolean 
CCLuaValueTypeString 
CCLuaValueTypeDict 
CCLuaValueTypeArray 
CCLuaValueTypeCCObject 
Enumerator
CCLuaValueTypeInt 
CCLuaValueTypeFloat 
CCLuaValueTypeBoolean 
CCLuaValueTypeString 
CCLuaValueTypeDict 
CCLuaValueTypeArray 
CCLuaValueTypeCCObject 
Enumerator
kScriptTypeNone 
kScriptTypeLua 
kScriptTypeJavascript 
Enumerator
kScriptTypeNone 
kScriptTypeLua 
kScriptTypeJavascript 
local ccScriptType
Enumerator
kScriptTypeNone 
kScriptTypeLua 
kScriptTypeJavascript 

Horizontal text alignment type.

Enumerator
kCCTextAlignmentLeft 
kCCTextAlignmentCenter 
kCCTextAlignmentRight 

Horizontal text alignment type.

Enumerator
kCCTextAlignmentLeft 
kCCTextAlignmentCenter 
kCCTextAlignmentRight 

Horizontal text alignment type.

Enumerator
kCCTextAlignmentLeft 
kCCTextAlignmentCenter 
kCCTextAlignmentRight 
Enumerator
kCCTouchesAllAtOnce 
kCCTouchesOneByOne 
Enumerator
kCCTouchesAllAtOnce 
kCCTouchesOneByOne 
Enumerator
kCCTouchesAllAtOnce 
kCCTouchesOneByOne 

Vertical text alignment type.

Enumerator
kCCVerticalTextAlignmentTop 
kCCVerticalTextAlignmentCenter 
kCCVerticalTextAlignmentBottom 

Vertical text alignment type.

Enumerator
kCCVerticalTextAlignmentTop 
kCCVerticalTextAlignmentCenter 
kCCVerticalTextAlignmentBottom 

Vertical text alignment type.

Enumerator
kCCVerticalTextAlignmentTop 
kCCVerticalTextAlignmentCenter 
kCCVerticalTextAlignmentBottom 
Enumerator
kTargetWindows 
kTargetLinux 
kTargetMacOS 
kTargetAndroid 
kTargetIphone 
kTargetIpad 
kTargetBlackBerry 
kTargetNaCl 
kTargetEmscripten 
kTargetTizen 
kTargetWinRT 
kTargetWP8 
Enumerator
kTargetWindows 
kTargetLinux 
kTargetMacOS 
kTargetAndroid 
kTargetIphone 
kTargetIpad 
kTargetBlackBerry 
kTargetNaCl 
kTargetEmscripten 
kTargetTizen 
kTargetWinRT 
kTargetWP8 
Enumerator
kTargetWindows 
kTargetLinux 
kTargetMacOS 
kTargetAndroid 
kTargetIphone 
kTargetIpad 
kTargetBlackBerry 
kTargetNaCl 
kTargetEmscripten 
kTargetTizen 
kTargetWinRT 
kTargetWP8 

Function Documentation

CC_DLL int cocos2d::cc_wcslen ( const unsigned short *  str)
var cc_wcslen ( var  str)
local cc_wcslen ( local  str)
CC_DLL void
cocos2d::cc_utf8_trim_ws
( std::vector< unsigned short > *  str)
var cc_utf8_trim_ws ( var  str)
local cc_utf8_trim_ws ( local  str)
CC_DLL bool
cocos2d::isspace_unicode
( unsigned short  ch)
var isspace_unicode ( var  ch)
local isspace_unicode ( local  ch)
void cocos2d::CGAffineToGL ( const CCAffineTransform *  t,
GLfloat *  m 
)
var CGAffineToGL ( var  t,
var  m 
)
local CGAffineToGL ( local  t,
local  m 
)
void cocos2d::GLToCGAffine ( const GLfloat *  m,
CCAffineTransform *  t 
)
var GLToCGAffine ( var  m,
var  t 
)
local GLToCGAffine ( local  m,
local  t 
)
CC_DLL CCAffineTransform
cocos2d::__CCAffineTransformMake
( float  a,
float  b,
float  c,
float  d,
float  tx,
float  ty 
)
var __CCAffineTransformMake ( var  a,
var  b,
var  c,
var  d,
var  tx,
var  ty 
)
local __CCAffineTransformMake ( local  a,
local  b,
local  c,
local  d,
local  tx,
local  ty 
)
void cocos2d::pthread_mutex_init ( pthread_mutex_t *  m,
void *  attributes 
)
var pthread_mutex_init ( var  m,
var  attributes 
)
local pthread_mutex_init ( local  m,
local  attributes 
)
CC_DLL CCPoint
cocos2d::__CCPointApplyAffineTransform
( const CCPoint &  point,
const CCAffineTransform &  t 
)
var __CCPointApplyAffineTransform ( var  point,
var  t 
)
local __CCPointApplyAffineTransform ( local  point,
local  t 
)
std::wstring CC_DLL
cocos2d::CCUtf8ToUnicode
( const char *  pszUtf8Str,
unsigned  len = -1 
)
var CCUtf8ToUnicode ( var  pszUtf8Str,
var  len = -1 
)
local CCUtf8ToUnicode ( local  pszUtf8Str,
local  len = -1 
)
int cocos2d::pthread_mutex_lock ( pthread_mutex_t *  m)
var pthread_mutex_lock ( var  m)
local pthread_mutex_lock ( local  m)
CC_DLL long cocos2d::cc_utf8_strlen ( const char *  p,
int  max 
)
var cc_utf8_strlen ( var  p,
var  max 
)
local cc_utf8_strlen ( local  p,
local  max 
)
std::string CC_DLL
cocos2d::CCUnicodeToUtf8
( const wchar_t *  pwszStr)
var CCUnicodeToUtf8 ( var  pwszStr)
local CCUnicodeToUtf8 ( local  pwszStr)
CC_DLL CCSize
cocos2d::__CCSizeApplyAffineTransform
( const CCSize &  size,
const CCAffineTransform &  t 
)
var __CCSizeApplyAffineTransform ( var  size,
var  t 
)
local __CCSizeApplyAffineTransform ( local  size,
local  t 
)
std::string
cocos2d::PlatformStringToString
( Platform::String^  s)
var PlatformStringToString ( var  s)
local PlatformStringToString ( local  s)
int cocos2d::pthread_mutex_unlock ( pthread_mutex_t *  m)
var pthread_mutex_unlock ( var  m)
local pthread_mutex_unlock ( local  m)
unsigned long cocos2d::ccNextPOT ( unsigned long  value)

returns the Next Power of Two value.

Examples:

  • If "value" is 15, it will return 16.
  • If "value" is 16, it will return 16.
  • If "value" is 17, it will return 32.
Since
v0.99.5
void cocos2d::pthread_mutex_destroy ( pthread_mutex_t *  m)
var pthread_mutex_destroy ( var  m)
local pthread_mutex_destroy ( local  m)
int cocos2d::base64Decode ( unsigned char *  in,
unsigned int  inLength,
unsigned char **  out 
)

Decodes a 64base encoded memory.

The decoded memory is expected to be freed by the caller.

Returns
the length of the out buffer
Since
v0.8.1
var base64Decode ( var  in,
var  inLength,
var  out 
)

Decodes a 64base encoded memory.

The decoded memory is expected to be freed by the caller.

Returns
the length of the out buffer
Since
v0.8.1
local base64Decode ( local  in,
local  inLength,
local  out 
)

Decodes a 64base encoded memory.

The decoded memory is expected to be freed by the caller.

Returns
the length of the out buffer
Since
v0.8.1
float cocos2d::ConvertDipsToPixels ( float  dips)
var ConvertDipsToPixels ( var  dips)
local ConvertDipsToPixels ( local  dips)
CC_DLL CCAffineTransform
cocos2d::CCAffineTransformMakeIdentity
( )
var CCAffineTransformMakeIdentity ( )
local CCAffineTransformMakeIdentity ( )
float cocos2d::getScaledDPIValue ( float  v)
var getScaledDPIValue ( var  v)
local getScaledDPIValue ( local  v)
CC_DLL CCRect
cocos2d::CCRectApplyAffineTransform
( const CCRect &  rect,
const CCAffineTransform &  anAffineTransform 
)
var CCRectApplyAffineTransform ( var  rect,
var  anAffineTransform 
)
local CCRectApplyAffineTransform ( local  rect,
local  anAffineTransform 
)
Concurrency::task
<Platform::Array<byte>
^> cocos2d::ReadDataAsync
( Platform::String^  path)
var ReadDataAsync ( var  path)
local ReadDataAsync ( local  path)
CC_DLL CCAffineTransform
cocos2d::CCAffineTransformTranslate
( const CCAffineTransform &  t,
float  tx,
float  ty 
)
var CCAffineTransformTranslate ( var  t,
var  tx,
var  ty 
)
local CCAffineTransformTranslate ( local  t,
local  tx,
local  ty 
)
CC_DLL unsigned int
cocos2d::cc_utf8_find_last_not_char
( std::vector< unsigned short >  str,
unsigned short  c 
)
var cc_utf8_find_last_not_char ( var  str,
var  c 
)
local cc_utf8_find_last_not_char ( local  str,
local  c 
)
CC_DLL CCAffineTransform
cocos2d::CCAffineTransformRotate
( const CCAffineTransform &  aTransform,
float  anAngle 
)
var CCAffineTransformRotate ( var  aTransform,
var  anAngle 
)
local CCAffineTransformRotate ( local  aTransform,
local  anAngle 
)
CC_DLL CCAffineTransform
cocos2d::CCAffineTransformScale
( const CCAffineTransform &  t,
float  sx,
float  sy 
)
var CCAffineTransformScale ( var  t,
var  sx,
var  sy 
)
local CCAffineTransformScale ( local  t,
local  sx,
local  sy 
)
CC_DLL std::vector<unsigned
short>
cocos2d::cc_utf16_vec_from_utf16_str
( const unsigned short *  str)
var cc_utf16_vec_from_utf16_str ( var  str)
local cc_utf16_vec_from_utf16_str ( local  str)
CC_DLL CCAffineTransform
cocos2d::CCAffineTransformConcat
( const CCAffineTransform &  t1,
const CCAffineTransform &  t2 
)
var CCAffineTransformConcat ( var  t1,
var  t2 
)
local CCAffineTransformConcat ( local  t1,
local  t2 
)
CC_DLL bool
cocos2d::CCAffineTransformEqualToTransform
( const CCAffineTransform &  t1,
const CCAffineTransform &  t2 
)
var
CCAffineTransformEqualToTransform
( var  t1,
var  t2 
)
local
CCAffineTransformEqualToTransform
( local  t1,
local  t2 
)
CC_DLL CCAffineTransform
cocos2d::CCAffineTransformInvert
( const CCAffineTransform &  t)
var CCAffineTransformInvert ( var  t)
local CCAffineTransformInvert ( local  t)
CCPoint CC_DLL
cocos2d::CCPointFromString
( const char *  pszContent)

Returns a Core Graphics point structure corresponding to the data in a given string.

Parameters
pszContentA string object whose contents are of the form "{x,y}", where x is the x coordinate and y is the y coordinate. The x and y values can represent integer or float values. An example of a valid string is "{3.0,2.5}". The string is not localized, so items are always separated with a comma.
Returns
A Core Graphics structure that represents a point. If the string is not well-formed, the function returns CCPointZero.
CC_DLL unsigned short*
cocos2d::cc_utf8_to_utf16
( const char *  str_old,
int  length = -1,
int *  rUtf16Size = NULL 
)
var cc_utf8_to_utf16 ( var  str_old,
var  length = -1,
var  rUtf16Size = NULL 
)
local cc_utf8_to_utf16 ( local  str_old,
local  length = -1,
local  rUtf16Size = NULL 
)
CCSize CC_DLL
cocos2d::CCSizeFromString
( const char *  pszContent)

Returns a Core Graphics size structure corresponding to the data in a given string.

Parameters
pszContentA string object whose contents are of the form "{w, h}", where w is the width and h is the height. The w and h values can be integer or float values. An example of a valid string is "{3.0,2.5}". The string is not localized, so items are always separated with a comma.
Returns
A Core Graphics structure that represents a size. If the string is not well-formed, the function returns CCSizeZero.
var CCSizeFromString ( var  pszContent)

Returns a Core Graphics size structure corresponding to the data in a given string.

Parameters
pszContentA string object whose contents are of the form "{w, h}", where w is the width and h is the height. The w and h values can be integer or float values. An example of a valid string is "{3.0,2.5}". The string is not localized, so items are always separated with a comma.
Returns
A Core Graphics structure that represents a size. If the string is not well-formed, the function returns CCSizeZero.
local CCSizeFromString ( local  pszContent)

Returns a Core Graphics size structure corresponding to the data in a given string.

Parameters
pszContentA string object whose contents are of the form "{w, h}", where w is the width and h is the height. The w and h values can be integer or float values. An example of a valid string is "{3.0,2.5}". The string is not localized, so items are always separated with a comma.
Returns
A Core Graphics structure that represents a size. If the string is not well-formed, the function returns CCSizeZero.
void CC_DLL cocos2d::ccDrawFree ( )

Frees allocated resources by the drawing primitives.

var ccDrawFree ( )

Frees allocated resources by the drawing primitives.

local ccDrawFree ( )

Frees allocated resources by the drawing primitives.

void CC_DLL
cocos2d::ccGLDeleteProgram
( GLuint  program)

Deletes the GL program.

If it is the one that is being used, it invalidates it. If CC_ENABLE_GL_STATE_CACHE is disabled, it will the glDeleteProgram() directly.

Since
v2.0.0
var ccGLDeleteProgram ( var  program)

Deletes the GL program.

If it is the one that is being used, it invalidates it. If CC_ENABLE_GL_STATE_CACHE is disabled, it will the glDeleteProgram() directly.

Since
v2.0.0
local ccGLDeleteProgram ( local  program)

Deletes the GL program.

If it is the one that is being used, it invalidates it. If CC_ENABLE_GL_STATE_CACHE is disabled, it will the glDeleteProgram() directly.

Since
v2.0.0
CC_DLL char*
cocos2d::cc_utf16_to_utf8
( const unsigned short *  str,
long  len,
long *  items_read,
long *  items_written 
)

cc_utf16_to_utf8: : a UTF-16 encoded string : the maximum length of to use.

If < 0, then the string is terminated with a 0 character. : location to store number of words read, or NULL. If NULL, then G_CONVERT_ERROR_PARTIAL_INPUT will be returned in case contains a trailing partial character. If an error occurs then the index of the invalid input is stored here. : location to store number of bytes written, or NULL. The value stored here does not include the trailing 0 byte. : location to store the error occuring, or NULL to ignore errors. Any of the errors in #GConvertError other than G_CONVERT_ERROR_NO_CONVERSION may occur.

Convert a string from UTF-16 to UTF-8. The result will be terminated with a 0 byte.

Return value: a pointer to a newly allocated UTF-8 string. This value must be freed with free(). If an error occurs, NULL will be returned and set.

CC_DLL void
cocos2d::CCProfilingEndTimingBlock
( const char *  timerName)
var CCProfilingEndTimingBlock ( var  timerName)
local CCProfilingEndTimingBlock ( local  timerName)
CC_DLL void
cocos2d::CCProfilingResetTimingBlock
( const char *  timerName)
var CCProfilingResetTimingBlock ( var  timerName)
local CCProfilingResetTimingBlock ( local  timerName)
int CC_DLL cocos2d::gettimeofday ( struct timeval ,
struct timezone  
)
var gettimeofday ( var  ,
var   
)
local gettimeofday ( local  ,
local   
)
void CC_DLL
cocos2d::ccGLBlendResetToCache
( void  )

Resets the blending mode back to the cached state in case you used glBlendFuncSeparate() or glBlendEquation().

If CC_ENABLE_GL_STATE_CACHE is disabled, it will just set the default blending mode using GL_FUNC_ADD.

Since
v2.0.0
var ccGLBlendResetToCache (   )

Resets the blending mode back to the cached state in case you used glBlendFuncSeparate() or glBlendEquation().

If CC_ENABLE_GL_STATE_CACHE is disabled, it will just set the default blending mode using GL_FUNC_ADD.

Since
v2.0.0
local ccGLBlendResetToCache (   )

Resets the blending mode back to the cached state in case you used glBlendFuncSeparate() or glBlendEquation().

If CC_ENABLE_GL_STATE_CACHE is disabled, it will just set the default blending mode using GL_FUNC_ADD.

Since
v2.0.0
void CC_DLL
cocos2d::ccSetProjectionMatrixDirty
( void  )

sets the projection matrix as dirty

Since
v2.0.0
var ccSetProjectionMatrixDirty (   )

sets the projection matrix as dirty

Since
v2.0.0
local ccSetProjectionMatrixDirty (   )

sets the projection matrix as dirty

Since
v2.0.0
void CC_DLL
cocos2d::ccGLBindTexture2D
( GLuint  textureId)

If the texture is not already bound to texture unit 0, it binds it.

If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glBindTexture() directly.

Since
v2.0.0
var ccGLBindTexture2D ( var  textureId)

If the texture is not already bound to texture unit 0, it binds it.

If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glBindTexture() directly.

Since
v2.0.0
local ccGLBindTexture2D ( local  textureId)

If the texture is not already bound to texture unit 0, it binds it.

If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glBindTexture() directly.

Since
v2.0.0
void CC_DLL
cocos2d::ccGLDeleteTexture
( GLuint  textureId)

It will delete a given texture.

If the texture was bound, it will invalidate the cached. If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glDeleteTextures() directly.

Since
v2.0.0
var ccGLDeleteTexture ( var  textureId)

It will delete a given texture.

If the texture was bound, it will invalidate the cached. If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glDeleteTextures() directly.

Since
v2.0.0
local ccGLDeleteTexture ( local  textureId)

It will delete a given texture.

If the texture was bound, it will invalidate the cached. If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glDeleteTextures() directly.

Since
v2.0.0
void CC_DLL
cocos2d::ccGLDeleteTextureN
( GLuint  textureUnit,
GLuint  textureId 
)

It will delete a given texture.

If the texture was bound, it will invalidate the cached for the given texture unit. If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glDeleteTextures() directly.

Since
v2.1.0
var ccGLDeleteTextureN ( var  textureUnit,
var  textureId 
)

It will delete a given texture.

If the texture was bound, it will invalidate the cached for the given texture unit. If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glDeleteTextures() directly.

Since
v2.1.0
local ccGLDeleteTextureN ( local  textureUnit,
local  textureId 
)

It will delete a given texture.

If the texture was bound, it will invalidate the cached for the given texture unit. If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glDeleteTextures() directly.

Since
v2.1.0
void CC_DLL cocos2d::ccGLBindVAO ( GLuint  vaoId)

If the vertex array is not already bound, it binds it.

If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glBindVertexArray() directly.

Since
v2.0.0
var ccGLBindVAO ( var  vaoId)

If the vertex array is not already bound, it binds it.

If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glBindVertexArray() directly.

Since
v2.0.0
local ccGLBindVAO ( local  vaoId)

If the vertex array is not already bound, it binds it.

If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glBindVertexArray() directly.

Since
v2.0.0
float CC_DLL cocos2d::ccpLength ( const CCPoint &  v)

Calculates distance between point an origin.

Returns
float
Since
v0.7.2
var ccpLength ( var  v)

Calculates distance between point an origin.

Returns
float
Since
v0.7.2
local ccpLength ( local  v)

Calculates distance between point an origin.

Returns
float
Since
v0.7.2
float CC_DLL cocos2d::ccpDistance ( const CCPoint &  v1,
const CCPoint &  v2 
)

Calculates the distance between two points.

Returns
float
Since
v0.7.2
var ccpDistance ( var  v1,
var  v2 
)

Calculates the distance between two points.

Returns
float
Since
v0.7.2
local ccpDistance ( local  v1,
local  v2 
)

Calculates the distance between two points.

Returns
float
Since
v0.7.2
CCPoint CC_DLL
cocos2d::ccpNormalize
( const CCPoint &  v)

Returns point multiplied to a length of 1.

Returns
CCPoint
Since
v0.7.2
var ccpNormalize ( var  v)

Returns point multiplied to a length of 1.

Returns
CCPoint
Since
v0.7.2
local ccpNormalize ( local  v)

Returns point multiplied to a length of 1.

Returns
CCPoint
Since
v0.7.2
float CC_DLL cocos2d::ccpToAngle ( const CCPoint &  v)

Converts a vector to radians.

Returns
float
Since
v0.7.2
var ccpToAngle ( var  v)

Converts a vector to radians.

Returns
float
Since
v0.7.2
local ccpToAngle ( local  v)

Converts a vector to radians.

Returns
float
Since
v0.7.2
bool CC_DLL cocos2d::ccpFuzzyEqual ( const CCPoint &  a,
const CCPoint &  b,
float  variance 
)
Returns
if points have fuzzy equality which means equal with some degree of variance.
Since
v0.99.1
var ccpFuzzyEqual ( var  a,
var  b,
var  variance 
)
Returns
if points have fuzzy equality which means equal with some degree of variance.
Since
v0.99.1
local ccpFuzzyEqual ( local  a,
local  b,
local  variance 
)
Returns
if points have fuzzy equality which means equal with some degree of variance.
Since
v0.99.1
CCPoint CC_DLL cocos2d::ccpCompMult ( const CCPoint &  a,
const CCPoint &  b 
)

Multiplies a and b components, a.x*b.x, a.y*b.y.

Returns
a component-wise multiplication
Since
v0.99.1
var ccpCompMult ( var  a,
var  b 
)

Multiplies a and b components, a.x*b.x, a.y*b.y.

Returns
a component-wise multiplication
Since
v0.99.1
local ccpCompMult ( local  a,
local  b 
)

Multiplies a and b components, a.x*b.x, a.y*b.y.

Returns
a component-wise multiplication
Since
v0.99.1
float CC_DLL
cocos2d::ccpAngleSigned
( const CCPoint &  a,
const CCPoint &  b 
)
Returns
the signed angle in radians between two vector directions
Since
v0.99.1
var ccpAngleSigned ( var  a,
var  b 
)
Returns
the signed angle in radians between two vector directions
Since
v0.99.1
local ccpAngleSigned ( local  a,
local  b 
)
Returns
the signed angle in radians between two vector directions
Since
v0.99.1
float CC_DLL cocos2d::ccpAngle ( const CCPoint &  a,
const CCPoint &  b 
)
Returns
the angle in radians between two vector directions
Since
v0.99.1
var ccpAngle ( var  a,
var  b 
)
Returns
the angle in radians between two vector directions
Since
v0.99.1
local ccpAngle ( local  a,
local  b 
)
Returns
the angle in radians between two vector directions
Since
v0.99.1
cocos2d::METHODDEF ( void  )
var METHODDEF (   )
local METHODDEF (   )
CCPoint CC_DLL
cocos2d::ccpRotateByAngle
( const CCPoint &  v,
const CCPoint &  pivot,
float  angle 
)

Rotates a point counter clockwise by the angle around a pivot.

Parameters
vis the point to rotate
pivotis the pivot, naturally
angleis the angle of rotation cw in radians
Returns
the rotated point
Since
v0.99.1
var ccpRotateByAngle ( var  v,
var  pivot,
var  angle 
)

Rotates a point counter clockwise by the angle around a pivot.

Parameters
vis the point to rotate
pivotis the pivot, naturally
angleis the angle of rotation cw in radians
Returns
the rotated point
Since
v0.99.1
local ccpRotateByAngle ( local  v,
local  pivot,
local  angle 
)

Rotates a point counter clockwise by the angle around a pivot.

Parameters
vis the point to rotate
pivotis the pivot, naturally
angleis the angle of rotation cw in radians
Returns
the rotated point
Since
v0.99.1
CC_DLL const char*
cocos2d::cocos2dVersion
( )
var cocos2dVersion ( )
local cocos2dVersion ( )
CCPoint CC_DLL
cocos2d::ccpIntersectPoint
( const CCPoint &  A,
const CCPoint &  B,
const CCPoint &  C,
const CCPoint &  D 
)
var ccpIntersectPoint ( var  A,
var  B,
var  C,
var  D 
)
local ccpIntersectPoint ( local  A,
local  B,
local  C,
local  D 
)

Variable Documentation

CC_DLL const CCAffineTransform
CCAffineTransformIdentity
var CCAffineTransformIdentity
local CCAffineTransformIdentity