cocos2d-x  2.2.6
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
cocos2d Namespace Reference

Namespaces

 
  ui
 

Classes

struct   cc_timeval
 
class   CCAccelAmplitude
 
 
class   CCAcceleration
  The device accelerometer reports values for each axis in units of g-force. More...
 
class   CCAccelerometer
  The CCAccelerometer class lets you register to receive acceleration-related data from the onboard hardware. More...
 
  The CCAccelerometerDelegate defines a single method for receiving acceleration-related data from the system. More...
 
class   CCAction
  Base class for CCAction objects. More...
 
class   CCActionCamera
  Base class for CCCamera actions. More...
 
class   CCActionEase
  Base class for Easing actions. More...
 
class   CCActionInstant
  Instant actions are immediate actions. More...
 
class   CCActionInterval
  An interval action is an action that takes place within a certain period of time. More...
 
class   CCActionManager
  CCActionManager is a singleton that manages all the actions. More...
 
class   CCActionTween
 
 
struct   CCAffineTransform
 
class   CCAnimate
  Animates a sprite given the name of an 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   CCAnimationFrame
  CCAnimationFrame A frame of the animation. More...
 
 
class   CCApplication
 
 
class   CCArray
 
class   CCAtlasNode
  CCAtlasNode is a subclass of CCNode that implements the CCRGBAProtocol and CCTextureProtocol protocol. 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   CCBlendProtocol
  //////// More...
 
class   CCBlink
  Blinks a CCNode object by modifying it's visible attribute. More...
 
  CCBMFontConfiguration has parsed configuration of the the .fnt file. More...
 
class   CCBool
 
class   CCCallFunc
  @ More...
 
class   CCCallFuncN
  @ More...
 
class   CCCallFuncND
  @

More...
 
class   CCCallFuncO
  @ More...
 
class   CCCamera
  A CCCamera is used in every CCNode. More...
 
  //// @ More...
 
  //// @ More...
 
class   CCCatmullRomBy
  //// @ More...
 
class   CCCatmullRomTo
  //// @ More...
 
class   CCClippingNode
  CCClippingNode is a subclass of CCNode. More...
 
class   CCComponent
 
 
class   CCConfiguration
  CCConfiguration contains some openGL variables. More...
 
class   CCCopying
 
class   CCDataVisitor
  Visitor that helps to perform action that depends on polymorphic object type. More...
 
 
class   CCDelayTime
  Delays the action a certain amount of seconds. More...
 
class   CCDevice
 
class   CCDictElement
  CCDictElement is used for traversing CCDictionary. More...
 
class   CCDictionary
  @ More...
 
class   CCDirector
  Class that creates and handle the main Window and manages how and when to execute the Scenes. More...
 
 
  DisplayLinkDirector is a Director that synchronizes timers with the refresh rate of the display. More...
 
class   CCDouble
 
class   CCDrawNode
  CCDrawNode Node that draws dots, segments and polygons. More...
 
class   CCEaseBackIn
  CCEaseBackIn action. More...
 
class   CCEaseBackInOut
 
class   CCEaseBackOut
  CCEaseBackOut action. More...
 
class   CCEaseBounce
  CCEaseBounce abstract class. More...
 
class   CCEaseBounceIn
  CCEaseBounceIn action. More...
 
 
class   CCEaseBounceOut
  EaseBounceOut action. More...
 
class   CCEaseElastic
  Ease Elastic abstract class. More...
 
class   CCEaseElasticIn
  Ease Elastic In action. More...
 
  Ease Elastic InOut action. More...
 
class   CCEaseElasticOut
  Ease Elastic Out action. More...
 
  CCEase Exponential In. More...
 
  Ease Exponential InOut. More...
 
  Ease Exponential Out. More...
 
class   CCEaseIn
  CCEaseIn action with a rate. More...
 
class   CCEaseInOut
  CCEaseInOut action with a rate. More...
 
class   CCEaseOut
  CCEaseOut action with a rate. More...
 
class   CCEaseRateAction
  Base class for Easing actions with rate parameters. More...
 
class   CCEaseSineIn
  Ease Sine In. More...
 
class   CCEaseSineInOut
  Ease Sine InOut. More...
 
class   CCEaseSineOut
  Ease Sine Out. More...
 
class   CCEGLView
 
 
class   CCEvent
 
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   CCFadeOutBLTiles
 
 
class   CCFadeOutTRTiles
  CCFadeOutTRTiles action Fades out the tiles in a Top-Right direction. More...
 
class   CCFadeOutUpTiles
 
class   CCFadeTo
  Fades an object that implements the CCRGBAProtocol protocol. More...
 
class   CCFileUtils
  Helper class to handle file operations. More...
 
  Helper class to handle file operations. More...
 
  Helper class to handle file operations. More...
 
  Helper class to handle file operations. More...
 
class   CCFileUtilsIOS
  Helper class to handle file operations. More...
 
class   CCFileUtilsLinux
  Helper class to handle file operations. More...
 
class   CCFileUtilsMac
  Helper class to handle file operations. More...
 
  Helper class to handle file operations. More...
 
class   CCFileUtilsNaCl
  Helper class to handle file operations. More...
 
class   CCFileUtilsTizen
  Helper class to handle file operations. More...
 
class   CCFileUtilsWin32
  Helper class to handle file operations. More...
 
class   CCFileUtilsWinRT
  Helper class to handle file operations. More...
 
  Base class actions that do have a finite time duration. More...
 
class   CCFlipX
  @ @ More...
 
class   CCFlipX3D
  CCFlipX3D action. More...
 
class   CCFlipY
  @ @ More...
 
class   CCFlipY3D
  CCFlipY3D action. More...
 
class   CCFloat
 
class   CCFollow
  CCFollow is an action that "follows" a node. More...
 
class   CCFreeTypeFont
 
class   CCGLProgram
  CCGLProgram Class that implements a glProgram. More...
 
class   CCGrabber
  FBO class that grabs the the contents of the screen. More...
 
class   CCGrid3D
  CCGrid3D is a 3D grid implementation. More...
 
class   CCGrid3DAction
  Base class for CCGrid3D actions. More...
 
class   CCGridAction
  Base class for Grid actions. More...
 
class   CCGridBase
  Base class for other. More...
 
class   CCHide
  Hide the node. More...
 
class   CCImage
 
class   CCIMEDelegate
  Input method editor delegate. More...
 
class   CCIMEDispatcher
  Input Method Edit Message Dispatcher. More...
 
 
class   CCInteger
 
class   CCJumpBy
  Moves a CCNode object simulating a parabolic jump movement by modifying it's position attribute. More...
 
class   CCJumpTiles3D
  CCJumpTiles3D action. More...
 
class   CCJumpTo
  Moves a CCNode object to a parabolic position simulating a jump movement by modifying it's position attribute. More...
 
class   CCKeypadDelegate
 
  Dispatch the keypad message from the phone. More...
 
class   CCKeypadHandler
  @ More...
 
class   CCLabelAtlas
  CCLabelAtlas is a subclass of CCAtlasNode. More...
 
class   CCLabelBMFont
  @ More...
 
class   CCLabelProtocol
 
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   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   CCLayerRGBA
  CCLayerRGBA is a subclass of CCLayer that implements the CCRGBAProtocol protocol using a solid color as the background. More...
 
class   CCLens3D
  CCLens3D action. More...
 
class   CCLiquid
  CCLiquid action. More...
 
class   CCLock
 
class   CCLuaBridge
 
class   CCLuaEngine
  Lua support for cocos2d-x. More...
 
class   CCLuaObjcBridge
 
class   CCLuaStack
  Lua support for cocos2d-x. More...
 
class   CCLuaValue
  Lua support for cocos2d-x. More...
 
union   CCLuaValueField
 
class   CCMenu
  A CCMenu. More...
 
class   CCMenuItem
  CCMenuItem base class. More...
 
  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   CCMenuItemImage
  CCMenuItemImage accepts images as items. More...
 
class   CCMenuItemLabel
  An abstract class for "label" CCMenuItemLabel items Any CCNode that supports the CCLabelProtocol protocol can be added. More...
 
class   CCMenuItemSprite
  CCMenuItemSprite accepts CCNode<CCRGBAProtocol> objects 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   CCMotionStreak
  MotionStreak. 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   CCNode
  CCNode is the main element. More...
 
class   CCNodeRGBA
  CCNodeRGBA is a subclass of CCNode that implements the CCRGBAProtocol protocol. More...
 
 
 
class   CCObject
 
class   CCOrbitCamera
  CCOrbitCamera action Orbits the camera around the center of the screen using spherical coordinates. More...
 
class   CCPageTurn3D
  This action simulates a page turn from the bottom right hand corner of the screen. More...
 
class   CCParallaxNode
  CCParallaxNode: A node that simulates a parallax scroller. More...
 
  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...
 
  An explosion particle system. More...
 
class   CCParticleFire
  A fire particle system. More...
 
  A fireworks particle system. More...
 
class   CCParticleFlower
  A flower particle system. More...
 
class   CCParticleGalaxy
  A galaxy particle system. More...
 
class   CCParticleMeteor
  A meteor particle system. More...
 
class   CCParticleRain
  A rain particle system. More...
 
class   CCParticleSmoke
  An smoke particle system. More...
 
class   CCParticleSnow
  An snow particle system. More...
 
class   CCParticleSpiral
  An spiral particle system. More...
 
class   CCParticleSun
  A sun particle system. More...
 
class   CCParticleSystem
  Particle System base class. More...
 
 
class   CCPlace
  @ More...
 
class   CCPoint
 
class   CCPointArray
  An Array that contain control points. More...
 
class   CCPoolManager
 
 
class   CCPrettyPrinter
 
class   CCProfiler
  CCProfiler cocos2d builtin profiler. More...
 
class   CCProfilingTimer
 
class   CCProgressFromTo
  Progress from a percentage to another percentage. More...
 
class   CCProgressTimer
  CCProgressTimer is a subclass of CCNode. More...
 
class   CCProgressTo
  Progress to percentage. More...
 
struct   CCPVRMipmap
  Structure which can tell where mipmap begins and how long is it. More...
 
class   CCRect
 
class   CCRemoveSelf
  Remove the node. More...
 
class   CCRenderTexture
  CCRenderTexture is a generic rendering target. More...
 
class   CCRepeat
  Repeats an action a number of times. More...
 
class   CCRepeatForever
  Repeats an action for ever. More...
 
class   CCReuseGrid
  CCReuseGrid action. More...
 
class   CCReverseTime
  Executes an action in reverse order, from time=duration to time=0. More...
 
class   CCRGBAProtocol
  RGBA protocol that affects CCNode's color and opacity. More...
 
class   CCRipple3D
  CCRipple3D action. More...
 
class   CCRotateBy
  Rotates a CCNode object clockwise a number of degrees by modifying it's rotation attribute. More...
 
class   CCRotateTo
  Rotates a CCNode object to a certain angle by modifying it's rotation attribute. More...
 
class   CCSAXDelegator
 
class   CCSAXParser
 
class   CCScaleBy
  Scales a CCNode object a zoom factor by modifying it's scale attribute. More...
 
class   CCScaleTo
  Scales a CCNode object to a zoom factor by modifying it's scale attribute. More...
 
class   CCScene
  CCScene is a subclass of CCNode that is used only as an abstract concept. More...
 
class   CCScheduler
  Scheduler is responsible for triggering the scheduled callbacks. More...
 
  @ @ More...
 
  @ More...
 
 
 
class   CCSequence
  Runs actions sequentially, one after another. More...
 
class   CCSet
 
class   CCShaderCache
  CCShaderCache Singleton that stores manages GL shaders. More...
 
class   CCShaky3D
  CCShaky3D action. More...
 
class   CCShakyTiles3D
  CCShakyTiles3D action. More...
 
 
class   CCShow
  Show the node. More...
 
class   CCShuffleTiles
  CCShuffleTiles action Shuffle the tiles in random order. More...
 
class   CCSize
 
class   CCSkewBy
  Skews a CCNode object by skewX and skewY degrees. More...
 
class   CCSkewTo
  Skews a CCNode object to given angles by modifying it's skewX and skewY attributes. More...
 
class   CCSpawn
  Spawn a new action immediately. More...
 
class   CCSpeed
  Changes the speed of an action, making it take longer (speed>1) or less (speed<1) time. More...
 
class   CCSplitCols
  CCSplitCols action. More...
 
class   CCSplitRows
  CCSplitRows action. More...
 
class   CCSprite
 
  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
 
  Singleton that handles the loading of the sprite frames. More...
 
  @ More...
 
 
class   CCStopGrid
  CCStopGrid action. More...
 
class   CCString
 
struct   CCStringCompare
 
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...
 
  @ More...
 
 
 
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
 
 
class   CCTexturePVR
 
class   CCThread
 
class   CCTiledGrid3D
 
  Base class for CCTiledGrid3D actions. More...
 
class   CCTileMapAtlas
  CCTileMapAtlas is a subclass of CCAtlasNode. More...
 
class   CCTime
 
class   CCTimer
  Light-weight timer. More...
 
class   CCTintBy
  Tints a CCNode that implements the CCNodeRGB protocol from current tint to a custom one. More...
 
class   CCTintTo
  Tints a CCNode that implements the CCNodeRGB protocol from current tint to a custom one. More...
 
class   CCTMXLayer
  CCTMXLayer represents the TMX layer. More...
 
class   CCTMXLayerInfo
  CCTMXLayerInfo contains the information about the layers like: More...
 
class   CCTMXMapInfo
  CCTMXMapInfo contains the information about the map like: More...
 
class   CCTMXObjectGroup
  CCTMXObjectGroup represents the TMX object group. More...
 
class   CCTMXTiledMap
  CCTMXTiledMap knows how to parse and render a TMX map. More...
 
class   CCTMXTilesetInfo
  CCTMXTilesetInfo contains the information about the tilesets like: More...
 
  Toggles the visibility of a node. More...
 
class   CCTouch
 
class   CCTouchDelegate
 
  @ More...
 
class   CCTouchHandler
  CCTouchHandler Object than contains the delegate and priority of the event handler. More...
 
 
 
  CCTransitionCrossFade: Cross fades two scenes using the CCRenderTexture object. More...
 
  CCTransitionEaseScene can ease the actions of the scene protocol. More...
 
class   CCTransitionFade
  CCTransitionFade: Fade out the outgoing scene and then fade in the incoming scene. More...
 
  CCTransitionFadeBL: Fade the tiles of the outgoing scene from the top-right corner to the bottom-left corner. More...
 
  CCTransitionFadeDown: Fade the tiles of the outgoing scene from the top to the bottom. More...
 
  CCTransitionFadeTR: Fade the tiles of the outgoing scene from the left-bottom corner the to top-right corner. More...
 
  CCTransitionFadeUp: Fade the tiles of the outgoing scene from the bottom to the top. More...
 
  CCTransitionFlipAngular: Flips the screen half horizontally and half vertically. More...
 
  CCTransitionFlipX: Flips the screen horizontally. More...
 
  CCTransitionFlipY: Flips the screen vertically. More...
 
  CCTransitionJumpZoom: Zoom out and jump the outgoing scene, and then jump and zoom in the incoming. More...
 
  CCTransitionMoveInB: Move in from to the bottom the incoming scene. More...
 
  CCTransitionMoveInL: Move in from to the left the incoming scene. More...
 
  CCTransitionMoveInR: Move in from to the right the incoming scene. More...
 
  CCTransitionMoveInT: Move in from to the top the incoming scene. More...
 
  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...
 
 
 
 
 
  CCTransitionRadialCCW transition. More...
 
  CCTransitionRadialCW transition. More...
 
 
  CCTransitionRotoZoom: Rotate and zoom out the outgoing scene, and then rotate and zoom in the incoming. More...
 
  Base class for CCTransition scenes. More...
 
  A CCTransition that supports orientation like. More...
 
  Shrink the outgoing scene while grow the incoming scene. More...
 
  CCTransitionSlideInB: Slide in the incoming scene from the bottom border. More...
 
  CCTransitionSlideInL: Slide in the incoming scene from the left border. More...
 
  CCTransitionSlideInR: Slide in the incoming scene from the right border. More...
 
  CCTransitionSlideInT: Slide in the incoming scene from the top border. More...
 
  CCTransitionSplitCols: The odd columns goes upwards while the even columns goes downwards. More...
 
  CCTransitionSplitRows: The odd rows goes to the left while the even rows goes to the right. More...
 
  CCTransitionTurnOffTiles: Turn off the tiles of the outgoing scene in random order. More...
 
  CCTransitionZoomFlipAngular: Flips the screen half horizontally and half vertically doing a little zooming out/in. More...
 
  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...
 
  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   CCTurnOffTiles
  CCTurnOffTiles action. More...
 
class   CCTwirl
  CCTwirl action. More...
 
class   CCUserDefault
  CCUserDefault acts as a tiny database. More...
 
class   CCWaves
  CCWaves action. More...
 
class   CCWaves3D
  CCWaves3D action. More...
 
class   CCWavesTiles3D
  CCWavesTiles3D action. More...
 
class   CCZone
 
class   EGLTouchDelegate
 
class   JniHelper
 
struct   my_error_mgr
 
struct   pthread_attr_t
 
class   sealed
 
struct   tImageSource
 
struct   timezone
 
class   TypeInfo
 

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 std::shared_ptr
< std::thread >  pthread_t
typedef std::mutex  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,
CCLuaValueCCLuaValueDict
typedef
CCLuaValueDict::const_iterator  CCLuaValueDictIterator
typedef std::list< CCLuaValueCCLuaValueArray
typedef
CCLuaValueArray::const_iterator  CCLuaValueArrayIterator

Enumerations

enum   { kCCActionTagInvalid = -1 }
 
enum   { kCCNodeTagInvalid = -1 }
 
 
 
  Possible OpenGL projections used by director. More...
 
  Vertical text alignment type. More...
 
  Horizontal text alignment type. More...
 
 
enum   { kCCLabelAutomaticWidth = -1 }
 
 
  Orientation Type used by some transitions. More...
 
 
enum   { kCCMenuHandlerPriority = -128 }
 
  Types of progress. More...
 
 
enum   {
  kCCParticleDurationInfinity = -1, kCCParticleStartSizeEqualToEndSize = -1, kCCParticleStartRadiusEqualToEndRadius = -1, kParticleStartSizeEqualToEndSize = kCCParticleStartSizeEqualToEndSize,
  kParticleDurationInfinity = kCCParticleDurationInfinity
}
 
 
  possible types of particle positions More...
 
enum   { kPositionTypeFree = kCCPositionTypeFree, kPositionTypeGrouped = kCCPositionTypeGrouped }
 
 
  Enum the language type supported now. More...
 
 
 
 
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...
 
  Possible texture pixel formats. More...
 
enum   { CC_PVRMIPMAP_MAX = 16 }
  Determine how many mipmaps can we have. More...
 
  Possible orientations of the TMX map. More...
 
enum   { TMXLayerAttribNone = 1 << 0, TMXLayerAttribBase64 = 1 << 1, TMXLayerAttribGzip = 1 << 2, TMXLayerAttribZlib = 1 << 3 }
 
 
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)
}
 
 
 
 

Functions

CC_DLL CCPoint  (CCPoint &p0, CCPoint &p1, CCPoint &p2, CCPoint &p3, float tension, float t)
var  ( var p0, var p1, var p2, var p3, var tension, var t)
local  ( local p0, local p1, local p2, local p3, local tension, local 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)
var  ( var point, var t)
local  ( local point, local t)
CC_DLL CCSize  (const CCSize &size, const CCAffineTransform &t)
var  ( var size, var t)
local  ( local size, local t)
var  ()
local  ()
CC_DLL CCRect  (const CCRect &rect, const CCAffineTransform &anAffineTransform)
var  ( var rect, var anAffineTransform)
local  ( local rect, local anAffineTransform)
CC_DLL CCAffineTransform  (const CCAffineTransform &t, float tx, float ty)
var  ( var t, var tx, var ty)
local  ( local t, local tx, local ty)
CC_DLL CCAffineTransform  (const CCAffineTransform &aTransform, float anAngle)
CC_DLL CCAffineTransform  (const CCAffineTransform &t, float sx, float sy)
var  ( var t, var sx, var sy)
local  ( local t, local sx, local sy)
var  ( var t1, var t2)
local  ( local t1, local t2)
CC_DLL bool  (const CCAffineTransform &t1, const CCAffineTransform &t2)
var  ( var t1, var t2)
local  ( local t1, local t2)
var  ( var t)
local  ( local 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...
 
var  ( var pszContent)
  Returns a Core Graphics point structure corresponding to the data in a given string. More...
 
local  ( local 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...
 
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)
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...
 
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...
 
void CC_DLL  (GLfloat pointSize)
  set the point size in points. More...
 
CC_DLL const char *  ()
var  ()
local  ()
CC_DLL CCBMFontConfiguration *  (const char *file)
var  ( var file)
local  ( local file)
CC_DLL void  (void)
  Purges the FNT config cache. More...
 
void CC_DLL  (const char *pszFormat,...)
  Output Debug message. More...
 
var  ( var pszFormat)
  Output Debug message. More...
 
local  ( local pszFormat)
  Output Debug message. More...
 
void CC_DLL  (const char *pszFormat)
  lua can not deal with ... More...
 
var  ( var pszFormat)
  lua can not deal with ... More...
 
local  ( local 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 *)
var  ()
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)
int  (pthread_attr_t *attr)
template<class T >
int  (pthread_t *thread, const pthread_attr_t *attr, T start, void *arg)
int  (pthread_t thread)
int  (pthread_t thread, void **ret)
void  (void *value_ptr)
void  (DWORD dwMilliseconds)
std::wstring CC_DLL  (const char *pszUtf8Str, unsigned len=-1)
std::string CC_DLL  (const wchar_t *pwszStr)
std::string  (Platform::String^s)
float  (float dips)
float  (float v)
Concurrency::task
< Platform::Array< byte >^>  (Platform::String^path)
void CC_DLL  (void)
  Invalidates the GL state cache. More...
 
var  ()
  Invalidates the GL state cache. More...
 
local  ()
  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...
 
var  ( var program)
  Uses the GL program in case program is different than the current one. More...
 
local  ( local 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...
 
var  ( var textureUnit, var textureId)
  It will delete a given texture. More...
 
local  ( local textureUnit, local 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...
 
var  ( var in, var inLength, var out)
  Decodes a 64base encoded memory. More...
 
local  ( local in, local inLength, local out)
  Decodes a 64base encoded memory. More...
 
float CC_DLL  (const CCPoint &v)
  Calculates distance between point an origin. More...
 
var  ( var v)
  Calculates distance between point an origin. More...
 
local  ( local v)
  Calculates distance between point an origin. More...
 
float CC_DLL  (const CCPoint &v1, const CCPoint &v2)
  Calculates the distance between two points. More...
 
var  ( var v1, var v2)
  Calculates the distance between two points. More...
 
local  ( local v1, local 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...
 
var  ( var a)
  Converts radians to a normalized vector. More...
 
local  ( local a)
  Converts radians to a normalized vector. More...
 
float CC_DLL  (const CCPoint &v)
  Converts a vector to radians. More...
 
var  ( var v)
  Converts a vector to radians. More...
 
local  ( local 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...
 
var  ( var p, var from, var to)
  Clamp a point between from and to. More...
 
local  ( local p, local from, local to)
  Clamp a point between from and to. More...
 
CCPoint CC_DLL  (const CCSize &s)
  Quickly convert CCSize to a CCPoint. More...
 
var  ( var s)
  Quickly convert CCSize to a CCPoint. More...
 
local  ( local 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...
 
var  ( var p)
  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...
 
local  ( local p)
  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)
var  ( var a, var b, var 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)
var  ( var a, var b)
local  ( local a, local 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)
var  ( var timerName)
local  ( local timerName)
CC_DLL void  (const char *timerName)
var  ( var timerName)
local  ( local timerName)
CC_DLL void  (const char *timerName)
local  ( local timerName)
CC_DLL void  (std::vector< unsigned short > *str)
  Trims the space characters at the end of UTF8 string. More...
 
local  ( local str)
  Trims the space characters at the end of UTF8 string. More...
 
CC_DLL bool  (unsigned short ch)
  Whether the character is a whitespace character. More...
 
var  ( var ch)
  Whether the character is a whitespace character. More...
 
local  ( local ch)
  Whether the character is a whitespace character. More...
 
CC_DLL bool  (unsigned short ch)
  Whether the character is a Chinese/Japanese/Korean character. More...
 
CC_DLL int  (const unsigned short *str)
  Returns the character count in UTF16 string. More...
 
var  ( var str)
  Returns the character count in UTF16 string. More...
 
local  ( local str)
  Returns the character count in UTF16 string. More...
 
CC_DLL long  (const char *p)
  Returns the length of the string in characters. More...
 
var  ( var p)
  Returns the length of the string in characters. More...
 
local  ( local p)
  Returns the length of the string in characters. More...
 
CC_DLL unsigned int  (const std::vector< unsigned short > &str, unsigned short c)
  Find the last character that is not equal to the character given. More...
 
var  ( var str, var c)
  Find the last character that is not equal to the character given. More...
 
local  ( local str, local c)
  Find the last character that is not equal to the character given. More...
 
CC_DLL std::vector< unsigned
short >  (const unsigned short *str)
  Gets UTF16 character vector from UTF16 string. More...
 
CC_DLL unsigned short *  (const char *utf8, int *outUTF16CharacterCount=NULL)
  Creates an utf8 string from a c string. More...
 
var  ( var utf8, var NULL)
  Creates an utf8 string from a c string. More...
 
local  ( local utf8, local NULL)
  Creates an utf8 string from a c string. More...
 
CC_DLL char *  (const unsigned short *utf16, int *outUTF8CharacterCount=NULL)
  Converts a string from UTF-16 to UTF-8. 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)
var  ( var t, var m)
local  ( local t, local m)
void  (const GLfloat *m, CCAffineTransform *t)
var  ( var m, var t)
local  ( local m, local t)

Variables

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 ))

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 std::mutex pthread_mutex_t
typedef std::shared_ptr
<std::thread> 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 void
cocos2d::cc_utf8_trim_ws ( std::vector< unsigned short > *  str )

Trims the space characters at the end of UTF8 string.

var cc_utf8_trim_ws ( var  str )

Trims the space characters at the end of UTF8 string.

local cc_utf8_trim_ws ( local  str )

Trims the space characters at the end of UTF8 string.

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 
)
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 
)
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 )
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
var ccNextPOT ( var  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
local ccNextPOT ( local  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
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
CC_DLL bool
cocos2d::isspace_unicode ( unsigned short  ch )

Whether the character is a whitespace character.

Parameters
ch the unicode character
Returns
whether the character is a white space character.
See also
http://en.wikipedia.org/wiki/Whitespace_character#Unicode
var isspace_unicode ( var  ch )

Whether the character is a whitespace character.

Parameters
ch the unicode character
Returns
whether the character is a white space character.
See also
http://en.wikipedia.org/wiki/Whitespace_character#Unicode
local isspace_unicode ( local  ch )

Whether the character is a whitespace character.

Parameters
ch the unicode character
Returns
whether the character is a white space character.
See also
http://en.wikipedia.org/wiki/Whitespace_character#Unicode
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 CCAffineTransform
cocos2d::CCAffineTransformRotate ( const CCAffineTransform &  aTransform,
float  anAngle 
)
var CCAffineTransformRotate ( var  aTransform,
var  anAngle 
)
local CCAffineTransformRotate ( local  aTransform,
local  anAngle 
)
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 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 CCAffineTransform
cocos2d::CCAffineTransformConcat ( const CCAffineTransform &  t1,
const CCAffineTransform &  t2 
)
var CCAffineTransformConcat ( var  t1,
var  t2 
)
local CCAffineTransformConcat ( local  t1,
local  t2 
)
int cocos2d::pthread_mutex_lock ( pthread_mutex_t *  m )
var pthread_mutex_lock ( var  m )
local pthread_mutex_lock ( local  m )
CC_DLL bool
cocos2d::CCAffineTransformEqualToTransform ( const CCAffineTransform &  t1,
const CCAffineTransform &  t2 
)
var
CCAffineTransformEqualToTransform ( var  t1,
var  t2 
)
local
CCAffineTransformEqualToTransform ( local  t1,
local  t2 
)
int cocos2d::pthread_mutex_unlock ( pthread_mutex_t *  m )
var pthread_mutex_unlock ( var  m )
local pthread_mutex_unlock ( local  m )
CC_DLL CCAffineTransform
cocos2d::CCAffineTransformInvert ( const CCAffineTransform &  t )
var CCAffineTransformInvert ( var  t )
local CCAffineTransformInvert ( local  t )
void cocos2d::pthread_mutex_destroy ( pthread_mutex_t *  m )
var pthread_mutex_destroy ( var  m )
local pthread_mutex_destroy ( local  m )
CC_DLL bool cocos2d::iscjk_unicode ( unsigned short  ch )

Whether the character is a Chinese/Japanese/Korean character.

Parameters
ch the unicode character
Returns
whether the character is a Chinese character.
See also
http://www.searchtb.com/2012/04/chinese_encode.html
http://tieba.baidu.com/p/748765987
var iscjk_unicode ( var  ch )

Whether the character is a Chinese/Japanese/Korean character.

Parameters
ch the unicode character
Returns
whether the character is a Chinese character.
See also
http://www.searchtb.com/2012/04/chinese_encode.html
http://tieba.baidu.com/p/748765987
local iscjk_unicode ( local  ch )

Whether the character is a Chinese/Japanese/Korean character.

Parameters
ch the unicode character
Returns
whether the character is a Chinese character.
See also
http://www.searchtb.com/2012/04/chinese_encode.html
http://tieba.baidu.com/p/748765987
int cocos2d::pthread_attr_init ( pthread_attr_t *  attr )
var pthread_attr_init ( var  attr )
local pthread_attr_init ( local  attr )
CCPoint CC_DLL
cocos2d::CCPointFromString ( const char *  pszContent )

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

Parameters
pszContent A 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.
var CCPointFromString ( var  pszContent )

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

Parameters
pszContent A 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.
local CCPointFromString ( local  pszContent )

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

Parameters
pszContent A 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.
int cocos2d::pthread_create ( pthread_t *  thread,
const pthread_attr_t *  attr,
start,
void *  arg 
)
var pthread_create ( var  thread,
var  attr,
var  start,
var  arg 
)
local pthread_create ( local  thread,
local  attr,
local  start,
local  arg 
)
CC_DLL int cocos2d::cc_wcslen ( const unsigned short *  str )

Returns the character count in UTF16 string.

Parameters
str pointer to the start of a UTF-16 encoded string. It must be an NULL terminal UTF8 string.
var cc_wcslen ( var  str )

Returns the character count in UTF16 string.

Parameters
str pointer to the start of a UTF-16 encoded string. It must be an NULL terminal UTF8 string.
local cc_wcslen ( local  str )

Returns the character count in UTF16 string.

Parameters
str pointer to the start of a UTF-16 encoded string. It must be an NULL terminal UTF8 string.
int cocos2d::pthread_detach ( pthread_t  thread )
var pthread_detach ( var  thread )
local pthread_detach ( local  thread )
int cocos2d::pthread_join ( pthread_t  thread,
void **  ret 
)
var pthread_join ( var  thread,
var  ret 
)
local pthread_join ( local  thread,
local  ret 
)
CCSize CC_DLL
cocos2d::CCSizeFromString ( const char *  pszContent )

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

Parameters
pszContent A 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 cocos2d::pthread_exit ( void *  value_ptr )
var pthread_exit ( var  value_ptr )
local pthread_exit ( local  value_ptr )
void cocos2d::Sleep ( DWORD  dwMilliseconds )
var Sleep ( var  dwMilliseconds )
local Sleep ( local  dwMilliseconds )
CC_DLL long cocos2d::cc_utf8_strlen ( const char *  p )

Returns the length of the string in characters.

Parameters
p pointer to the start of a UTF-8 encoded string. It must be an NULL terminal UTF8 string.
Returns
the length of the string in characters
var cc_utf8_strlen ( var  p )

Returns the length of the string in characters.

Parameters
p pointer to the start of a UTF-8 encoded string. It must be an NULL terminal UTF8 string.
Returns
the length of the string in characters
local cc_utf8_strlen ( local  p )

Returns the length of the string in characters.

Parameters
p pointer to the start of a UTF-8 encoded string. It must be an NULL terminal UTF8 string.
Returns
the length of the string in characters
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.

CC_DLL unsigned int
cocos2d::cc_utf8_find_last_not_char ( const std::vector< unsigned short > &  str,
unsigned short  c 
)

Find the last character that is not equal to the character given.

Parameters
str the string to be searched.
c the character to be searched for.
Returns
the index of the last character that is not c.
var cc_utf8_find_last_not_char ( var  str,
var  c 
)

Find the last character that is not equal to the character given.

Parameters
str the string to be searched.
c the character to be searched for.
Returns
the index of the last character that is not c.
local cc_utf8_find_last_not_char ( local  str,
local  c 
)

Find the last character that is not equal to the character given.

Parameters
str the string to be searched.
c the character to be searched for.
Returns
the index of the last character that is not c.
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 std::vector<unsigned
short>
cocos2d::cc_utf16_vec_from_utf16_str ( const unsigned short *  str )

Gets UTF16 character vector from UTF16 string.

var cc_utf16_vec_from_utf16_str ( var  str )

Gets UTF16 character vector from UTF16 string.

local cc_utf16_vec_from_utf16_str ( local  str )

Gets UTF16 character vector from UTF16 string.

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 )
CC_DLL unsigned short*
cocos2d::cc_utf8_to_utf16 ( const char *  utf8,
int *  outUTF16CharacterCount = NULL  
)

Creates an utf8 string from a c string.

The result will be null terminated.

Parameters
utf8 pointer to the start of a C string. It must be an NULL terminal UTF8 string.
outUTF16CharacterCount The character count in the return UTF16 string.
Returns
the newly created utf16 string, it must be released with delete[], If an error occurs, NULL will be returned.
var cc_utf8_to_utf16 ( var  utf8,
var  outUTF16CharacterCount = NULL  
)

Creates an utf8 string from a c string.

The result will be null terminated.

Parameters
utf8 pointer to the start of a C string. It must be an NULL terminal UTF8 string.
outUTF16CharacterCount The character count in the return UTF16 string.
Returns
the newly created utf16 string, it must be released with delete[], If an error occurs, NULL will be returned.
local cc_utf8_to_utf16 ( local  utf8,
local  outUTF16CharacterCount = NULL  
)

Creates an utf8 string from a c string.

The result will be null terminated.

Parameters
utf8 pointer to the start of a C string. It must be an NULL terminal UTF8 string.
outUTF16CharacterCount The character count in the return UTF16 string.
Returns
the newly created utf16 string, it must be released with delete[], If an error occurs, NULL will be returned.
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
int CC_DLL cocos2d::gettimeofday ( struct timeval *  ,
struct timezone *   
)
var gettimeofday ( var  ,
var   
)
local gettimeofday ( local  ,
local   
)
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
CC_DLL char*
cocos2d::cc_utf16_to_utf8 ( const unsigned short *  utf16,
int *  outUTF8CharacterCount = NULL  
)

Converts a string from UTF-16 to UTF-8.

The result will be null terminated.

Parameters
utf16 an UTF-16 encoded string, It must be an NULL terminal UTF16 string.
outUTF8CharacterCount The character count in the return UTF8 string.
Returns
a pointer to a newly allocated UTF-8 string. This value must be released with delete[]. If an error occurs, NULL will be returned.
var cc_utf16_to_utf8 ( var  utf16,
var  outUTF8CharacterCount = NULL  
)

Converts a string from UTF-16 to UTF-8.

The result will be null terminated.

Parameters
utf16 an UTF-16 encoded string, It must be an NULL terminal UTF16 string.
outUTF8CharacterCount The character count in the return UTF8 string.
Returns
a pointer to a newly allocated UTF-8 string. This value must be released with delete[]. If an error occurs, NULL will be returned.
local cc_utf16_to_utf8 ( local  utf16,
local  outUTF8CharacterCount = NULL  
)

Converts a string from UTF-16 to UTF-8.

The result will be null terminated.

Parameters
utf16 an UTF-16 encoded string, It must be an NULL terminal UTF16 string.
outUTF8CharacterCount The character count in the return UTF8 string.
Returns
a pointer to a newly allocated UTF-8 string. This value must be released with delete[]. If an error occurs, NULL will be returned.
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
v is the point to rotate
pivot is the pivot, naturally
angle is 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
v is the point to rotate
pivot is the pivot, naturally
angle is 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
v is the point to rotate
pivot is the pivot, naturally
angle is 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

AltStyle によって変換されたページ (->オリジナル) /