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

Add deprecated global functions and variables here. More...

Namespaces

 DrawPrimitives
 
 experimental
 
 extension
 
 GL
 
 network
 
 StringUtils
 
 tweenfunc
 
 ui
 
 utils
 

Classes

class  __Array
 
class  __Bool
 
class  __CCCallFuncND
 Calls a 'callback' with the node as the first argument and the 2nd argument is data ND means: Node and Data. Data is void *, so it could be anything. More...
 
class  __CCCallFuncO
 Calls a 'callback' with an object as the first argument. O means Object. More...
 
class  __Dictionary
 Dictionary is a class like NSDictionary in Obj-C . More...
 
class  __Double
 
class  __Float
 
class  __Integer
 
class  __LayerRGBA
 LayerRGBA is a subclass of Layer that implements the RGBAProtocol protocol using a solid color as the background. More...
 
class  __NodeRGBA
 NodeRGBA is a subclass of Node that implements the RGBAProtocol protocol. More...
 
class  __NotificationCenter
 
class  __RGBAProtocol
 RGBA protocol that affects Node's color and opacity. More...
 
class  __Set
 
class  __String
 
class  AccelAmplitude
 AccelAmplitude action. More...
 
class  AccelDeccelAmplitude
 AccelDeccelAmplitude action. More...
 
class  Acceleration
 The device accelerometer reports values for each axis in units of g-force. More...
 
class  AccelerometerEvent
 
class  Action
 Base class for Action objects. More...
 
class  ActionCamera
 Base class for Camera actions. More...
 
class  ActionEase
 Base class for Easing actions. More...
 
class  ActionInstant
 Instant actions are immediate actions. More...
 
class  ActionInterval
 An interval action is an action that takes place within a certain period of time. More...
 
class  ActionManager
 ActionManager is a singleton that manages all the actions. More...
 
class  ActionTween
 ActionTween. More...
 
class  ActionTweenDelegate
 
struct  AffineTransform
 
class  Animate
 Animates a sprite given the name of an Animation. More...
 
class  Animate3D
 Animate3D. More...
 
class  Animation
 A Animation object is used to perform animations on the Sprite objects. More...
 
class  Animation3D
 static animation data, shared More...
 
class  Animation3DCache
 
struct  Animation3DData
 
class  AnimationCache
 Singleton that manages the Animations. More...
 
class  AnimationCurve
 curve of bone's position, rotation or scale More...
 
class  AnimationFrame
 AnimationFrame A frame of the animation. More...
 
struct  AnimationFrameData
 
class  Application
 
class  ApplicationProtocol
 
class  AtlasNode
 AtlasNode is a subclass of Node that implements the RGBAProtocol and TextureProtocol protocol. More...
 
class  AutoreleasePool
 
class  BackButtonEvent
 
class  BatchCommand
 
class  BezierBy
 An action that moves the target with a cubic Bezier curve by a certain distance. More...
 
class  BezierTo
 An action that moves the target with a cubic Bezier curve to a destination point. More...
 
struct  BlendFunc
 Blend Function used for textures. More...
 
class  BlendProtocol
 Specify the blending function according glBlendFunc Please refer to glBlendFunc in OpenGL ES Manual http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendFunc.xml for more details. More...
 
class  Blink
 Blinks a Node object by modifying it's visible attribute. More...
 
class  Bone
 Defines a basic hierachial structure of transformation spaces. More...
 
class  Bundle3D
 
class  CallFunc
 Calls a 'callback'. More...
 
class  CallFuncN
 Calls a 'callback' with the node as the first argument N means Node. More...
 
class  CardinalSplineBy
 Cardinal Spline path. More...
 
class  CardinalSplineTo
 Cardinal Spline path. More...
 
class  CatmullRomBy
 An action that moves the target with a CatmullRom curve by a certain distance. More...
 
class  CatmullRomTo
 An action that moves the target with a CatmullRom curve to a destination point. More...
 
class  CCFileUtilsWinRT
 Helper class to handle file operations. More...
 
class  CCFreeTypeFont
 
class  CCPrecompiledShaders
 
struct  CCZHeader
 
class  ClippingNode
 ClippingNode is a subclass of Node. More...
 
class  Clonable
 Interface that defines how to clone an Ref. More...
 
struct  Color3B
 RGB color composed of bytes 3 bytes. More...
 
struct  Color4B
 RGBA color composed of 4 bytes. More...
 
struct  Color4F
 RGBA color composed of 4 floats. More...
 
class  Component
 
class  ComponentContainer
 
class  Configuration
 Configuration contains some openGL variables. More...
 
class  CustomCommand
 
class  Data
 
class  DataVisitor
 Visitor that helps to perform action that depends on polymorphic object type. More...
 
class  DeccelAmplitude
 DeccelAmplitude action. More...
 
class  DelayTime
 Delays the action a certain amount of seconds. More...
 
class  Device
 
class  DictElement
 DictElement is used for traversing Dictionary. More...
 
class  Director
 
class  DirectorDelegate
 OpenGL projection protocol. More...
 
class  DisplayLinkDirector
 DisplayLinkDirector is a Director that synchronizes timers with the refresh rate of the display. More...
 
class  DrawNode
 DrawNode Node that draws dots, segments and polygons. More...
 
class  EaseBackIn
 EaseBackIn action. More...
 
class  EaseBackInOut
 EaseBackInOut action. More...
 
class  EaseBackOut
 EaseBackOut action. More...
 
class  EaseBezierAction
 Ease Bezier. More...
 
class  EaseBounce
 EaseBounce abstract class. More...
 
class  EaseBounceIn
 EaseBounceIn action. More...
 
class  EaseBounceInOut
 EaseBounceInOut action. More...
 
class  EaseBounceOut
 EaseBounceOut action. More...
 
class  EaseCircleActionIn
 Ease Circle In. More...
 
class  EaseCircleActionInOut
 Ease Circle InOut. More...
 
class  EaseCircleActionOut
 Ease Circle Out. More...
 
class  EaseCubicActionIn
 Ease Cubic In. More...
 
class  EaseCubicActionInOut
 Ease Cubic InOut. More...
 
class  EaseCubicActionOut
 Ease Cubic Out. More...
 
class  EaseElastic
 Ease Elastic abstract class. More...
 
class  EaseElasticIn
 Ease Elastic In action. More...
 
class  EaseElasticInOut
 Ease Elastic InOut action. More...
 
class  EaseElasticOut
 Ease Elastic Out action. More...
 
class  EaseExponentialIn
 Ease Exponential In. More...
 
class  EaseExponentialInOut
 Ease Exponential InOut. More...
 
class  EaseExponentialOut
 Ease Exponential Out. More...
 
class  EaseIn
 EaseIn action with a rate. More...
 
class  EaseInOut
 EaseInOut action with a rate. More...
 
class  EaseOut
 EaseOut action with a rate. More...
 
class  EaseQuadraticActionIn
 Ease Quadratic In. More...
 
class  EaseQuadraticActionInOut
 Ease Quadratic InOut. More...
 
class  EaseQuadraticActionOut
 Ease Quadratic Out. More...
 
class  EaseQuarticActionIn
 Ease Quartic In. More...
 
class  EaseQuarticActionInOut
 Ease Quartic InOut. More...
 
class  EaseQuarticActionOut
 Ease Quartic Out. More...
 
class  EaseQuinticActionIn
 Ease Quintic In. More...
 
class  EaseQuinticActionInOut
 Ease Quintic InOut. More...
 
class  EaseQuinticActionOut
 Ease Quintic Out. More...
 
class  EaseRateAction
 Base class for Easing actions with rate parameters. More...
 
class  EaseSineIn
 Ease Sine In. More...
 
class  EaseSineInOut
 Ease Sine InOut. More...
 
class  EaseSineOut
 Ease Sine Out. More...
 
class  Event
 Base class of all kinds of events. More...
 
class  EventAcceleration
 
class  EventCustom
 
class  EventDispatcher
 This class manages event listener subscriptions and event dispatching. More...
 
class  EventFocus
 
class  EventKeyboard
 
class  EventListener
 The base class of event listener. More...
 
class  EventListenerAcceleration
 
class  EventListenerCustom
 Usage: auto dispatcher = Director::getInstance()->getEventDispatcher(); Adds a listener: More...
 
class  EventListenerFocus
 
class  EventListenerKeyboard
 
class  EventListenerMouse
 
class  EventListenerPhysicsContact
 
class  EventListenerPhysicsContactWithBodies
 this event listener only be called when bodyA and bodyB have contacts More...
 
class  EventListenerPhysicsContactWithGroup
 this event listener only be called when shapeA or shapeB is in the group your specified More...
 
class  EventListenerPhysicsContactWithShapes
 this event listener only be called when shapeA and shapeB have contacts More...
 
class  EventListenerTouchAllAtOnce
 
class  EventListenerTouchOneByOne
 
class  EventMouse
 
class  EventTouch
 
class  FadeIn
 Fades In an object that implements the RGBAProtocol protocol. More...
 
class  FadeOut
 Fades Out an object that implements the RGBAProtocol protocol. More...
 
class  FadeOutBLTiles
 FadeOutBLTiles action. More...
 
class  FadeOutDownTiles
 FadeOutDownTiles action. More...
 
class  FadeOutTRTiles
 FadeOutTRTiles action Fades out the tiles in a Top-Right direction. More...
 
class  FadeOutUpTiles
 FadeOutUpTiles action. More...
 
class  FadeTo
 Fades an object that implements the RGBAProtocol protocol. More...
 
class  FileUtils
 Helper class to handle file operations. More...
 
class  FileUtilsAndroid
 Helper class to handle file operations. More...
 
class  FileUtilsApple
 Helper class to handle file operations. More...
 
class  FileUtilsLinux
 Helper class to handle file operations. More...
 
class  FileUtilsWin32
 Helper class to handle file operations. More...
 
class  FiniteTimeAction
 Base class actions that do have a finite time duration. More...
 
class  FlipX
 Flips the sprite horizontally. More...
 
class  FlipX3D
 FlipX3D action. More...
 
class  FlipY
 Flips the sprite vertically. More...
 
class  FlipY3D
 FlipY3D action. More...
 
class  Follow
 Follow is an action that "follows" a node. More...
 
class  Font
 
class  FontAtlas
 
class  FontAtlasCache
 
class  FontCharMap
 
struct  FontDefinition
 
class  FontFNT
 
class  FontFreeType
 
struct  FontLetterDefinition
 
struct  FontShadow
 types used for defining fonts properties (i.e. More...
 
struct  FontStroke
 
class  GLProgram
 GLProgram Class that implements a glProgram. More...
 
class  GLProgramCache
 GLProgramCache Singleton that stores manages GLProgram objects (shaders) More...
 
class  GLProgramState
 GLProgramState holds the 'state' (uniforms and attributes) of the GLProgram. More...
 
class  GLProgramStateCache
 
class  GLView
 Class that represent the OpenGL View. More...
 
class  GLViewProtocol
 
class  Grabber
 FBO class that grabs the the contents of the screen. More...
 
class  Grid3D
 Grid3D is a 3D grid implementation. More...
 
class  Grid3DAction
 Base class for Grid3D actions. More...
 
class  GridAction
 Base class for Grid actions. More...
 
class  GridBase
 Base class for other. More...
 
class  GroupCommand
 
class  GroupCommandManager
 
class  Hide
 Hide the node. More...
 
class  Image
 
class  IMEDelegate
 Input method editor delegate. More...
 
class  IMEDispatcher
 Input Method Edit Message Dispatcher. More...
 
struct  IMEKeyboardNotificationInfo
 
class  InputEvent
 
class  JniHelper
 
class  JumpBy
 Moves a Node object simulating a parabolic jump movement by modifying it's position attribute. More...
 
class  JumpTiles3D
 JumpTiles3D action. More...
 
class  JumpTo
 Moves a Node object to a parabolic position simulating a jump movement by modifying it's position attribute. More...
 
class  KeyboardEvent
 
class  Label
 
class  LabelAtlas
 LabelAtlas is a subclass of AtlasNode. More...
 
class  LabelBMFont
 LabelBMFont is a subclass of SpriteBatchNode. More...
 
class  LabelProtocol
 Common interface for Labels. More...
 
class  LabelTextFormatter
 
class  LabelTTF
 LabelTTF is a subclass of TextureNode that knows how to render text labels. More...
 
class  Layer
 Layer is a subclass of Node that implements the TouchEventsDelegate protocol. More...
 
class  LayerColor
 LayerColor is a subclass of Layer that implements the RGBAProtocol protocol. More...
 
class  LayerGradient
 LayerGradient is a subclass of LayerColor that draws gradients across the background. More...
 
class  LayerMultiplex
 MultipleLayer is a Layer with the ability to multiplex it's children. More...
 
class  Lens3D
 Lens3D action. More...
 
class  Liquid
 Liquid action. More...
 
class  Lock
 
class  LuaBridge
 
class  LuaCallFunc
 
class  LuaEngine
 
class  LuaObjcBridge
 
class  LuaStack
 
class  LuaValue
 
union  LuaValueField
 
class  Map
 
struct  MaterialData
 
class  Menu
 A Menu. More...
 
class  MenuItem
 MenuItem base class. More...
 
class  MenuItemAtlasFont
 A MenuItemAtlasFont Helper class that creates a MenuItemLabel class with a LabelAtlas. More...
 
class  MenuItemFont
 A MenuItemFont Helper class that creates a MenuItemLabel class with a Label. More...
 
class  MenuItemImage
 MenuItemImage accepts images as items. More...
 
class  MenuItemLabel
 An abstract class for "label" MenuItemLabel items Any Node that supports the LabelProtocol protocol can be added. More...
 
class  MenuItemSprite
 MenuItemSprite accepts Node<RGBAProtocol> objects as items. More...
 
class  MenuItemToggle
 A MenuItemToggle A simple container class that "toggles" it's inner items The inner items can be any MenuItem. More...
 
class  Mesh
 Mesh: TODO, add description of Mesh. More...
 
class  MeshCache
 MeshCache. More...
 
class  MeshCommand
 
struct  MeshData
 
class  MeshSkin
 
class  MeshSkinDataCache
 
struct  MeshVertexAttrib
 
class  MotionStreak
 MotionStreak. More...
 
class  MoveBy
 Moves a Node object x,y pixels by modifying it's position attribute. More...
 
class  MoveTo
 Moves a Node object to the position x,y. More...
 
class  Node
 Node is the base element of the Scene Graph. More...
 
class  NodeGrid
 
class  NotificationObserver
 
class  ObjectFactory
 
class  ObjLoader
 
class  OrbitCamera
 OrbitCamera action Orbits the camera around the center of the screen using spherical coordinates. More...
 
class  PageTurn3D
 This action simulates a page turn from the bottom right hand corner of the screen. More...
 
class  ParallaxNode
 ParallaxNode: A node that simulates a parallax scroller. More...
 
class  ParticleBatchNode
 ParticleBatchNode 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  ParticleExplosion
 An explosion particle system. More...
 
class  ParticleFire
 A fire particle system. More...
 
class  ParticleFireworks
 A fireworks particle system. More...
 
class  ParticleFlower
 A flower particle system. More...
 
class  ParticleGalaxy
 A galaxy particle system. More...
 
class  ParticleMeteor
 A meteor particle system. More...
 
class  ParticleRain
 A rain particle system. More...
 
class  ParticleSmoke
 An smoke particle system. More...
 
class  ParticleSnow
 An snow particle system. More...
 
class  ParticleSpiral
 An spiral particle system. More...
 
class  ParticleSun
 A sun particle system. More...
 
class  ParticleSystem
 Particle System base class. More...
 
class  ParticleSystemQuad
 ParticleSystemQuad is a subclass of ParticleSystem. More...
 
class  PhysicsBody
 A body affect by physics. More...
 
class  PhysicsBodyInfo
 
class  PhysicsContact
 Contact infomation. More...
 
class  PhysicsContactInfo
 
class  PhysicsContactPostSolve
 
class  PhysicsContactPreSolve
 
class  PhysicsDebugDraw
 
class  PhysicsHelper
 
class  PhysicsJoint
 
class  PhysicsJointDistance
 Set the fixed distance with two bodies. More...
 
class  PhysicsJointFixed
 
class  PhysicsJointGear
 Keeps the angular velocity ratio of a pair of bodies constant. More...
 
class  PhysicsJointGroove
 Attach body a to a line, and attach body b to a dot. More...
 
class  PhysicsJointInfo
 
class  PhysicsJointLimit
 
class  PhysicsJointMotor
 Keeps the relative angular velocity of a pair of bodies constant. More...
 
class  PhysicsJointPin
 
class  PhysicsJointRatchet
 Works like a socket wrench. More...
 
class  PhysicsJointRotaryLimit
 Likes a limit joint, but works with rotary. More...
 
class  PhysicsJointRotarySpring
 Likes a spring joint, but works with rotary. More...
 
class  PhysicsJointSpring
 Connecting two physics bodies together with a spring. More...
 
class  PhysicsShape
 A shape for body. More...
 
class  PhysicsShapeBox
 A box shape. More...
 
class  PhysicsShapeCircle
 A circle shape. More...
 
class  PhysicsShapeEdgeBox
 An edge box shape. More...
 
class  PhysicsShapeEdgeChain
 a chain shape More...
 
class  PhysicsShapeEdgePolygon
 An edge polygon shape. More...
 
class  PhysicsShapeEdgeSegment
 A segment shape. More...
 
class  PhysicsShapeInfo
 
class  PhysicsShapePolygon
 A polygon shape. More...
 
class  PhysicsWorld
 An PhysicsWorld object simulates collisions and other physical properties. More...
 
class  PhysicsWorldInfo
 
class  Place
 Places the node in a certain position. More...
 
class  PointArray
 An Array that contain control points. More...
 
class  PointerEvent
 
struct  PointSprite
 Vec2 Sprite component. More...
 
class  PoolManager
 
class  PrettyPrinter
 
class  Profiler
 Profiler cocos2d builtin profiler. More...
 
class  ProfilingTimer
 
class  ProgressFromTo
 Progress from a percentage to another percentage. More...
 
class  ProgressTimer
 ProgressTimer is a subclass of Node. More...
 
class  ProgressTo
 Progress to percentage. More...
 
class  ProtectedNode
 
struct  Quad2
 A 2D Quad. 4 * 2 floats. More...
 
struct  Quad3
 A 3D Quad. 4 * 3 floats. More...
 
class  QuadCommand
 Command used to render one or more Quads. More...
 
class  Rect
 
class  Ref
 
class  RefPtr
 Wrapper class which maintains a strong reference to a cocos2dx cocos2d::Ref* type object. More...
 
class  RemoveSelf
 Remove the node. More...
 
class  RenderCommand
 Base class of the RenderCommand hierarchy. More...
 
class  RenderCommandPool
 
class  Renderer
 
class  RenderMeshData
 
class  RenderQueue
 Class that knows how to sort RenderCommand objects. More...
 
struct  RenderStackElement
 
class  RenderTexture
 RenderTexture is a generic rendering target. More...
 
class  Repeat
 Repeats an action a number of times. More...
 
class  RepeatForever
 Repeats an action for ever. More...
 
class  ReuseGrid
 ReuseGrid action. More...
 
class  ReverseTime
 Executes an action in reverse order, from time=duration to time=0. More...
 
class  Ripple3D
 Ripple3D action. More...
 
class  RotateBy
 Rotates a Node object clockwise a number of degrees by modifying it's rotation attribute. More...
 
class  RotateTo
 Rotates a Node object to a certain angle by modifying it's rotation attribute. More...
 
class  SAXDelegator
 
class  SAXParser
 
class  ScaleBy
 Scales a Node object a zoom factor by modifying it's scale attribute. More...
 
class  ScaleTo
 Scales a Node object to a zoom factor by modifying it's scale attribute. More...
 
class  Scene
 Scene is a subclass of Node that is used only as an abstract concept. More...
 
class  ScheduleHandlerDelegate
 
class  Scheduler
 Scheduler is responsible for triggering the scheduled callbacks. More...
 
class  ScriptHandlerMgr
 
class  sealed
 
class  Sequence
 Runs actions sequentially, one after another. More...
 
class  Shaky3D
 Shaky3D action. More...
 
class  ShakyTiles3D
 ShakyTiles3D action. More...
 
class  ShatteredTiles3D
 ShatteredTiles3D action. More...
 
class  Show
 Show the node. More...
 
class  ShuffleTiles
 ShuffleTiles action Shuffle the tiles in random order. More...
 
class  Size
 
class  SkewBy
 Skews a Node object by skewX and skewY degrees. More...
 
class  SkewTo
 Skews a Node object to given angles by modifying it's skewX and skewY attributes. More...
 
struct  SkinData
 
class  Spawn
 Spawn a new action immediately. More...
 
class  Speed
 Changes the speed of an action, making it take longer (speed>1) or less (speed<1) time. More...
 
class  SplitCols
 SplitCols action. More...
 
class  SplitRows
 SplitRows action. More...
 
class  Sprite
 Sprite is a 2d image ( http://en.wikipedia.org/wiki/Sprite_(computer_graphics) ) More...
 
class  Sprite3D
 Sprite3D: TODO add description. More...
 
class  Sprite3DMaterialCache
 the sprite3D material is only texture for now More...
 
class  SpriteBatchNode
 SpriteBatchNode 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  SpriteFrame
 A SpriteFrame has: More...
 
class  SpriteFrameCache
 Singleton that handles the loading of the sprite frames. More...
 
class  StopGrid
 StopGrid action. More...
 
struct  StringCompare
 
struct  T2F_Quad
 
class  TargetedAction
 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...
 
struct  Tex2F
 A vertex composed of 2 floats: x, y. More...
 
class  TextFieldDelegate
 
class  TextFieldTTF
 A simple text input field with TTF font. More...
 
class  Texture2D
 Texture2D class. More...
 
class  TextureAtlas
 A class that implements a Texture Atlas. More...
 
class  TextureCache
 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  TextureProtocol
 Node objects that uses a Texture2D to render the images. More...
 
class  ThreadHelper
 
class  TiledGrid3D
 TiledGrid3D is a 3D grid implementation. More...
 
class  TiledGrid3DAction
 Base class for TiledGrid3D actions. More...
 
class  TileMapAtlas
 TileMapAtlas is a subclass of AtlasNode. More...
 
class  Timer
 Light-weight timer. More...
 
class  TimerTargetCallback
 
class  TimerTargetSelector
 
struct  timezone
 
class  TintBy
 Tints a Node that implements the NodeRGB protocol from current tint to a custom one. More...
 
class  TintTo
 Tints a Node that implements the NodeRGB protocol from current tint to a custom one. More...
 
class  TMXLayer
 TMXLayer represents the TMX layer. More...
 
class  TMXLayerInfo
 TMXLayerInfo contains the information about the layers like: More...
 
class  TMXMapInfo
 TMXMapInfo contains the information about the map like: More...
 
class  TMXObjectGroup
 TMXObjectGroup represents the TMX object group. More...
 
class  TMXTiledMap
 TMXTiledMap knows how to parse and render a TMX map. More...
 
class  TMXTilesetInfo
 TMXTilesetInfo contains the information about the tilesets like: More...
 
class  ToggleVisibility
 Toggles the visibility of a node. More...
 
class  Touch
 
class  TransitionCrossFade
 TransitionCrossFade: Cross fades two scenes using the RenderTexture object. More...
 
class  TransitionEaseScene
 TransitionEaseScene can ease the actions of the scene protocol. More...
 
class  TransitionFade
 TransitionFade: Fade out the outgoing scene and then fade in the incoming scene. More...
 
class  TransitionFadeBL
 TransitionFadeBL: Fade the tiles of the outgoing scene from the top-right corner to the bottom-left corner. More...
 
class  TransitionFadeDown
 TransitionFadeDown: Fade the tiles of the outgoing scene from the top to the bottom. More...
 
class  TransitionFadeTR
 TransitionFadeTR: Fade the tiles of the outgoing scene from the left-bottom corner the to top-right corner. More...
 
class  TransitionFadeUp
 TransitionFadeUp: Fade the tiles of the outgoing scene from the bottom to the top. More...
 
class  TransitionFlipAngular
 TransitionFlipAngular: Flips the screen half horizontally and half vertically. More...
 
class  TransitionFlipX
 TransitionFlipX: Flips the screen horizontally. More...
 
class  TransitionFlipY
 TransitionFlipY: Flips the screen vertically. More...
 
class  TransitionJumpZoom
 TransitionJumpZoom: Zoom out and jump the outgoing scene, and then jump and zoom in the incoming. More...
 
class  TransitionMoveInB
 TransitionMoveInB: Move in from to the bottom the incoming scene. More...
 
class  TransitionMoveInL
 TransitionMoveInL: Move in from to the left the incoming scene. More...
 
class  TransitionMoveInR
 TransitionMoveInR: Move in from to the right the incoming scene. More...
 
class  TransitionMoveInT
 TransitionMoveInT: Move in from to the top the incoming scene. More...
 
class  TransitionPageTurn
 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  TransitionProgress
 
class  TransitionProgressHorizontal
 TransitionProgressHorizontal transition. More...
 
class  TransitionProgressInOut
 
class  TransitionProgressOutIn
 
class  TransitionProgressRadialCCW
 TransitionRadialCCW transition. More...
 
class  TransitionProgressRadialCW
 TransitionRadialCW transition. More...
 
class  TransitionProgressVertical
 
class  TransitionRotoZoom
 TransitionRotoZoom: Rotate and zoom out the outgoing scene, and then rotate and zoom in the incoming. More...
 
class  TransitionScene
 Base class for Transition scenes. More...
 
class  TransitionSceneOriented
 A Transition that supports orientation like. More...
 
class  TransitionShrinkGrow
 Shrink the outgoing scene while grow the incoming scene. More...
 
class  TransitionSlideInB
 TransitionSlideInB: Slide in the incoming scene from the bottom border. More...
 
class  TransitionSlideInL
 TransitionSlideInL: Slide in the incoming scene from the left border. More...
 
class  TransitionSlideInR
 TransitionSlideInR: Slide in the incoming scene from the right border. More...
 
class  TransitionSlideInT
 TransitionSlideInT: Slide in the incoming scene from the top border. More...
 
class  TransitionSplitCols
 TransitionSplitCols: The odd columns goes upwards while the even columns goes downwards. More...
 
class  TransitionSplitRows
 TransitionSplitRows: The odd rows goes to the left while the even rows goes to the right. More...
 
class  TransitionTurnOffTiles
 TransitionTurnOffTiles: Turn off the tiles of the outgoing scene in random order. More...
 
class  TransitionZoomFlipAngular
 TransitionZoomFlipAngular: Flips the screen half horizontally and half vertically doing a little zooming out/in. More...
 
class  TransitionZoomFlipX
 TransitionZoomFlipX: 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  TransitionZoomFlipY
 TransitionZoomFlipY: 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  TurnOffTiles
 TurnOffTiles action. More...
 
class  Twirl
 Twirl action. More...
 
struct  Uniform
 
class  UniformValue
 
class  UserDefault
 UserDefault acts as a tiny database. More...
 
struct  V2F_C4B_T2F
 a Vec2 with a vertex point, a tex coord point and a color 4B More...
 
struct  V2F_C4B_T2F_Quad
 A Quad of V2F_C4B_T2F. More...
 
struct  V2F_C4B_T2F_Triangle
 A Triangle of V2F_C4B_T2F. More...
 
struct  V2F_C4F_T2F
 a Vec2 with a vertex point, a tex coord point and a color 4F More...
 
struct  V2F_C4F_T2F_Quad
 4 Vertex2FTex2FColor4F Quad More...
 
struct  V3F_C4B_T2F
 a Vec2 with a vertex point, a tex coord point and a color 4B More...
 
struct  V3F_C4B_T2F_Quad
 4 Vertex3FTex2FColor4B More...
 
class  Value
 
class  Vector
 
struct  VertexAttrib
 
class  VertexAttribValue
 
class  Waves
 Waves action. More...
 
class  Waves3D
 Waves3D action. More...
 
class  WavesTiles3D
 WavesTiles3D action. More...
 
class  ZipFile
 Zip file - reader helper class. More...
 
class  ZipUtils
 

Typedefs

typedef std::function< void(Ref *)> ccMenuCallback
typedef void(Ref::* SEL_CallFunc )()
typedef void(Ref::* SEL_CallFuncN )(Node *)
typedef void(Ref::* SEL_CallFuncND )(Node *, void *)
typedef void(Ref::* SEL_CallFuncO )(Ref *)
typedef void(Ref::* SEL_MenuHandler )(Ref *)
typedef void(Ref::* SEL_SCHEDULE )(float)
typedef std::function< void(float)> ccSchedulerFunc
typedef std::vector< ValueValueVector
typedef std::unordered_map
< std::string, Value
ValueMap
typedef std::unordered_map
< int, Value
ValueMapIntKey
typedef Ref CCObject
typedef Ref Object
typedef Event CCEvent
typedef DataVisitor CCDataVisitor
typedef PrettyPrinter CCPrettyPrinter
typedef Acceleration CCAcceleration
typedef TextureAtlas CCTextureAtlas
typedef Configuration CCConfiguration
typedef PointArray CCPointArray
typedef RemoveSelf CCRemoveSelf
typedef IMEDelegate CCIMEDelegate
typedef IMEKeyboardNotificationInfo CCIMEKeyboardNotificationInfo
typedef TextFieldDelegate CCTextFieldDelegate
typedef TextFieldTTF CCTextFieldTTF
typedef __NotificationCenter CCNotificationCenter
typedef __NotificationCenter NotificationCenter
typedef Image CCImage
typedef UserDefault CCUserDefault
typedef Action CCAction
typedef FiniteTimeAction CCFiniteTimeAction
typedef Speed CCSpeed
typedef Follow CCFollow
typedef GLProgram CCGLProgram
typedef Touch CCTouch
typedef Texture2D CCTexture2D
typedef Node CCNode
typedef Node CCNodeRGBA
typedef Node CCRGBAProtocol
typedef SpriteFrame CCSpriteFrame
typedef AnimationFrame CCAnimationFrame
typedef Animation CCAnimation
typedef ActionInterval CCActionInterval
typedef Sequence CCSequence
typedef Repeat CCRepeat
typedef RepeatForever CCRepeatForever
typedef Spawn CCSpawn
typedef RotateTo CCRotateTo
typedef RotateBy CCRotateBy
typedef MoveBy CCMoveBy
typedef MoveTo CCMoveTo
typedef SkewTo CCSkewTo
typedef SkewBy CCSkewBy
typedef JumpBy CCJumpBy
typedef JumpTo CCJumpTo
typedef BezierBy CCBezierBy
typedef BezierTo CCBezierTo
typedef ScaleTo CCScaleTo
typedef ScaleBy CCScaleBy
typedef Blink CCBlink
typedef FadeIn CCFadeIn
typedef FadeOut CCFadeOut
typedef FadeTo CCFadeTo
typedef TintTo CCTintTo
typedef TintBy CCTintBy
typedef DelayTime CCDelayTime
typedef Animate CCAnimate
typedef TargetedAction CCTargetedAction
typedef ActionCamera CCActionCamera
typedef OrbitCamera CCOrbitCamera
typedef ActionManager CCActionManager
typedef ActionEase CCActionEase
typedef EaseRateAction CCEaseRateAction
typedef EaseIn CCEaseIn
typedef EaseOut CCEaseOut
typedef EaseInOut CCEaseInOut
typedef EaseExponentialIn CCEaseExponentialIn
typedef EaseExponentialOut CCEaseExponentialOut
typedef EaseExponentialInOut CCEaseExponentialInOut
typedef EaseSineIn CCEaseSineIn
typedef EaseSineOut CCEaseSineOut
typedef EaseSineInOut CCEaseSineInOut
typedef EaseElastic CCEaseElastic
typedef EaseElasticIn CCEaseElasticIn
typedef EaseElasticOut CCEaseElasticOut
typedef EaseElasticInOut CCEaseElasticInOut
typedef EaseBounce CCEaseBounce
typedef EaseBounceIn CCEaseBounceIn
typedef EaseBounceOut CCEaseBounceOut
typedef EaseBounceInOut CCEaseBounceInOut
typedef EaseBackIn CCEaseBackIn
typedef EaseBackOut CCEaseBackOut
typedef EaseBackInOut CCEaseBackInOut
typedef ActionInstant CCActionInstant
typedef Show CCShow
typedef Hide CCHide
typedef ToggleVisibility CCToggleVisibility
typedef FlipX CCFlipX
typedef FlipY CCFlipY
typedef Place CCPlace
typedef CallFunc CCCallFunc
typedef CallFuncN CCCallFuncN
typedef __CCCallFuncND CCCallFuncND
typedef __CCCallFuncO CCCallFuncO
typedef GridAction CCGridAction
typedef Grid3DAction CCGrid3DAction
typedef TiledGrid3DAction CCTiledGrid3DAction
typedef StopGrid CCStopGrid
typedef ReuseGrid CCReuseGrid
typedef Waves3D CCWaves3D
typedef FlipX3D CCFlipX3D
typedef FlipY3D CCFlipY3D
typedef Lens3D CCLens3D
typedef Ripple3D CCRipple3D
typedef Shaky3D CCShaky3D
typedef Liquid CCLiquid
typedef Waves CCWaves
typedef Twirl CCTwirl
typedef PageTurn3D CCPageTurn3D
typedef ProgressTo CCProgressTo
typedef ProgressFromTo CCProgressFromTo
typedef ShakyTiles3D CCShakyTiles3D
typedef ShatteredTiles3D CCShatteredTiles3D
typedef ShuffleTiles CCShuffleTiles
typedef FadeOutTRTiles CCFadeOutTRTiles
typedef FadeOutBLTiles CCFadeOutBLTiles
typedef FadeOutUpTiles CCFadeOutUpTiles
typedef FadeOutDownTiles CCFadeOutDownTiles
typedef TurnOffTiles CCTurnOffTiles
typedef WavesTiles3D CCWavesTiles3D
typedef JumpTiles3D CCJumpTiles3D
typedef SplitRows CCSplitRows
typedef SplitCols CCSplitCols
typedef ActionTween CCActionTween
typedef CardinalSplineTo CCCardinalSplineTo
typedef CardinalSplineBy CCCardinalSplineBy
typedef CatmullRomTo CCCatmullRomTo
typedef CatmullRomBy CCCatmullRomBy
typedef AtlasNode CCAtlasNode
typedef TextureProtocol CCTextureProtocol
typedef BlendProtocol CCBlendProtocol
typedef DrawNode CCDrawNode
typedef Camera CCCamera
typedef LabelAtlas CCLabelAtlas
typedef LabelProtocol CCLabelProtocol
typedef Director CCDirector
typedef GridBase CCGridBase
typedef Grid3D CCGrid3D
typedef TiledGrid3D CCTiledGrid3D
typedef Sprite CCSprite
typedef SpriteBatchNode CCSpriteBatchNode
typedef Layer CCLayer
typedef Layer CCLayerRGBA
typedef LayerColor CCLayerColor
typedef LayerGradient CCLayerGradient
typedef LayerMultiplex CCLayerMultiplex
typedef Scene CCScene
typedef TransitionEaseScene CCTransitionEaseScene
typedef TransitionScene CCTransitionScene
typedef TransitionSceneOriented CCTransitionSceneOriented
typedef TransitionRotoZoom CCTransitionRotoZoom
typedef TransitionJumpZoom CCTransitionJumpZoom
typedef TransitionMoveInL CCTransitionMoveInL
typedef TransitionMoveInR CCTransitionMoveInR
typedef TransitionMoveInT CCTransitionMoveInT
typedef TransitionMoveInB CCTransitionMoveInB
typedef TransitionSlideInL CCTransitionSlideInL
typedef TransitionSlideInR CCTransitionSlideInR
typedef TransitionSlideInB CCTransitionSlideInB
typedef TransitionSlideInT CCTransitionSlideInT
typedef TransitionShrinkGrow CCTransitionShrinkGrow
typedef TransitionFlipX CCTransitionFlipX
typedef TransitionFlipY CCTransitionFlipY
typedef TransitionFlipAngular CCTransitionFlipAngular
typedef TransitionZoomFlipX CCTransitionZoomFlipX
typedef TransitionZoomFlipY CCTransitionZoomFlipY
typedef TransitionZoomFlipAngular CCTransitionZoomFlipAngular
typedef TransitionFade CCTransitionFade
typedef TransitionCrossFade CCTransitionCrossFade
typedef TransitionTurnOffTiles CCTransitionTurnOffTiles
typedef TransitionSplitCols CCTransitionSplitCols
typedef TransitionSplitRows CCTransitionSplitRows
typedef TransitionFadeTR CCTransitionFadeTR
typedef TransitionFadeBL CCTransitionFadeBL
typedef TransitionFadeUp CCTransitionFadeUp
typedef TransitionFadeDown CCTransitionFadeDown
typedef TransitionPageTurn CCTransitionPageTurn
typedef TransitionProgress CCTransitionProgress
typedef TransitionProgressRadialCCW CCTransitionProgressRadialCCW
typedef TransitionProgressRadialCW CCTransitionProgressRadialCW
typedef
TransitionProgressHorizontal 
CCTransitionProgressHorizontal
typedef TransitionProgressVertical CCTransitionProgressVertical
typedef TransitionProgressInOut CCTransitionProgressInOut
typedef TransitionProgressOutIn CCTransitionProgressOutIn
typedef MenuItem CCMenuItem
typedef MenuItemLabel CCMenuItemLabel
typedef MenuItemAtlasFont CCMenuItemAtlasFont
typedef MenuItemFont CCMenuItemFont
typedef MenuItemSprite CCMenuItemSprite
typedef MenuItemImage CCMenuItemImage
typedef MenuItemToggle CCMenuItemToggle
typedef Menu CCMenu
typedef ClippingNode CCClippingNode
typedef MotionStreak CCMotionStreak
typedef ProgressTimer CCProgressTimer
typedef RenderTexture CCRenderTexture
typedef ParticleBatchNode CCParticleBatchNode
typedef ParticleSystem CCParticleSystem
typedef ParticleSystemQuad CCParticleSystemQuad
typedef ParticleFire CCParticleFire
typedef ParticleFireworks CCParticleFireworks
typedef ParticleSun CCParticleSun
typedef ParticleGalaxy CCParticleGalaxy
typedef ParticleFlower CCParticleFlower
typedef ParticleMeteor CCParticleMeteor
typedef ParticleSpiral CCParticleSpiral
typedef ParticleExplosion CCParticleExplosion
typedef ParticleSmoke CCParticleSmoke
typedef ParticleSnow CCParticleSnow
typedef ParticleRain CCParticleRain
typedef FileUtils CCFileUtils
typedef Application CCApplication
typedef GLProgramCache CCShaderCache
typedef GLProgramCache ShaderCache
typedef AnimationCache CCAnimationCache
typedef SpriteFrameCache CCSpriteFrameCache
typedef TextureCache CCTextureCache
typedef ParallaxNode CCParallaxNode
typedef TMXObjectGroup CCTMXObjectGroup
typedef TMXLayerInfo CCTMXLayerInfo
typedef TMXTilesetInfo CCTMXTilesetInfo
typedef TMXMapInfo CCTMXMapInfo
typedef TMXLayer CCTMXLayer
typedef TMXTiledMap CCTMXTiledMap
typedef TileMapAtlas CCTileMapAtlas
typedef Timer CCTimer
typedef Scheduler CCScheduler
typedef GLView CCEGLView
typedef Component CCComponent
typedef AffineTransform CCAffineTransform
typedef Vec2 CCPoint
typedef Size CCSize
typedef Rect CCRect
typedef Color3B ccColor3B
typedef Color4F ccColor4F
typedef Color4B ccColor4B
typedef Vec2 ccVertex2F
typedef Vec2 Vertex2F
typedef Vec3 ccVertex3F
typedef Vec3 Vertex3F
typedef Tex2F ccTex2F
typedef PointSprite ccPointSprite
typedef Quad2 ccQuad2
typedef Quad3 ccQuad3
typedef V2F_C4B_T2F ccV2F_C4B_T2F
typedef V2F_C4F_T2F ccV2F_C4F_T2F
typedef V3F_C4B_T2F ccV3F_C4B_T2F
typedef V2F_C4B_T2F_Triangle ccV2F_C4B_T2F_Triangle
typedef V2F_C4B_T2F_Quad ccV2F_C4B_T2F_Quad
typedef V3F_C4B_T2F_Quad ccV3F_C4B_T2F_Quad
typedef V2F_C4F_T2F_Quad ccV2F_C4F_T2F_Quad
typedef BlendFunc ccBlendFunc
typedef T2F_Quad ccT2F_Quad
typedef AnimationFrameData ccAnimationFrameData
typedef FontShadow ccFontShadow
typedef FontStroke ccFontStroke
typedef FontDefinition ccFontDefinition
typedef TextVAlignment CCVerticalTextAlignment
typedef TextHAlignment CCTextAlignment
typedef ProgressTimer::Type CCProgressTimerType
typedef void * CCZone
typedef ProgressTimer::Type ProgressTimerType
typedef Director::Projection ccDirectorProjection
 Possible OpenGL projections used by director. More...
 
typedef Texture2D::PixelFormat CCTexture2DPixelFormat
typedef
ParticleSystem::PositionType 
tPositionType
typedef Menu::State tMenuState
typedef Touch::DispatchMode ccTouchesMode
typedef Image::Format tImageFormat
typedef
TransitionScene::Orientation 
tOrientation
typedef LanguageType ccLanguageType
typedef Application::Platform TargetPlatform
typedef int ccGLServerState
typedef Data CCData
typedef __Set CCSet
typedef __SetIterator CCSetIterator
typedef __Set Set
typedef __SetIterator SetIterator
typedef __Array CCArray
typedef __Array Array
typedef __Dictionary Dictionary
typedef __Dictionary CCDictionary
typedef __Double Double
typedef __Double CCDouble
typedef __Float Float
typedef __Float CCFloat
typedef __Integer Integer
typedef __Integer CCInteger
typedef __Bool Bool
typedef __Bool CCBool
typedef __String CCString
typedef __String String
typedef __RGBAProtocol RGBAProtocol
typedef __NodeRGBA NodeRGBA
typedef __LayerRGBA LayerRGBA
typedef float kmScalar
typedef Mat4 kmMat4
typedef Vec3 kmVec3
typedef Vec2 kmVec2
typedef Vec4 kmVec4
typedef std::set< Ref * >::iterator __SetIterator
typedef Vec2 Vect
typedef std::function< bool(PhysicsWorld
&world, const
PhysicsRayCastInfo &info, void
*data)> 
PhysicsRayCastCallbackFunc
 Called for each fixture found in the query. More...
 
typedef std::function< bool(PhysicsWorld
&, PhysicsShape &, void *)> 
PhysicsQueryRectCallbackFunc
typedef
PhysicsQueryRectCallbackFunc 
PhysicsQueryPointCallbackFunc
typedef unsigned char CC_XML_CHAR
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 struct _MipmapInfo MipmapInfo
typedef int LUA_FUNCTION
typedef int LUA_TABLE
typedef int LUA_STRING
typedef std::map< std::string,
LuaValue
LuaValueDict
typedef
LuaValueDict::const_iterator 
LuaValueDictIterator
typedef std::list< LuaValueLuaValueArray
typedef
LuaValueArray::const_iterator 
LuaValueArrayIterator
typedef std::vector
< ScheduleHandlerDelegate * > 
VecShedule
typedef std::map
< cocos2d::Node *, VecShedule
MapNodeSchedules

Enumerations

enum  { kComponentOnEnter, kComponentOnExit, kComponentOnUpdate }
 
enum  GlyphCollection { DYNAMIC, NEHE, ASCII, CUSTOM }
 
enum  LabelEffect { NORMAL, OUTLINE, SHADOW, GLOW }
 
enum  {
  kNodeOnEnter, kNodeOnExit, kNodeOnEnterTransitionDidFinish, kNodeOnExitTransitionDidStart,
  kNodeOnCleanup
}
 
enum  { TMXOrientationOrtho, TMXOrientationHex, TMXOrientationIso }
 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  TMXTileFlags {
  kTMXTileHorizontalFlag = 0x80000000, kTMXTileVerticalFlag = 0x40000000, kTMXTileDiagonalFlag = 0x20000000, kTMXFlipedAll = (kTMXTileHorizontalFlag|kTMXTileVerticalFlag|kTMXTileDiagonalFlag),
  kTMXFlippedMask = ~(kTMXFlipedAll)
}
 
enum  EvaluateType { LINEAR, NEAR, QUAT_SLERP, USER_FUNCTION }
 
enum  MATRIX_STACK_TYPE { MATRIX_STACK_MODELVIEW, MATRIX_STACK_PROJECTION, MATRIX_STACK_TEXTURE }
 Class that creates and handles the main Window and manages how and when to execute the Scenes. More...
 
enum  TextVAlignment { TOP, CENTER, BOTTOM }
 Vertical text alignment type. More...
 
enum  TextHAlignment { LEFT, CENTER, RIGHT }
 Horizontal text alignment type. More...
 
enum  {
  TGA_OK, TGA_ERROR_FILE_OPEN, TGA_ERROR_READING_FILE, TGA_ERROR_INDEXED_COLOR,
  TGA_ERROR_MEMORY, TGA_ERROR_COMPRESSED_FILE
}
 
enum  { CCZ_COMPRESSION_ZLIB, CCZ_COMPRESSION_BZIP2, CCZ_COMPRESSION_GZIP, CCZ_COMPRESSION_NONE }
 
enum  LanguageType {
  ENGLISH = 0, CHINESE, FRENCH, ITALIAN,
  GERMAN, SPANISH, DUTCH, RUSSIAN,
  KOREAN, JAPANESE, HUNGARIAN, PORTUGUESE,
  ARABIC, NORWEGIAN, POLISH
}
 Enum the language type supported now. More...
 
enum  PointerEventType { PointerPressed, PointerMoved, PointerReleased }
 
enum  LuaBridgeError {
  kLuaBridgeErrorOk = 0, kLuaBridgeErrorInvalidParameters = -1, kLuaBridgeErrorClassNotFound = -2, kLuaBridgeErrorMethodNotFound = -3,
  kLuaBridgeErrorExceptionOccurred = -4, kLuaBridgeErrorMethodSignature = -5, kLuaBridgeErrorJavaVMError = -6
}
 
enum  LuaValueType {
  LuaValueTypeInt, LuaValueTypeFloat, LuaValueTypeBoolean, LuaValueTypeString,
  LuaValueTypeDict, LuaValueTypeArray, LuaValueTypeObject
}
 

Functions

CC_DLL Vec2  (Vec2 &p0, Vec2 &p1, Vec2 &p2, Vec2 &p3, float tension, float t)
 Returns the Cardinal Spline position for a given set of control points, tension and time. More...
 
var  ( var p0, var p1, var p2, var p3, var tension, var t)
 Returns the Cardinal Spline position for a given set of control points, tension and time. More...
 
local  ( local p0, local p1, local p2, local p3, local tension, local t)
 Returns the Cardinal Spline position for a given set of control points, tension and time. More...
 
bool  (Node *n1, Node *n2)
local  ( local n1, local n2)
int  (const 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...
 
int  (const unsigned char *in, unsigned int inLength, char **out)
 Encodes bytes into a 64base encoded memory with terminating '\0' character. More...
 
ccArray *  (ssize_t capacity)
 Allocates and initializes a new array with specified capacity. More...
 
var  ( var capacity)
 Allocates and initializes a new array with specified capacity. More...
 
local  ( local capacity)
 Allocates and initializes a new array with specified capacity. More...
 
void  (ccArray *&arr)
 Frees array after removing all remaining objects. More...
 
void  (ccArray *arr)
 Doubles array capacity. More...
 
void  (ccArray *arr, ssize_t extra)
 Increases array capacity such that max >= num + extra. More...
 
var  ( var arr, var extra)
 Increases array capacity such that max >= num + extra. More...
 
local  ( local arr, local extra)
 Increases array capacity such that max >= num + extra. More...
 
void  (ccArray *arr)
 shrinks the array so the memory footprint corresponds with the number of items More...
 
ssize_t  (ccArray *arr, Ref *object)
 Returns index of first occurrence of object, NSNotFound if object not found. More...
 
bool  (ccArray *arr, Ref *object)
 Returns a Boolean value that indicates whether object is present in array. More...
 
void  (ccArray *arr, Ref *object)
 Appends an object. More...
 
void  (ccArray *arr, Ref *object)
 Appends an object. More...
 
var  ( var arr, var object)
 Appends an object. More...
 
local  ( local arr, local object)
 Appends an object. More...
 
void  (ccArray *arr, ccArray *plusArr)
 Appends objects from plusArr to arr. More...
 
local  ( local arr, local plusArr)
 Appends objects from plusArr to arr. More...
 
void  (ccArray *arr, ccArray *plusArr)
 Appends objects from plusArr to arr. More...
 
var  ( var arr, var plusArr)
 Appends objects from plusArr to arr. More...
 
local  ( local arr, local plusArr)
 Appends objects from plusArr to arr. More...
 
void  (ccArray *arr, Ref *object, ssize_t index)
 Inserts an object at index. More...
 
void  (ccArray *arr, ssize_t index1, ssize_t index2)
 Swaps two objects. More...
 
var  ( var arr, var index1, var index2)
 Swaps two objects. More...
 
local  ( local arr, local index1, local index2)
 Swaps two objects. More...
 
void  (ccArray *arr)
 Removes all objects from arr. More...
 
var  ( var arr)
 Removes all objects from arr. More...
 
local  ( local arr)
 Removes all objects from arr. More...
 
void  (ccArray *arr, ssize_t index, bool releaseObj=true)
 Removes object at specified index and pushes back all subsequent objects. More...
 
void  (ccArray *arr, ssize_t index)
 Removes object at specified index and fills the gap with the last object, thereby avoiding the need to push back subsequent objects. More...
 
void  (ccArray *arr, Ref *object)
void  (ccArray *arr, Ref *object, bool releaseObj=true)
 Searches for the first occurrence of object and removes it. More...
 
var  ( var arr, var object, var true)
 Searches for the first occurrence of object and removes it. More...
 
local  ( local arr, local object, local true)
 Searches for the first occurrence of object and removes it. More...
 
void  (ccArray *arr, ccArray *minusArr)
 Removes from arr all objects in minusArr. More...
 
void  (ccArray *arr, ccArray *minusArr)
 Removes from arr all objects in minusArr. More...
 
var  ( var arr, var minusArr)
 Removes from arr all objects in minusArr. More...
 
local  ( local arr, local minusArr)
 Removes from arr all objects in minusArr. More...
 
ccCArray *  (ssize_t capacity)
 Allocates and initializes a new C array with specified capacity. More...
 
void  (ccCArray *arr)
 Frees C array after removing all remaining values. More...
 
void  (ccCArray *arr)
 Doubles C array capacity. More...
 
void  (ccCArray *arr, ssize_t extra)
 Increases array capacity such that max >= num + extra. More...
 
ssize_t  (ccCArray *arr, void *value)
 Returns index of first occurrence of value, NSNotFound if value not found. More...
 
bool  (ccCArray *arr, void *value)
 Returns a Boolean value that indicates whether value is present in the C array. More...
 
void  (ccCArray *arr, void *value, ssize_t index)
 Inserts a value at a certain position. More...
 
var  ( var arr, var value, var index)
 Inserts a value at a certain position. More...
 
local  ( local arr, local value, local index)
 Inserts a value at a certain position. More...
 
void  (ccCArray *arr, void *value)
 Appends an value. More...
 
var  ( var arr, var value)
 Appends an value. More...
 
local  ( local arr, local value)
 Appends an value. More...
 
void  (ccCArray *arr, void *value)
 Appends an value. More...
 
void  (ccCArray *arr, ccCArray *plusArr)
 Appends values from plusArr to arr. More...
 
var  ( var arr, var plusArr)
 Appends values from plusArr to arr. More...
 
local  ( local arr, local plusArr)
 Appends values from plusArr to arr. More...
 
void  (ccCArray *arr, ccCArray *plusArr)
 Appends values from plusArr to arr. More...
 
var  ( var arr, var plusArr)
 Appends values from plusArr to arr. More...
 
local  ( local arr, local plusArr)
 Appends values from plusArr to arr. More...
 
void  (ccCArray *arr)
 Removes all values from arr. More...
 
var  ( var arr)
 Removes all values from arr. More...
 
local  ( local arr)
 Removes all values from arr. More...
 
void  (ccCArray *arr, ssize_t index)
 Removes value at specified index and pushes back all subsequent values. More...
 
void  (ccCArray *arr, ssize_t index)
 Removes value at specified index and fills the gap with the last value, thereby avoiding the need to push back subsequent values. More...
 
var  ( var arr, var index)
 Removes value at specified index and fills the gap with the last value, thereby avoiding the need to push back subsequent values. More...
 
void  (ccCArray *arr, void *value)
 Searches for the first occurrence of value and removes it. More...
 
void  (ccCArray *arr, ccCArray *minusArr)
 Removes from arr all values in minusArr. More...
 
void  (ccCArray *arr, ccCArray *minusArr)
 Removes from arr all values in minusArr. More...
 
var  ( var arr, var minusArr)
 Removes from arr all values in minusArr. More...
 
local  ( local arr, local minusArr)
 Removes from arr all values in minusArr. More...
 
void CC_DLL  (const char *format,...) CC_FORMAT_PRINTF(1
 Output Debug message. More...
 
var  ( var format)
 Output Debug message. More...
 
local  ( local format)
 Output Debug message. More...
 
Rect CC_DLL  (const std::string &str)
 Returns a Core Graphics rectangle structure corresponding to the data in a given string. More...
 
Vec2 CC_DLL  (const std::string &str)
 Returns a Core Graphics point structure corresponding to the data in a given string. More...
 
Size CC_DLL  (const std::string &str)
 Returns a Core Graphics size structure corresponding to the data in a given string. More...
 
void  (const char *timerName)
var  ( var timerName)
local  ( local timerName)
void  (const char *timerName)
var  ( var timerName)
local  ( local timerName)
void  (const char *timerName)
var  ( var timerName)
local  ( local timerName)
template<class T , class U >
RefPtr< T >  (const RefPtr< U > &r)
 Cast between RefPtr types statically. More...
 
template<class T , class U >
RefPtr< T >  (const RefPtr< U > &r)
 Cast between RefPtr types dynamically. More...
 
int  (int value)
 returns the Next Power of Two value. More...
 
bool  (unsigned char *buffer, unsigned long bufSize, tImageTGA *info)
 load the image header fields. We only keep those that matter! More...
 
var  ( var buffer, var bufSize, var info)
 load the image header fields. We only keep those that matter! More...
 
local  ( local buffer, local bufSize, local info)
 load the image header fields. We only keep those that matter! More...
 
bool  (unsigned char *buffer, unsigned long bufSize, tImageTGA *info)
 loads the image pixels. You shouldn't call this function directly More...
 
tImageTGA (unsigned char *buffer, long size)
 this is the function to call when we want to load an image buffer. More...
 
tImageTGA (const char *filename)
 this is the function to call when we want to load an image More...
 
void  (tImageTGA *info)
var  ( var info)
local  ( local info)
void  (tImageTGA *info)
 releases the memory used for the image More...
 
var  ( var info)
 releases the memory used for the image More...
 
local  ( local info)
 releases the memory used for the image More...
 
CC_DLL const char *  ()
var  ()
local  ()
Vec2  (float x, float y)
 Helper macro that creates a Vec2. More...
 
var  ( var x, var y)
 Helper macro that creates a Vec2. More...
 
local  ( local x, local y)
 Helper macro that creates a Vec2. More...
 
Vec2  (float x, float y)
Size  (float width, float height)
Rect  (float x, float y, float width, float height)
void CC_DLL  (const char *pszFormat,...) CC_FORMAT_PRINTF(1
 use log() instead More...
 
void CC_DLL void CC_DLL  ()
void CC_DLL  ()
void CC_DLL  (const Vec2 &point)
var  ( var point)
local  ( local point)
void CC_DLL  (const Vec2 *points, unsigned int numberOfPoints)
var  ( var points, var numberOfPoints)
local  ( local points, local numberOfPoints)
void CC_DLL  (const Vec2 &origin, const Vec2 &destination)
void CC_DLL  (Vec2 origin, Vec2 destination)
local  ( local origin, local destination)
void CC_DLL  (Vec2 origin, Vec2 destination, Color4F color)
void CC_DLL  (const Vec2 *vertices, unsigned int numOfVertices, bool closePolygon)
void CC_DLL  (const Vec2 *poli, unsigned int numberOfPoints, Color4F color)
void CC_DLL  (const Vec2 &center, float radius, float angle, unsigned int segments, bool drawLineToCenter, float scaleX, float scaleY)
local  ( local center, local radius, local angle, local segments, local drawLineToCenter, local scaleX, local scaleY)
void CC_DLL  (const Vec2 &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 Vec2 &center, float radius, float angle, unsigned int segments, float scaleX, float scaleY)
void CC_DLL  (const Vec2 &center, float radius, float angle, unsigned int segments)
void CC_DLL  (const Vec2 &origin, const Vec2 &control, const Vec2 &destination, unsigned int segments)
void CC_DLL  (const Vec2 &origin, const Vec2 &control1, const Vec2 &control2, const Vec2 &destination, unsigned int segments)
void CC_DLL  (PointArray *arrayOfControlPoints, unsigned int segments)
void CC_DLL  (PointArray *config, float tension, unsigned int segments)
void CC_DLL  (GLubyte r, GLubyte g, GLubyte b, GLubyte a)
void CC_DLL  (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
void CC_DLL  (GLfloat pointSize)
void CC_DLL  ()
void CC_DLL  (GLuint program)
void CC_DLL  (GLuint program)
void CC_DLL  (GLenum sfactor, GLenum dfactor)
void CC_DLL  ()
void CC_DLL  ()
var  ()
local  ()
void CC_DLL  (unsigned int flags)
void CC_DLL  (GLuint textureId)
void CC_DLL  (GLuint textureUnit, GLuint textureId)
var  ( var textureUnit, var textureId)
local  ( local textureUnit, local textureId)
void CC_DLL  (GLuint textureId)
void CC_DLL  (GLuint textureUnit, GLuint textureId)
var  ( var textureUnit, var textureId)
local  ( local textureUnit, local textureId)
void CC_DLL  (GLuint vaoId)
void CC_DLL  (int flags)
void CC_DLL  (void)
void CC_DLL  (void)
void CC_DLL  (void)
void CC_DLL  (unsigned int mode)
void CC_DLL  (void)
void CC_DLL  (const Mat4 *pIn)
void CC_DLL  (const Mat4 *pIn)
void CC_DLL  (float x, float y, float z)
local  ( local x, local y, local z)
void CC_DLL  (float angle, float x, float y, float z)
void CC_DLL  (float x, float y, float z)
void CC_DLL  (unsigned int mode, Mat4 *pOut)
CC_DLL Mat4 (Mat4 *pOut, const float *pMat)
CC_DLL Mat4 (Mat4 *pOut, const Mat4 *pIn)
CC_DLL Mat4 (Mat4 *pOut)
CC_DLL Mat4 (Mat4 *pOut, const Mat4 *pM)
CC_DLL Mat4 (Mat4 *pOut, const Mat4 *pIn)
CC_DLL Mat4 (Mat4 *pOut, const Mat4 *pM1, const Mat4 *pM2)
CC_DLL Mat4 (Mat4 *pOut, const float x, const float y, const float z)
local  ( local pOut, local x, local y, local z)
CC_DLL Mat4 (Mat4 *pOut, const float radians)
CC_DLL Mat4 (Mat4 *pOut, const float radians)
CC_DLL Mat4 (Mat4 *pOut, const float radians)
CC_DLL Mat4 (Mat4 *pOut, const Vec3 *axis, float radians)
var  ( var pOut, var axis, var radians)
local  ( local pOut, local axis, local radians)
CC_DLL Mat4 (Mat4 *pOut, const float x, const float y, const float z)
CC_DLL Mat4 (Mat4 *pOut, float fovY, float aspect, float zNear, float zFar)
CC_DLL Mat4 (Mat4 *pOut, float left, float right, float bottom, float top, float nearVal, float farVal)
CC_DLL Mat4 (Mat4 *pOut, const Vec3 *pEye, const Vec3 *pCenter, const Vec3 *pUp)
CC_DLL Vec3 (Vec3 *pOut, float x, float y, float z)
CC_DLL float  (const Vec3 *pIn)
CC_DLL float  (const Vec3 *pIn)
CC_DLL Vec3 (Vec3 *pOut, const Vec3 *pV1, const Vec3 *pV2, float t)
var  ( var pOut, var pV1, var pV2, var t)
local  ( local pOut, local pV1, local pV2, local t)
CC_DLL Vec3 (Vec3 *pOut, const Vec3 *pIn)
CC_DLL Vec3 (Vec3 *pOut, const Vec3 *pV1, const Vec3 *pV2)
CC_DLL float  (const Vec3 *pV1, const Vec3 *pV2)
CC_DLL Vec3 (Vec3 *pOut, const Vec3 *pV1, const Vec3 *pV2)
CC_DLL Vec3 (Vec3 *pOut, const Vec3 *pV1, const Vec3 *pV2)
CC_DLL Vec3 (Vec3 *pOut, const Vec3 *pV1, const Mat4 *pM)
CC_DLL Vec3 (Vec3 *pOut, const Vec3 *pV, const Mat4 *pM)
CC_DLL Vec3 (Vec3 *pOut, const Vec3 *pV, const Mat4 *pM)
local  ( local pOut, local pV, local pM)
CC_DLL Vec3 (Vec3 *pOut, const Vec3 *pIn, const float s)
CC_DLL Vec3 (Vec3 *pOut, const Vec3 *pIn)
CC_DLL Vec3 (Vec3 *pOut)
CC_DLL Vec2 (Vec2 *pOut, float x, float y)
CC_DLL float  (const Vec2 *pIn)
CC_DLL float  (const Vec2 *pIn)
CC_DLL Vec2 (Vec2 *pOut, const Vec2 *pIn)
CC_DLL Vec2 (Vec2 *pOut, const Vec2 *pV1, const Vec2 *pV2, float t)
CC_DLL Vec2 (Vec2 *pOut, const Vec2 *pV1, const Vec2 *pV2)
CC_DLL float  (const Vec2 *pV1, const Vec2 *pV2)
CC_DLL Vec2 (Vec2 *pOut, const Vec2 *pV1, const Vec2 *pV2)
CC_DLL Vec2 (Vec2 *pOut, const Vec2 *pIn, const float s)
CC_DLL Vec2 (Vec2 *pOut, const Vec2 *pIn)
CC_DLL Vec4 (Vec4 *pOut, float x, float y, float z, float w)
CC_DLL Vec4 (Vec4 *pOut, const Vec4 *pV1, const Vec4 *pV2)
CC_DLL float  (const Vec4 *pV1, const Vec4 *pV2)
CC_DLL float  (const Vec4 *pIn)
CC_DLL float  (const Vec4 *pIn)
CC_DLL Vec4 (Vec4 *pOut, const Vec4 *pV1, const Vec4 *pV2, float t)
CC_DLL Vec4 (Vec4 *pOut, const Vec4 *pIn)
CC_DLL Vec4 (Vec4 *pOut, const Vec4 *pIn, const float s)
CC_DLL Vec4 (Vec4 *pOut, const Vec4 *pV1, const Vec4 *pV2)
CC_DLL Vec4 (Vec4 *pOut, const Vec4 *pIn)
CC_DLL Vec4 (Vec4 *pOut, const Vec4 *pV, const Mat4 *pM)
var  ( var pOut, var pV, var pM)
local  ( local pOut, local pV, local pM)
CC_DLL Vec4 (Vec4 *pOut, const Vec4 *pV, const Mat4 *pM)
CC_DLL AffineTransform  (float a, float b, float c, float d, float tx, float ty)
CC_DLL Vec2  (const Vec2 &point, const AffineTransform &t)
CC_DLL Size  (const Size &size, const AffineTransform &t)
CC_DLL AffineTransform  ()
CC_DLL Rect  (const Rect &rect, const AffineTransform &anAffineTransform)
CC_DLL Rect  (const Rect &rect, const Mat4 &transform)
CC_DLL Vec2  (const Vec2 &point, const Mat4 &transform)
CC_DLL AffineTransform  (const AffineTransform &t, float tx, float ty)
CC_DLL AffineTransform  (const AffineTransform &aTransform, float anAngle)
CC_DLL AffineTransform  (const AffineTransform &t, float sx, float sy)
CC_DLL AffineTransform  (const AffineTransform &t1, const AffineTransform &t2)
CC_DLL bool  (const AffineTransform &t1, const AffineTransform &t2)
CC_DLL AffineTransform  (const AffineTransform &t)
Mat4  (const Mat4 &t1, const Mat4 &t2)
void CC_DLL  (Vec2 *points, float stroke, Vec2 *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 AffineTransform &t, GLfloat *m)
void  (const GLfloat *m, AffineTransform *t)
var  ( var m, var t)
local  ( local m, local t)
const PhysicsMaterial  (0.1f, 0.5f, 0.5f)
const PhysicsMaterial  (0.0f, 0.5f, 0.5f)
void CC_DLL  (const char *format)
 lua can not deal with ... More...
 
local  ( local format)
 lua can not deal with ... More...
 
void CC_DLL  (const char *msg, const char *title)
 Pop out a message box. More...
 
var  ( var msg, var title)
 Pop out a message box. More...
 
local  ( local msg, local title)
 Pop out a message box. More...
 
int CC_DLL  (struct timeval *, struct timezone *)
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)
float  (float dips)
float  (float v)
Concurrency::task
< Platform::Array< byte >^> 
(Platform::String^path)
void CC_DLL  ()
std::string CC_DLL  ()

Variables

std::string s_attributeNames []
var s_attributeNames ()
local s_attributeNames ()
const std::string STD_STRING_EMPTY
var STD_STRING_EMPTY
local STD_STRING_EMPTY
bool kProfilerCategorySprite
var kProfilerCategorySprite
local kProfilerCategorySprite
bool kProfilerCategoryBatchSprite
var kProfilerCategoryBatchSprite
local kProfilerCategoryBatchSprite
bool kProfilerCategoryParticles
var kProfilerCategoryParticles
local kProfilerCategoryParticles
const ssize_t CC_INVALID_INDEX
const ValueVector ValueVectorNull
const ValueMap ValueMapNull
var ValueMapNull
local ValueMapNull
const ValueMapIntKey ValueMapIntKeyNull
var ValueMapIntKeyNull
local ValueMapIntKeyNull
const Vec2 CCPointZero
const Size CCSizeZero
const Rect CCRectZero
const Color3B ccWHITE
const Color3B ccYELLOW
const Color3B ccGREEN
const Color3B ccBLUE
const Color3B ccRED
const Color3B ccMAGENTA
const Color3B ccBLACK
const Color3B ccORANGE
const Color3B ccGRAY
const BlendFunc kCCBlendFuncDisable
var kCCBlendFuncDisable
local kCCBlendFuncDisable
const int kCCVertexAttrib_Position = GLProgram::VERTEX_ATTRIB_POSITION
const int kCCVertexAttrib_Color = GLProgram::VERTEX_ATTRIB_COLOR
const int kCCVertexAttrib_TexCoords = GLProgram::VERTEX_ATTRIB_TEX_COORD
var kCCVertexAttrib_TexCoords = GLProgram::VERTEX_ATTRIB_TEX_COORD
local kCCVertexAttrib_TexCoords = GLProgram::VERTEX_ATTRIB_TEX_COORD
const int kCCVertexAttrib_MAX = GLProgram::VERTEX_ATTRIB_MAX
const int kCCUniformPMatrix = GLProgram::UNIFORM_P_MATRIX
var kCCUniformPMatrix = GLProgram::UNIFORM_P_MATRIX
local kCCUniformPMatrix = GLProgram::UNIFORM_P_MATRIX
const int kCCUniformMVMatrix = GLProgram::UNIFORM_MV_MATRIX
const int kCCUniformMVPMatrix = GLProgram::UNIFORM_MVP_MATRIX
const int kCCUniformTime = GLProgram::UNIFORM_TIME
const int kCCUniformSinTime = GLProgram::UNIFORM_SIN_TIME
const int kCCUniformCosTime = GLProgram::UNIFORM_COS_TIME
const int kCCUniformRandom01 = GLProgram::UNIFORM_RANDOM01
const int kCCUniformSampler = GLProgram::UNIFORM_SAMPLER0
const int kCCUniform_MAX = GLProgram::UNIFORM_MAX
const char * kCCShader_PositionTextureColor
var kCCShader_PositionTextureColor
local kCCShader_PositionTextureColor
const char * kCCShader_PositionTextureColorAlphaTest
const char * kCCShader_PositionColor
var kCCShader_PositionColor
local kCCShader_PositionColor
const char * kCCShader_PositionTexture
var kCCShader_PositionTexture
local kCCShader_PositionTexture
const char * kCCShader_PositionTexture_uColor
var kCCShader_PositionTexture_uColor
local kCCShader_PositionTexture_uColor
const char * kCCShader_PositionTextureA8Color
var kCCShader_PositionTextureA8Color
local kCCShader_PositionTextureA8Color
const char * kCCShader_Position_uColor
const char * kCCShader_PositionLengthTexureColor
var kCCShader_PositionLengthTexureColor
local kCCShader_PositionLengthTexureColor
const char * kCCUniformPMatrix_s
const char * kCCUniformMVMatrix_s
var kCCUniformMVMatrix_s
local kCCUniformMVMatrix_s
const char * kCCUniformMVPMatrix_s
var kCCUniformMVPMatrix_s
local kCCUniformMVPMatrix_s
const char * kCCUniformTime_s
const char * kCCUniformSinTime_s
var kCCUniformSinTime_s
local kCCUniformSinTime_s
const char * kCCUniformCosTime_s
var kCCUniformCosTime_s
local kCCUniformCosTime_s
const char * kCCUniformRandom01_s
var kCCUniformRandom01_s
local kCCUniformRandom01_s
const char * kCCUniformSampler_s
const char * kCCUniformAlphaTestValue
var kCCUniformAlphaTestValue
local kCCUniformAlphaTestValue
const char * kCCAttributeNameColor
var kCCAttributeNameColor
local kCCAttributeNameColor
const char * kCCAttributeNamePosition
var kCCAttributeNamePosition
local kCCAttributeNamePosition
const char * kCCAttributeNameTexCoord
var kCCAttributeNameTexCoord
local kCCAttributeNameTexCoord
const int kCCVertexAttribFlag_None = GL::VERTEX_ATTRIB_FLAG_NONE
var kCCVertexAttribFlag_None = GL::VERTEX_ATTRIB_FLAG_NONE
local kCCVertexAttribFlag_None = GL::VERTEX_ATTRIB_FLAG_NONE
const int kCCVertexAttribFlag_Position = GL::VERTEX_ATTRIB_FLAG_POSITION
var kCCVertexAttribFlag_Position = GL::VERTEX_ATTRIB_FLAG_POSITION
local kCCVertexAttribFlag_Position = GL::VERTEX_ATTRIB_FLAG_POSITION
const int kCCVertexAttribFlag_Color = GL::VERTEX_ATTRIB_FLAG_COLOR
var kCCVertexAttribFlag_Color = GL::VERTEX_ATTRIB_FLAG_COLOR
local kCCVertexAttribFlag_Color = GL::VERTEX_ATTRIB_FLAG_COLOR
const int kCCVertexAttribFlag_TexCoords = GL::VERTEX_ATTRIB_FLAG_TEX_COORD
var kCCVertexAttribFlag_TexCoords = GL::VERTEX_ATTRIB_FLAG_TEX_COORD
local kCCVertexAttribFlag_TexCoords = GL::VERTEX_ATTRIB_FLAG_TEX_COORD
const int kCCVertexAttribFlag_PosColorTex = GL::VERTEX_ATTRIB_FLAG_POS_COLOR_TEX
var kCCVertexAttribFlag_PosColorTex = GL::VERTEX_ATTRIB_FLAG_POS_COLOR_TEX
local kCCVertexAttribFlag_PosColorTex = GL::VERTEX_ATTRIB_FLAG_POS_COLOR_TEX
const ProgressTimer::Type kCCProgressTimerTypeRadial = ProgressTimer::Type::RADIAL
const ProgressTimer::Type kCCProgressTimerTypeBar = ProgressTimer::Type::BAR
local kCCProgressTimerTypeBar = ProgressTimer::Type::BAR
const Director::Projection kCCDirectorProjection2D = Director::Projection::_2D
const Director::Projection kCCDirectorProjection3D = Director::Projection::_3D
const Director::Projection kCCDirectorProjectionCustom = Director::Projection::CUSTOM
const Director::Projection kCCDirectorProjectionDefault = Director::Projection::DEFAULT
var kCCDirectorProjectionDefault = Director::Projection::DEFAULT
local kCCDirectorProjectionDefault = Director::Projection::DEFAULT
const TextVAlignment kCCVerticalTextAlignmentTop = TextVAlignment::TOP
var kCCVerticalTextAlignmentTop = TextVAlignment::TOP
local kCCVerticalTextAlignmentTop = TextVAlignment::TOP
const TextVAlignment kCCVerticalTextAlignmentCenter = TextVAlignment::CENTER
var kCCVerticalTextAlignmentCenter = TextVAlignment::CENTER
local kCCVerticalTextAlignmentCenter = TextVAlignment::CENTER
const TextVAlignment kCCVerticalTextAlignmentBottom = TextVAlignment::BOTTOM
var kCCVerticalTextAlignmentBottom = TextVAlignment::BOTTOM
local kCCVerticalTextAlignmentBottom = TextVAlignment::BOTTOM
const TextHAlignment kCCTextAlignmentLeft = TextHAlignment::LEFT
var kCCTextAlignmentLeft = TextHAlignment::LEFT
local kCCTextAlignmentLeft = TextHAlignment::LEFT
const TextHAlignment kCCTextAlignmentCenter = TextHAlignment::CENTER
var kCCTextAlignmentCenter = TextHAlignment::CENTER
local kCCTextAlignmentCenter = TextHAlignment::CENTER
const TextHAlignment kCCTextAlignmentRight = TextHAlignment::RIGHT
var kCCTextAlignmentRight = TextHAlignment::RIGHT
local kCCTextAlignmentRight = TextHAlignment::RIGHT
const Texture2D::PixelFormat kCCTexture2DPixelFormat_RGBA8888 = Texture2D::PixelFormat::RGBA8888
const Texture2D::PixelFormat kCCTexture2DPixelFormat_RGB888 = Texture2D::PixelFormat::RGB888
const Texture2D::PixelFormat kCCTexture2DPixelFormat_RGB565 = Texture2D::PixelFormat::RGB565
var kCCTexture2DPixelFormat_RGB565 = Texture2D::PixelFormat::RGB565
local kCCTexture2DPixelFormat_RGB565 = Texture2D::PixelFormat::RGB565
const Texture2D::PixelFormat kCCTexture2DPixelFormat_A8 = Texture2D::PixelFormat::A8
var kCCTexture2DPixelFormat_A8 = Texture2D::PixelFormat::A8
local kCCTexture2DPixelFormat_A8 = Texture2D::PixelFormat::A8
const Texture2D::PixelFormat kCCTexture2DPixelFormat_I8 = Texture2D::PixelFormat::I8
var kCCTexture2DPixelFormat_I8 = Texture2D::PixelFormat::I8
local kCCTexture2DPixelFormat_I8 = Texture2D::PixelFormat::I8
const Texture2D::PixelFormat kCCTexture2DPixelFormat_AI88 = Texture2D::PixelFormat::AI88
var kCCTexture2DPixelFormat_AI88 = Texture2D::PixelFormat::AI88
local kCCTexture2DPixelFormat_AI88 = Texture2D::PixelFormat::AI88
const Texture2D::PixelFormat kCCTexture2DPixelFormat_RGBA4444 = Texture2D::PixelFormat::RGBA4444
const Texture2D::PixelFormat kCCTexture2DPixelFormat_RGB5A1 = Texture2D::PixelFormat::RGB5A1
var kCCTexture2DPixelFormat_RGB5A1 = Texture2D::PixelFormat::RGB5A1
local kCCTexture2DPixelFormat_RGB5A1 = Texture2D::PixelFormat::RGB5A1
const Texture2D::PixelFormat kCCTexture2DPixelFormat_PVRTC4 = Texture2D::PixelFormat::PVRTC4
const Texture2D::PixelFormat kCCTexture2DPixelFormat_PVRTC2 = Texture2D::PixelFormat::PVRTC2
var kCCTexture2DPixelFormat_PVRTC2 = Texture2D::PixelFormat::PVRTC2
local kCCTexture2DPixelFormat_PVRTC2 = Texture2D::PixelFormat::PVRTC2
const Texture2D::PixelFormat kCCTexture2DPixelFormat_Default = Texture2D::PixelFormat::DEFAULT
var kCCTexture2DPixelFormat_Default = Texture2D::PixelFormat::DEFAULT
local kCCTexture2DPixelFormat_Default = Texture2D::PixelFormat::DEFAULT
const int kCCParticleDurationInfinity = ParticleSystem::DURATION_INFINITY
const int kCCParticleStartSizeEqualToEndSize = ParticleSystem::START_SIZE_EQUAL_TO_END_SIZE
var kCCParticleStartSizeEqualToEndSize = ParticleSystem::START_SIZE_EQUAL_TO_END_SIZE
local kCCParticleStartSizeEqualToEndSize = ParticleSystem::START_SIZE_EQUAL_TO_END_SIZE
const int kCCParticleStartRadiusEqualToEndRadius = ParticleSystem::START_RADIUS_EQUAL_TO_END_RADIUS
var kCCParticleStartRadiusEqualToEndRadius = ParticleSystem::START_RADIUS_EQUAL_TO_END_RADIUS
local kCCParticleStartRadiusEqualToEndRadius = ParticleSystem::START_RADIUS_EQUAL_TO_END_RADIUS
const int kParticleDurationInfinity = ParticleSystem::DURATION_INFINITY
var kParticleDurationInfinity = ParticleSystem::DURATION_INFINITY
local kParticleDurationInfinity = ParticleSystem::DURATION_INFINITY
const int kParticleStartSizeEqualToEndSize = ParticleSystem::START_SIZE_EQUAL_TO_END_SIZE
var kParticleStartSizeEqualToEndSize = ParticleSystem::START_SIZE_EQUAL_TO_END_SIZE
local kParticleStartSizeEqualToEndSize = ParticleSystem::START_SIZE_EQUAL_TO_END_SIZE
const int kParticleStartRadiusEqualToEndRadius = ParticleSystem::START_RADIUS_EQUAL_TO_END_RADIUS
local kParticleStartRadiusEqualToEndRadius = ParticleSystem::START_RADIUS_EQUAL_TO_END_RADIUS
const ParticleSystem::Mode kCCParticleModeGravity = ParticleSystem::Mode::GRAVITY
local kCCParticleModeGravity = ParticleSystem::Mode::GRAVITY
const ParticleSystem::Mode kCCParticleModeRadius = ParticleSystem::Mode::RADIUS
var kCCParticleModeRadius = ParticleSystem::Mode::RADIUS
const int kCCParticleDefaultCapacity = kParticleDefaultCapacity
var kCCParticleDefaultCapacity = kParticleDefaultCapacity
local kCCParticleDefaultCapacity = kParticleDefaultCapacity
const ParticleSystem::PositionType kCCPositionTypeFree = ParticleSystem::PositionType::FREE
const ParticleSystem::PositionType kCCPositionTypeRelative = ParticleSystem::PositionType::RELATIVE
const ParticleSystem::PositionType kCCPositionTypeGrouped = ParticleSystem::PositionType::GROUPED
const Menu::State kCCMenuStateWaiting = Menu::State::WAITING
var kCCMenuStateWaiting = Menu::State::WAITING
local kCCMenuStateWaiting = Menu::State::WAITING
const Menu::State kCCMenuStateTrackingTouch = Menu::State::TRACKING_TOUCH
var kCCMenuStateTrackingTouch = Menu::State::TRACKING_TOUCH
local kCCMenuStateTrackingTouch = Menu::State::TRACKING_TOUCH
const Touch::DispatchMode kCCTouchesOneByOne = Touch::DispatchMode::ONE_BY_ONE
var kCCTouchesOneByOne = Touch::DispatchMode::ONE_BY_ONE
local kCCTouchesOneByOne = Touch::DispatchMode::ONE_BY_ONE
const Touch::DispatchMode kCCTouchesAllAtOnce = Touch::DispatchMode::ALL_AT_ONCE
var kCCTouchesAllAtOnce = Touch::DispatchMode::ALL_AT_ONCE
local kCCTouchesAllAtOnce = Touch::DispatchMode::ALL_AT_ONCE
const Image::Format kCCImageFormatPNG = Image::Format::PNG
const Image::Format kCCImageFormatJPEG = Image::Format::JPG
var kCCImageFormatJPEG = Image::Format::JPG
local kCCImageFormatJPEG = Image::Format::JPG
const TransitionScene::Orientation kCCTransitionOrientationLeftOver = TransitionScene::Orientation::LEFT_OVER
const TransitionScene::Orientation kCCTransitionOrientationRightOver = TransitionScene::Orientation::RIGHT_OVER
const TransitionScene::Orientation kCCTransitionOrientationUpOver = TransitionScene::Orientation::UP_OVER
const TransitionScene::Orientation kCCTransitionOrientationDownOver = TransitionScene::Orientation::DOWN_OVER
const int kCCPrioritySystem = Scheduler::PRIORITY_SYSTEM
const int kCCPriorityNonSystemMin = Scheduler::PRIORITY_NON_SYSTEM_MIN
var kCCPriorityNonSystemMin = Scheduler::PRIORITY_NON_SYSTEM_MIN
local kCCPriorityNonSystemMin = Scheduler::PRIORITY_NON_SYSTEM_MIN
const int kCCActionTagInvalid = Action::INVALID_TAG
const int kCCNodeTagInvalid = Node::INVALID_TAG
var kCCNodeTagInvalid = Node::INVALID_TAG
local kCCNodeTagInvalid = Node::INVALID_TAG
const int kCCNodeOnEnter = kNodeOnEnter
const int kCCNodeOnExit = kNodeOnExit
const int kCCNodeOnEnterTransitionDidFinish = kNodeOnEnterTransitionDidFinish
var kCCNodeOnEnterTransitionDidFinish = kNodeOnEnterTransitionDidFinish
local kCCNodeOnEnterTransitionDidFinish = kNodeOnEnterTransitionDidFinish
const int kCCNodeOnExitTransitionDidStart = kNodeOnExitTransitionDidStart
var kCCNodeOnExitTransitionDidStart = kNodeOnExitTransitionDidStart
local kCCNodeOnExitTransitionDidStart = kNodeOnExitTransitionDidStart
const int kCCNodeOnCleanup = kNodeOnCleanup
const LanguageType kLanguageEnglish = LanguageType::ENGLISH
var kLanguageEnglish = LanguageType::ENGLISH
local kLanguageEnglish = LanguageType::ENGLISH
const LanguageType kLanguageChinese = LanguageType::CHINESE
var kLanguageChinese = LanguageType::CHINESE
local kLanguageChinese = LanguageType::CHINESE
const LanguageType kLanguageFrench = LanguageType::FRENCH
var kLanguageFrench = LanguageType::FRENCH
local kLanguageFrench = LanguageType::FRENCH
const LanguageType kLanguageItalian = LanguageType::ITALIAN
var kLanguageItalian = LanguageType::ITALIAN
local kLanguageItalian = LanguageType::ITALIAN
const LanguageType kLanguageGerman = LanguageType::GERMAN
var kLanguageGerman = LanguageType::GERMAN
local kLanguageGerman = LanguageType::GERMAN
const LanguageType kLanguageSpanish = LanguageType::SPANISH
var kLanguageSpanish = LanguageType::SPANISH
local kLanguageSpanish = LanguageType::SPANISH
const LanguageType kLanguageRussian = LanguageType::RUSSIAN
const LanguageType kLanguageKorean = LanguageType::KOREAN
var kLanguageKorean = LanguageType::KOREAN
local kLanguageKorean = LanguageType::KOREAN
const LanguageType kLanguageJapanese = LanguageType::JAPANESE
var kLanguageJapanese = LanguageType::JAPANESE
local kLanguageJapanese = LanguageType::JAPANESE
const LanguageType kLanguageHungarian = LanguageType::HUNGARIAN
const LanguageType kLanguagePortuguese = LanguageType::PORTUGUESE
var kLanguagePortuguese = LanguageType::PORTUGUESE
local kLanguagePortuguese = LanguageType::PORTUGUESE
const LanguageType kLanguageArabic = LanguageType::ARABIC
const LanguageType kLanguageNorwegian = LanguageType::NORWEGIAN
var kLanguageNorwegian = LanguageType::NORWEGIAN
local kLanguageNorwegian = LanguageType::NORWEGIAN
const LanguageType kLanguagePolish = LanguageType::POLISH
var kLanguagePolish = LanguageType::POLISH
local kLanguagePolish = LanguageType::POLISH
const Application::Platform kTargetWindows = Application::Platform::OS_WINDOWS
var kTargetWindows = Application::Platform::OS_WINDOWS
local kTargetWindows = Application::Platform::OS_WINDOWS
const Application::Platform kTargetLinux = Application::Platform::OS_LINUX
const Application::Platform kTargetMacOS = Application::Platform::OS_MAC
var kTargetMacOS = Application::Platform::OS_MAC
local kTargetMacOS = Application::Platform::OS_MAC
const Application::Platform kTargetAndroid = Application::Platform::OS_ANDROID
var kTargetAndroid = Application::Platform::OS_ANDROID
local kTargetAndroid = Application::Platform::OS_ANDROID
const Application::Platform kTargetIphone = Application::Platform::OS_IPHONE
var kTargetIphone = Application::Platform::OS_IPHONE
local kTargetIphone = Application::Platform::OS_IPHONE
const Application::Platform kTargetIpad = Application::Platform::OS_IPAD
var kTargetIpad = Application::Platform::OS_IPAD
local kTargetIpad = Application::Platform::OS_IPAD
const Application::Platform kTargetBlackBerry = Application::Platform::OS_BLACKBERRY
var kTargetBlackBerry = Application::Platform::OS_BLACKBERRY
local kTargetBlackBerry = Application::Platform::OS_BLACKBERRY
const Application::Platform kTargetNaCl = Application::Platform::OS_NACL
var kTargetNaCl = Application::Platform::OS_NACL
local kTargetNaCl = Application::Platform::OS_NACL
const Application::Platform kTargetEmscripten = Application::Platform::OS_EMSCRIPTEN
var kTargetEmscripten = Application::Platform::OS_EMSCRIPTEN
local kTargetEmscripten = Application::Platform::OS_EMSCRIPTEN
const Application::Platform kTargetTizen = Application::Platform::OS_TIZEN
var kTargetTizen = Application::Platform::OS_TIZEN
local kTargetTizen = Application::Platform::OS_TIZEN
const Application::Platform kTargetWinRT = Application::Platform::OS_WINRT
var kTargetWinRT = Application::Platform::OS_WINRT
local kTargetWinRT = Application::Platform::OS_WINRT
const Application::Platform kTargetWP8 = Application::Platform::OS_WP8
var kTargetWP8 = Application::Platform::OS_WP8
local kTargetWP8 = Application::Platform::OS_WP8
const ResolutionPolicy kResolutionExactFit = ResolutionPolicy::EXACT_FIT
var kResolutionExactFit = ResolutionPolicy::EXACT_FIT
local kResolutionExactFit = ResolutionPolicy::EXACT_FIT
const ResolutionPolicy kResolutionNoBorder = ResolutionPolicy::NO_BORDER
var kResolutionNoBorder = ResolutionPolicy::NO_BORDER
local kResolutionNoBorder = ResolutionPolicy::NO_BORDER
const ResolutionPolicy kResolutionShowAll = ResolutionPolicy::SHOW_ALL
var kResolutionShowAll = ResolutionPolicy::SHOW_ALL
local kResolutionShowAll = ResolutionPolicy::SHOW_ALL
const ResolutionPolicy kResolutionFixedHeight = ResolutionPolicy::FIXED_HEIGHT
var kResolutionFixedHeight = ResolutionPolicy::FIXED_HEIGHT
local kResolutionFixedHeight = ResolutionPolicy::FIXED_HEIGHT
const ResolutionPolicy kResolutionFixedWidth = ResolutionPolicy::FIXED_WIDTH
var kResolutionFixedWidth = ResolutionPolicy::FIXED_WIDTH
local kResolutionFixedWidth = ResolutionPolicy::FIXED_WIDTH
const ResolutionPolicy kResolutionUnKnown = ResolutionPolicy::UNKNOWN
var kResolutionUnKnown = ResolutionPolicy::UNKNOWN
local kResolutionUnKnown = ResolutionPolicy::UNKNOWN
const unsigned int KM_GL_MODELVIEW = 0x1700
const unsigned int KM_GL_PROJECTION = 0x1701
const unsigned int KM_GL_TEXTURE = 0x1702
var KM_GL_TEXTURE = 0x1702
local KM_GL_TEXTURE = 0x1702
const Vec3 KM_VEC3_NEG_Z
const Vec3 KM_VEC3_POS_Z
const Vec3 KM_VEC3_POS_Y
const Vec3 KM_VEC3_NEG_Y
const Vec3 KM_VEC3_NEG_X
const Vec3 KM_VEC3_POS_X
const Vec3 KM_VEC3_ZERO
const Vec2 KM_VEC2_POS_Y
const Vec2 KM_VEC2_NEG_Y
const Vec2 KM_VEC2_NEG_X
const Vec2 KM_VEC2_POS_X
const Vec2 KM_VEC2_ZERO
CC_DLL const AffineTransform AffineTransformIdentity
const float PHYSICS_INFINITY
CC_DLL const GLcharccPosition_uColor_frag
var ccPosition_uColor_frag
local ccPosition_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
var ccPositionTextureA8Color_frag
local ccPositionTextureA8Color_frag
CC_DLL const GLcharccPositionTextureA8Color_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 GLcharccPositionTextureColor_noMVP_frag
var ccPositionTextureColor_noMVP_frag
local ccPositionTextureColor_noMVP_frag
CC_DLL const GLcharccPositionTextureColor_noMVP_vert
var ccPositionTextureColor_noMVP_vert
local ccPositionTextureColor_noMVP_vert
CC_DLL const GLcharccPositionTextureColorAlphaTest_frag
var ccPositionTextureColorAlphaTest_frag
local ccPositionTextureColorAlphaTest_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
var ccPositionColorLengthTexture_frag
local ccPositionColorLengthTexture_frag
CC_DLL const GLcharccPositionColorLengthTexture_vert
var ccPositionColorLengthTexture_vert
local ccPositionColorLengthTexture_vert
CC_DLL const GLcharccLabelDistanceFieldNormal_frag
var ccLabelDistanceFieldNormal_frag
local ccLabelDistanceFieldNormal_frag
CC_DLL const GLcharccLabelDistanceFieldGlow_frag
var ccLabelDistanceFieldGlow_frag
local ccLabelDistanceFieldGlow_frag
CC_DLL const GLcharccLabelNormal_frag
var ccLabelNormal_frag
local ccLabelNormal_frag
CC_DLL const GLcharccLabelOutline_frag
var ccLabelOutline_frag
local ccLabelOutline_frag
CC_DLL const GLcharccLabel_vert
var ccLabel_vert
local ccLabel_vert
CC_DLL const GLcharcc3D_PositionTex_vert
var cc3D_PositionTex_vert
local cc3D_PositionTex_vert
CC_DLL const GLcharcc3D_SkinPositionTex_vert
var cc3D_SkinPositionTex_vert
local cc3D_SkinPositionTex_vert
CC_DLL const GLcharcc3D_ColorTex_frag
var cc3D_ColorTex_frag
local cc3D_ColorTex_frag
CC_DLL const GLcharcc3D_Color_frag
var cc3D_Color_frag
local cc3D_Color_frag

Detailed Description

Add deprecated global functions and variables here.

Typedef Documentation

typedef std::function<void(Ref*)>
ccMenuCallback
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 std::list<LuaValue>
LuaValueArray
typedef
LuaValueArray::const_iterator
LuaValueArrayIterator
typedef std::map<std::string,
LuaValue> LuaValueDict
local LuaValueDict
typedef
LuaValueDict::const_iterator
LuaValueDictIterator
typedef struct _MipmapInfo
MipmapInfo
local MipmapInfo
typedef std::function<bool(PhysicsWorld&,
PhysicsShape&, void*)>
PhysicsQueryRectCallbackFunc
typedef std::function<bool(PhysicsWorld&
world, const
PhysicsRayCastInfo& info, void*
data)>
PhysicsRayCastCallbackFunc

Called for each fixture found in the query.

You control how the ray cast proceeds by returning a float: return true: continue return false: terminate the ray cast

Parameters
fixturethe fixture hit by the ray
pointthe point of initial intersection
normalthe normal vector at the point of intersection
Returns
true to continue, false to terminate

Called for each fixture found in the query.

You control how the ray cast proceeds by returning a float: return true: continue return false: terminate the ray cast

Parameters
fixturethe fixture hit by the ray
pointthe point of initial intersection
normalthe normal vector at the point of intersection
Returns
true to continue, false to terminate

Called for each fixture found in the query.

You control how the ray cast proceeds by returning a float: return true: continue return false: terminate the ray cast

Parameters
fixturethe fixture hit by the ray
pointthe point of initial intersection
normalthe normal vector at the point of intersection
Returns
true to continue, false to terminate
typedef int pthread_cond_t
typedef HANDLE pthread_mutex_t
typedef HANDLE pthread_t
var pthread_t
local pthread_t
typedef std::unordered_map
<std::string, Value> ValueMap
var ValueMap
local ValueMap
typedef std::unordered_map<int,
Value> ValueMapIntKey
typedef std::vector<Value>
ValueVector
local ValueVector
typedef std::vector
<ScheduleHandlerDelegate*>
VecShedule
local VecShedule
typedef Vec2 Vect
var Vect
local Vect

Enumeration Type Documentation

anonymous enum
Enumerator
TGA_OK 
TGA_ERROR_FILE_OPEN 
TGA_ERROR_READING_FILE 
TGA_ERROR_INDEXED_COLOR 
TGA_ERROR_MEMORY 
TGA_ERROR_COMPRESSED_FILE 
var enum
Enumerator
TGA_OK 
TGA_ERROR_FILE_OPEN 
TGA_ERROR_READING_FILE 
TGA_ERROR_INDEXED_COLOR 
TGA_ERROR_MEMORY 
TGA_ERROR_COMPRESSED_FILE 
local enum
Enumerator
TGA_OK 
TGA_ERROR_FILE_OPEN 
TGA_ERROR_READING_FILE 
TGA_ERROR_INDEXED_COLOR 
TGA_ERROR_MEMORY 
TGA_ERROR_COMPRESSED_FILE 
anonymous enum
Enumerator
CCZ_COMPRESSION_ZLIB 
CCZ_COMPRESSION_BZIP2 
CCZ_COMPRESSION_GZIP 
CCZ_COMPRESSION_NONE 
var enum
Enumerator
CCZ_COMPRESSION_ZLIB 
CCZ_COMPRESSION_BZIP2 
CCZ_COMPRESSION_GZIP 
CCZ_COMPRESSION_NONE 
local enum
Enumerator
CCZ_COMPRESSION_ZLIB 
CCZ_COMPRESSION_BZIP2 
CCZ_COMPRESSION_GZIP 
CCZ_COMPRESSION_NONE 
anonymous enum
Enumerator
kComponentOnEnter 
kComponentOnExit 
kComponentOnUpdate 
var enum
Enumerator
kComponentOnEnter 
kComponentOnExit 
kComponentOnUpdate 
local enum
Enumerator
kComponentOnEnter 
kComponentOnExit 
kComponentOnUpdate 
enum EvaluateType
strong
Enumerator
LINEAR 
NEAR 
QUAT_SLERP 
USER_FUNCTION 
var EvaluateType
strong
Enumerator
LINEAR 
NEAR 
QUAT_SLERP 
USER_FUNCTION 
local EvaluateType
strong
Enumerator
LINEAR 
NEAR 
QUAT_SLERP 
USER_FUNCTION 
enum GlyphCollection
strong
Enumerator
DYNAMIC 
NEHE 
ASCII 
CUSTOM 
var GlyphCollection
strong
Enumerator
DYNAMIC 
NEHE 
ASCII 
CUSTOM 
local GlyphCollection
strong
Enumerator
DYNAMIC 
NEHE 
ASCII 
CUSTOM 
enum LabelEffect
strong
Enumerator
NORMAL 
OUTLINE 
SHADOW 
GLOW 
var LabelEffect
strong
Enumerator
NORMAL 
OUTLINE 
SHADOW 
GLOW 
local LabelEffect
strong
Enumerator
NORMAL 
OUTLINE 
SHADOW 
GLOW 
Enumerator
kLuaBridgeErrorOk 
kLuaBridgeErrorInvalidParameters 
kLuaBridgeErrorClassNotFound 
kLuaBridgeErrorMethodNotFound 
kLuaBridgeErrorExceptionOccurred 
kLuaBridgeErrorMethodSignature 
kLuaBridgeErrorJavaVMError 
Enumerator
kLuaBridgeErrorOk 
kLuaBridgeErrorInvalidParameters 
kLuaBridgeErrorClassNotFound 
kLuaBridgeErrorMethodNotFound 
kLuaBridgeErrorExceptionOccurred 
kLuaBridgeErrorMethodSignature 
kLuaBridgeErrorJavaVMError 
Enumerator
kLuaBridgeErrorOk 
kLuaBridgeErrorInvalidParameters 
kLuaBridgeErrorClassNotFound 
kLuaBridgeErrorMethodNotFound 
kLuaBridgeErrorExceptionOccurred 
kLuaBridgeErrorMethodSignature 
kLuaBridgeErrorJavaVMError 
Enumerator
LuaValueTypeInt 
LuaValueTypeFloat 
LuaValueTypeBoolean 
LuaValueTypeString 
LuaValueTypeDict 
LuaValueTypeArray 
LuaValueTypeObject 
Enumerator
LuaValueTypeInt 
LuaValueTypeFloat 
LuaValueTypeBoolean 
LuaValueTypeString 
LuaValueTypeDict 
LuaValueTypeArray 
LuaValueTypeObject 
local LuaValueType
Enumerator
LuaValueTypeInt 
LuaValueTypeFloat 
LuaValueTypeBoolean 
LuaValueTypeString 
LuaValueTypeDict 
LuaValueTypeArray 
LuaValueTypeObject 
Enumerator
PointerPressed 
PointerMoved 
PointerReleased 
Enumerator
PointerPressed 
PointerMoved 
PointerReleased 
Enumerator
PointerPressed 
PointerMoved 
PointerReleased 
enum TextHAlignment
strong

Horizontal text alignment type.

Enumerator
LEFT 
CENTER 
RIGHT 
var TextHAlignment
strong

Horizontal text alignment type.

Enumerator
LEFT 
CENTER 
RIGHT 
local TextHAlignment
strong

Horizontal text alignment type.

Enumerator
LEFT 
CENTER 
RIGHT 
enum TextVAlignment
strong

Vertical text alignment type.

Enumerator
TOP 
CENTER 
BOTTOM 
var TextVAlignment
strong

Vertical text alignment type.

Enumerator
TOP 
CENTER 
BOTTOM 
local TextVAlignment
strong

Vertical text alignment type.

Enumerator
TOP 
CENTER 
BOTTOM 

Function Documentation

void cocos2d::CGAffineToGL ( const AffineTransform &  t,
GLfloat *  m 
)
var CGAffineToGL ( var  t,
var  m 
)
local CGAffineToGL ( local  t,
local  m 
)
void cocos2d::GLToCGAffine ( const GLfloat *  m,
AffineTransform *  t 
)
var GLToCGAffine ( var  m,
var  t 
)
local GLToCGAffine ( local  m,
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 AffineTransform
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 
)
std::string
cocos2d::PlatformStringToString
( Platform::String^  s)
var PlatformStringToString ( var  s)
local PlatformStringToString ( local  s)
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 Vec2
cocos2d::__CCPointApplyAffineTransform
( const Vec2 point,
const AffineTransform &  t 
)
var __CCPointApplyAffineTransform ( var  point,
var  t 
)
local __CCPointApplyAffineTransform ( local  point,
local  t 
)
int cocos2d::pthread_mutex_lock ( pthread_mutex_t *  m)
var pthread_mutex_lock ( var  m)
local pthread_mutex_lock ( local  m)
float cocos2d::ConvertDipsToPixels ( float  dips)
var ConvertDipsToPixels ( var  dips)
local ConvertDipsToPixels ( local  dips)
int cocos2d::base64Decode ( const 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 by calling free()

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 by calling free()

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 by calling free()

Returns
the length of the out buffer
Since
v0.8.1
const PhysicsMaterial
cocos2d::PHYSICSBODY_MATERIAL_DEFAULT
( 0.  1f,
0.  5f,
0.  5f 
)
var PHYSICSBODY_MATERIAL_DEFAULT ( var  1f,
var  5f,
var  5f 
)
local PHYSICSBODY_MATERIAL_DEFAULT ( local  1f,
local  5f,
local  5f 
)
float cocos2d::getScaledDPIValue ( float  v)
var getScaledDPIValue ( var  v)
local getScaledDPIValue ( local  v)
int cocos2d::ccNextPOT ( int  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::pthread_mutex_unlock ( pthread_mutex_t *  m)
var pthread_mutex_unlock ( var  m)
local pthread_mutex_unlock ( local  m)
CC_DLL Size
cocos2d::__CCSizeApplyAffineTransform
( const Size &  size,
const AffineTransform &  t 
)
var __CCSizeApplyAffineTransform ( var  size,
var  t 
)
local __CCSizeApplyAffineTransform ( local  size,
local  t 
)
Concurrency::task
<Platform::Array<byte>
^> cocos2d::ReadDataAsync
( Platform::String^  path)
var ReadDataAsync ( var  path)
local ReadDataAsync ( local  path)
void cocos2d::pthread_mutex_destroy ( pthread_mutex_t *  m)
var pthread_mutex_destroy ( var  m)
local pthread_mutex_destroy ( local  m)
void CC_DLL
cocos2d::CCLogIPAddresses
( )
var CCLogIPAddresses ( )
local CCLogIPAddresses ( )
CC_DLL AffineTransform
cocos2d::AffineTransformMakeIdentity
( )
var AffineTransformMakeIdentity ( )
local AffineTransformMakeIdentity ( )
CC_DLL Rect
cocos2d::RectApplyAffineTransform
( const Rect &  rect,
const AffineTransform &  anAffineTransform 
)
var RectApplyAffineTransform ( var  rect,
var  anAffineTransform 
)
local RectApplyAffineTransform ( local  rect,
local  anAffineTransform 
)
std::string CC_DLL
cocos2d::getDeviceIPAddresses
( )
var getDeviceIPAddresses ( )
local getDeviceIPAddresses ( )
CC_DLL Rect
cocos2d::RectApplyTransform
( const Rect &  rect,
const Mat4 transform 
)
var RectApplyTransform ( var  rect,
var  transform 
)
local RectApplyTransform ( local  rect,
local  transform 
)
CC_DLL Vec2
cocos2d::PointApplyTransform
( const Vec2 point,
const Mat4 transform 
)
var PointApplyTransform ( var  point,
var  transform 
)
local PointApplyTransform ( local  point,
local  transform 
)
int cocos2d::base64Encode ( const unsigned char *  in,
unsigned int  inLength,
char **  out 
)

Encodes bytes into a 64base encoded memory with terminating '\0' character.

The encoded memory is expected to be freed by the caller by calling free()

Returns
the length of the out buffer
Since
v2.1.4
var base64Encode ( var  in,
var  inLength,
var  out 
)

Encodes bytes into a 64base encoded memory with terminating '\0' character.

The encoded memory is expected to be freed by the caller by calling free()

Returns
the length of the out buffer
Since
v2.1.4
local base64Encode ( local  in,
local  inLength,
local  out 
)

Encodes bytes into a 64base encoded memory with terminating '\0' character.

The encoded memory is expected to be freed by the caller by calling free()

Returns
the length of the out buffer
Since
v2.1.4
bool cocos2d::tgaLoadHeader ( unsigned char *  buffer,
unsigned long  bufSize,
tImageTGA info 
)

load the image header fields. We only keep those that matter!

var tgaLoadHeader ( var  buffer,
var  bufSize,
var  info 
)

load the image header fields. We only keep those that matter!

local tgaLoadHeader ( local  buffer,
local  bufSize,
local  info 
)

load the image header fields. We only keep those that matter!

CC_DLL AffineTransform
cocos2d::AffineTransformTranslate
( const AffineTransform &  t,
float  tx,
float  ty 
)
var AffineTransformTranslate ( var  t,
var  tx,
var  ty 
)
local AffineTransformTranslate ( local  t,
local  tx,
local  ty 
)
CC_DLL AffineTransform
cocos2d::AffineTransformRotate
( const AffineTransform &  aTransform,
float  anAngle 
)
var AffineTransformRotate ( var  aTransform,
var  anAngle 
)
local AffineTransformRotate ( local  aTransform,
local  anAngle 
)
Vec2 CC_DLL
cocos2d::PointFromString
( const std::string &  str)

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 Vec2::ZERO.
var PointFromString ( var  str)

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 Vec2::ZERO.
local PointFromString ( local  str)

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 Vec2::ZERO.
bool cocos2d::tgaLoadImageData ( unsigned char *  buffer,
unsigned long  bufSize,
tImageTGA info 
)

loads the image pixels. You shouldn't call this function directly

var tgaLoadImageData ( var  buffer,
var  bufSize,
var  info 
)

loads the image pixels. You shouldn't call this function directly

local tgaLoadImageData ( local  buffer,
local  bufSize,
local  info 
)

loads the image pixels. You shouldn't call this function directly

CC_DLL AffineTransform
cocos2d::AffineTransformScale
( const AffineTransform &  t,
float  sx,
float  sy 
)
var AffineTransformScale ( var  t,
var  sx,
var  sy 
)
local AffineTransformScale ( local  t,
local  sx,
local  sy 
)
const PhysicsMaterial
cocos2d::PHYSICSSHAPE_MATERIAL_DEFAULT
( 0.  0f,
0.  5f,
0.  5f 
)
var PHYSICSSHAPE_MATERIAL_DEFAULT ( var  0f,
var  5f,
var  5f 
)
local PHYSICSSHAPE_MATERIAL_DEFAULT ( local  0f,
local  5f,
local  5f 
)
CC_DLL AffineTransform
cocos2d::AffineTransformConcat
( const AffineTransform &  t1,
const AffineTransform &  t2 
)
var AffineTransformConcat ( var  t1,
var  t2 
)
local AffineTransformConcat ( local  t1,
local  t2 
)
void CC_DLL cocos2d::log ( const char *  format,
  ... 
)

Output Debug message.

var log ( var  format,
  ... 
)

Output Debug message.

local log ( local  format,
  ... 
)

Output Debug message.

CC_DLL bool
cocos2d::AffineTransformEqualToTransform
( const AffineTransform &  t1,
const AffineTransform &  t2 
)
var AffineTransformEqualToTransform ( var  t1,
var  t2 
)
local
AffineTransformEqualToTransform
( local  t1,
local  t2 
)
tImageTGA* cocos2d::tgaLoadBuffer ( unsigned char *  buffer,
long  size 
)

this is the function to call when we want to load an image buffer.

var tgaLoadBuffer ( var  buffer,
var  size 
)

this is the function to call when we want to load an image buffer.

local tgaLoadBuffer ( local  buffer,
local  size 
)

this is the function to call when we want to load an image buffer.

CC_DLL AffineTransform
cocos2d::AffineTransformInvert
( const AffineTransform &  t)
var AffineTransformInvert ( var  t)
local AffineTransformInvert ( local  t)
Mat4 cocos2d::TransformConcat ( const Mat4 t1,
const Mat4 t2 
)
var TransformConcat ( var  t1,
var  t2 
)
local TransformConcat ( local  t1,
local  t2 
)
ccArray* cocos2d::ccArrayNew ( ssize_t  capacity)

Allocates and initializes a new array with specified capacity.

var ccArrayNew ( var  capacity)

Allocates and initializes a new array with specified capacity.

local ccArrayNew ( local  capacity)

Allocates and initializes a new array with specified capacity.

tImageTGA* cocos2d::tgaLoad ( const char *  filename)

this is the function to call when we want to load an image

var tgaLoad ( var  filename)

this is the function to call when we want to load an image

local tgaLoad ( local  filename)

this is the function to call when we want to load an image

void cocos2d::ccArrayFree ( ccArray *&  arr)

Frees array after removing all remaining objects.

Silently ignores nil arr.

var ccArrayFree ( var  arr)

Frees array after removing all remaining objects.

Silently ignores nil arr.

local ccArrayFree ( local  arr)

Frees array after removing all remaining objects.

Silently ignores nil arr.

void cocos2d::tgaRGBtogreyscale ( tImageTGA info)
var tgaRGBtogreyscale ( var  info)
local tgaRGBtogreyscale ( local  info)
Size CC_DLL cocos2d::SizeFromString ( const std::string &  str)

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 Size::ZERO.
void cocos2d::tgaDestroy ( tImageTGA info)

releases the memory used for the image

var tgaDestroy ( var  info)

releases the memory used for the image

local tgaDestroy ( local  info)

releases the memory used for the image

void cocos2d::ccArrayDoubleCapacity ( ccArray *  arr)

Doubles array capacity.

var ccArrayDoubleCapacity ( var  arr)

Doubles array capacity.

local ccArrayDoubleCapacity ( local  arr)

Doubles array capacity.

void
cocos2d::ccArrayEnsureExtraCapacity
( ccArray *  arr,
ssize_t  extra 
)

Increases array capacity such that max >= num + extra.

var ccArrayEnsureExtraCapacity ( var  arr,
var  extra 
)

Increases array capacity such that max >= num + extra.

local ccArrayEnsureExtraCapacity ( local  arr,
local  extra 
)

Increases array capacity such that max >= num + extra.

void cocos2d::ccArrayShrink ( ccArray *  arr)

shrinks the array so the memory footprint corresponds with the number of items

var ccArrayShrink ( var  arr)

shrinks the array so the memory footprint corresponds with the number of items

local ccArrayShrink ( local  arr)

shrinks the array so the memory footprint corresponds with the number of items

ssize_t
cocos2d::ccArrayGetIndexOfObject
( ccArray *  arr,
Ref *  object 
)

Returns index of first occurrence of object, NSNotFound if object not found.

var ccArrayGetIndexOfObject ( var  arr,
var  object 
)

Returns index of first occurrence of object, NSNotFound if object not found.

local ccArrayGetIndexOfObject ( local  arr,
local  object 
)

Returns index of first occurrence of object, NSNotFound if object not found.

bool cocos2d::ccArrayContainsObject ( ccArray *  arr,
Ref *  object 
)

Returns a Boolean value that indicates whether object is present in array.

var ccArrayContainsObject ( var  arr,
var  object 
)

Returns a Boolean value that indicates whether object is present in array.

void cocos2d::ccArrayAppendObject ( ccArray *  arr,
Ref *  object 
)

Appends an object.

Behavior undefined if array doesn't have enough capacity.

void
cocos2d::ccArrayAppendObjectWithResize
( ccArray *  arr,
Ref *  object 
)

Appends an object.

Capacity of arr is increased if needed.

var ccArrayAppendObjectWithResize ( var  arr,
var  object 
)

Appends an object.

Capacity of arr is increased if needed.

local ccArrayAppendObjectWithResize ( local  arr,
local  object 
)

Appends an object.

Capacity of arr is increased if needed.

void cocos2d::ccArrayAppendArray ( ccArray *  arr,
ccArray *  plusArr 
)

Appends objects from plusArr to arr.

Behavior undefined if arr doesn't have enough capacity.

var ccArrayAppendArray ( var  arr,
var  plusArr 
)

Appends objects from plusArr to arr.

Behavior undefined if arr doesn't have enough capacity.

local ccArrayAppendArray ( local  arr,
local  plusArr 
)

Appends objects from plusArr to arr.

Behavior undefined if arr doesn't have enough capacity.

void
cocos2d::ccArrayAppendArrayWithResize
( ccArray *  arr,
ccArray *  plusArr 
)

Appends objects from plusArr to arr.

Capacity of arr is increased if needed.

var ccArrayAppendArrayWithResize ( var  arr,
var  plusArr 
)

Appends objects from plusArr to arr.

Capacity of arr is increased if needed.

local ccArrayAppendArrayWithResize ( local  arr,
local  plusArr 
)

Appends objects from plusArr to arr.

Capacity of arr is increased if needed.

void
cocos2d::ccArrayInsertObjectAtIndex
( ccArray *  arr,
Ref *  object,
ssize_t  index 
)

Inserts an object at index.

void
cocos2d::ccArraySwapObjectsAtIndexes
( ccArray *  arr,
ssize_t  index1,
ssize_t  index2 
)

Swaps two objects.

var ccArraySwapObjectsAtIndexes ( var  arr,
var  index1,
var  index2 
)

Swaps two objects.

local ccArraySwapObjectsAtIndexes ( local  arr,
local  index1,
local  index2 
)

Swaps two objects.

void
cocos2d::ccArrayRemoveAllObjects
( ccArray *  arr)

Removes all objects from arr.

var ccArrayRemoveAllObjects ( var  arr)

Removes all objects from arr.

local ccArrayRemoveAllObjects ( local  arr)

Removes all objects from arr.

void
cocos2d::ccArrayRemoveObjectAtIndex
( ccArray *  arr,
ssize_t  index,
bool  releaseObj = true 
)

Removes object at specified index and pushes back all subsequent objects.

Behavior undefined if index outside [0, num-1].

var ccArrayRemoveObjectAtIndex ( var  arr,
var  index,
var  releaseObj = true 
)

Removes object at specified index and pushes back all subsequent objects.

Behavior undefined if index outside [0, num-1].

local ccArrayRemoveObjectAtIndex ( local  arr,
local  index,
local  releaseObj = true 
)

Removes object at specified index and pushes back all subsequent objects.

Behavior undefined if index outside [0, num-1].

int CC_DLL cocos2d::gettimeofday ( struct timeval *  ,
struct timezone  
)
var gettimeofday ( var  ,
var   
)
local gettimeofday ( local  ,
local   
)
void
cocos2d::ccArrayFastRemoveObjectAtIndex
( ccArray *  arr,
ssize_t  index 
)

Removes object at specified index and fills the gap with the last object, thereby avoiding the need to push back subsequent objects.

Behavior undefined if index outside [0, num-1].

var ccArrayFastRemoveObjectAtIndex ( var  arr,
var  index 
)

Removes object at specified index and fills the gap with the last object, thereby avoiding the need to push back subsequent objects.

Behavior undefined if index outside [0, num-1].

local
ccArrayFastRemoveObjectAtIndex
( local  arr,
local  index 
)

Removes object at specified index and fills the gap with the last object, thereby avoiding the need to push back subsequent objects.

Behavior undefined if index outside [0, num-1].

void
cocos2d::ccArrayFastRemoveObject
( ccArray *  arr,
Ref *  object 
)
var ccArrayFastRemoveObject ( var  arr,
var  object 
)
void cocos2d::ccArrayRemoveObject ( ccArray *  arr,
Ref *  object,
bool  releaseObj = true 
)

Searches for the first occurrence of object and removes it.

If object is not found the function has no effect.

var ccArrayRemoveObject ( var  arr,
var  object,
var  releaseObj = true 
)

Searches for the first occurrence of object and removes it.

If object is not found the function has no effect.

local ccArrayRemoveObject ( local  arr,
local  object,
local  releaseObj = true 
)

Searches for the first occurrence of object and removes it.

If object is not found the function has no effect.

void cocos2d::ccArrayRemoveArray ( ccArray *  arr,
ccArray *  minusArr 
)

Removes from arr all objects in minusArr.

For each object in minusArr, the first matching instance in arr will be removed.

var ccArrayRemoveArray ( var  arr,
var  minusArr 
)

Removes from arr all objects in minusArr.

For each object in minusArr, the first matching instance in arr will be removed.

local ccArrayRemoveArray ( local  arr,
local  minusArr 
)

Removes from arr all objects in minusArr.

For each object in minusArr, the first matching instance in arr will be removed.

void
cocos2d::ccArrayFullRemoveArray
( ccArray *  arr,
ccArray *  minusArr 
)

Removes from arr all objects in minusArr.

For each object in minusArr, all matching instances in arr will be removed.

var ccArrayFullRemoveArray ( var  arr,
var  minusArr 
)

Removes from arr all objects in minusArr.

For each object in minusArr, all matching instances in arr will be removed.

local ccArrayFullRemoveArray ( local  arr,
local  minusArr 
)

Removes from arr all objects in minusArr.

For each object in minusArr, all matching instances in arr will be removed.

ccCArray* cocos2d::ccCArrayNew ( ssize_t  capacity)

Allocates and initializes a new C array with specified capacity.

var ccCArrayNew ( var  capacity)

Allocates and initializes a new C array with specified capacity.

local ccCArrayNew ( local  capacity)

Allocates and initializes a new C array with specified capacity.

void cocos2d::ccCArrayFree ( ccCArray *  arr)

Frees C array after removing all remaining values.

Silently ignores nil arr.

var ccCArrayFree ( var  arr)

Frees C array after removing all remaining values.

Silently ignores nil arr.

local ccCArrayFree ( local  arr)

Frees C array after removing all remaining values.

Silently ignores nil arr.

void
cocos2d::ccCArrayDoubleCapacity
( ccCArray *  arr)

Doubles C array capacity.

void
cocos2d::ProfilingEndTimingBlock
( const char *  timerName)
var ProfilingEndTimingBlock ( var  timerName)
local ProfilingEndTimingBlock ( local  timerName)
void
cocos2d::ProfilingResetTimingBlock
( const char *  timerName)
var ProfilingResetTimingBlock ( var  timerName)
local ProfilingResetTimingBlock ( local  timerName)
void
cocos2d::ccCArrayEnsureExtraCapacity
( ccCArray *  arr,
ssize_t  extra 
)

Increases array capacity such that max >= num + extra.

var ccCArrayEnsureExtraCapacity ( var  arr,
var  extra 
)

Increases array capacity such that max >= num + extra.

local ccCArrayEnsureExtraCapacity ( local  arr,
local  extra 
)

Increases array capacity such that max >= num + extra.

ssize_t
cocos2d::ccCArrayGetIndexOfValue
( ccCArray *  arr,
void *  value 
)

Returns index of first occurrence of value, NSNotFound if value not found.

bool cocos2d::ccCArrayContainsValue ( ccCArray *  arr,
void *  value 
)

Returns a Boolean value that indicates whether value is present in the C array.

void
cocos2d::ccCArrayInsertValueAtIndex
( ccCArray *  arr,
void *  value,
ssize_t  index 
)

Inserts a value at a certain position.

Behavior undefined if array doesn't have enough capacity

var ccCArrayInsertValueAtIndex ( var  arr,
var  value,
var  index 
)

Inserts a value at a certain position.

Behavior undefined if array doesn't have enough capacity

local ccCArrayInsertValueAtIndex ( local  arr,
local  value,
local  index 
)

Inserts a value at a certain position.

Behavior undefined if array doesn't have enough capacity

void cocos2d::ccCArrayAppendValue ( ccCArray *  arr,
void *  value 
)

Appends an value.

Behavior undefined if array doesn't have enough capacity.

var ccCArrayAppendValue ( var  arr,
var  value 
)

Appends an value.

Behavior undefined if array doesn't have enough capacity.

local ccCArrayAppendValue ( local  arr,
local  value 
)

Appends an value.

Behavior undefined if array doesn't have enough capacity.

void
cocos2d::ccCArrayAppendValueWithResize
( ccCArray *  arr,
void *  value 
)

Appends an value.

Capacity of arr is increased if needed.

var ccCArrayAppendValueWithResize ( var  arr,
var  value 
)

Appends an value.

Capacity of arr is increased if needed.

local ccCArrayAppendValueWithResize ( local  arr,
local  value 
)

Appends an value.

Capacity of arr is increased if needed.

void cocos2d::ccCArrayAppendArray ( ccCArray *  arr,
ccCArray *  plusArr 
)

Appends values from plusArr to arr.

Behavior undefined if arr doesn't have enough capacity.

var ccCArrayAppendArray ( var  arr,
var  plusArr 
)

Appends values from plusArr to arr.

Behavior undefined if arr doesn't have enough capacity.

local ccCArrayAppendArray ( local  arr,
local  plusArr 
)

Appends values from plusArr to arr.

Behavior undefined if arr doesn't have enough capacity.

void
cocos2d::ccCArrayAppendArrayWithResize
( ccCArray *  arr,
ccCArray *  plusArr 
)

Appends values from plusArr to arr.

Capacity of arr is increased if needed.

var ccCArrayAppendArrayWithResize ( var  arr,
var  plusArr 
)

Appends values from plusArr to arr.

Capacity of arr is increased if needed.

local ccCArrayAppendArrayWithResize ( local  arr,
local  plusArr 
)

Appends values from plusArr to arr.

Capacity of arr is increased if needed.

void
cocos2d::ccCArrayRemoveAllValues
( ccCArray *  arr)

Removes all values from arr.

var ccCArrayRemoveAllValues ( var  arr)

Removes all values from arr.

local ccCArrayRemoveAllValues ( local  arr)

Removes all values from arr.

void
cocos2d::ccCArrayRemoveValueAtIndex
( ccCArray *  arr,
ssize_t  index 
)

Removes value at specified index and pushes back all subsequent values.

Behavior undefined if index outside [0, num-1].

Since
v0.99.4
var ccCArrayRemoveValueAtIndex ( var  arr,
var  index 
)

Removes value at specified index and pushes back all subsequent values.

Behavior undefined if index outside [0, num-1].

Since
v0.99.4
local ccCArrayRemoveValueAtIndex ( local  arr,
local  index 
)

Removes value at specified index and pushes back all subsequent values.

Behavior undefined if index outside [0, num-1].

Since
v0.99.4
void
cocos2d::ccCArrayFastRemoveValueAtIndex
( ccCArray *  arr,
ssize_t  index 
)

Removes value at specified index and fills the gap with the last value, thereby avoiding the need to push back subsequent values.

Behavior undefined if index outside [0, num-1].

Since
v0.99.4
var ccCArrayFastRemoveValueAtIndex ( var  arr,
var  index 
)

Removes value at specified index and fills the gap with the last value, thereby avoiding the need to push back subsequent values.

Behavior undefined if index outside [0, num-1].

Since
v0.99.4
local
ccCArrayFastRemoveValueAtIndex
( local  arr,
local  index 
)

Removes value at specified index and fills the gap with the last value, thereby avoiding the need to push back subsequent values.

Behavior undefined if index outside [0, num-1].

Since
v0.99.4
void cocos2d::ccCArrayRemoveValue ( ccCArray *  arr,
void *  value 
)

Searches for the first occurrence of value and removes it.

If value is not found the function has no effect.

Since
v0.99.4
var ccCArrayRemoveValue ( var  arr,
var  value 
)

Searches for the first occurrence of value and removes it.

If value is not found the function has no effect.

Since
v0.99.4
local ccCArrayRemoveValue ( local  arr,
local  value 
)

Searches for the first occurrence of value and removes it.

If value is not found the function has no effect.

Since
v0.99.4
void cocos2d::ccCArrayRemoveArray ( ccCArray *  arr,
ccCArray *  minusArr 
)

Removes from arr all values in minusArr.

For each Value in minusArr, the first matching instance in arr will be removed.

Since
v0.99.4
var ccCArrayRemoveArray ( var  arr,
var  minusArr 
)

Removes from arr all values in minusArr.

For each Value in minusArr, the first matching instance in arr will be removed.

Since
v0.99.4
local ccCArrayRemoveArray ( local  arr,
local  minusArr 
)

Removes from arr all values in minusArr.

For each Value in minusArr, the first matching instance in arr will be removed.

Since
v0.99.4
void
cocos2d::ccCArrayFullRemoveArray
( ccCArray *  arr,
ccCArray *  minusArr 
)

Removes from arr all values in minusArr.

For each value in minusArr, all matching instances in arr will be removed.

Since
v0.99.4
var ccCArrayFullRemoveArray ( var  arr,
var  minusArr 
)

Removes from arr all values in minusArr.

For each value in minusArr, all matching instances in arr will be removed.

Since
v0.99.4
local ccCArrayFullRemoveArray ( local  arr,
local  minusArr 
)

Removes from arr all values in minusArr.

For each value in minusArr, all matching instances in arr will be removed.

Since
v0.99.4
CC_DLL const char*
cocos2d::cocos2dVersion
( )
var cocos2dVersion ( )
local cocos2dVersion ( )
RefPtr<T>
cocos2d::static_pointer_cast
( const RefPtr< U > &  r)

Cast between RefPtr types statically.

var static_pointer_cast ( var  r)

Cast between RefPtr types statically.

local static_pointer_cast ( local  r)

Cast between RefPtr types statically.

RefPtr<T>
cocos2d::dynamic_pointer_cast
( const RefPtr< U > &  r)

Cast between RefPtr types dynamically.

var dynamic_pointer_cast ( var  r)

Cast between RefPtr types dynamically.

local dynamic_pointer_cast ( local  r)

Cast between RefPtr types dynamically.

Vec2 cocos2d::CCPointMake ( float  x,
float  y 
)
inline
var CCPointMake ( var  x,
var  y 
)
inline
local CCPointMake ( local  x,
local  y 
)
inline
Size cocos2d::CCSizeMake ( float  width,
float  height 
)
inline
var CCSizeMake ( var  width,
var  height 
)
inline
local CCSizeMake ( local  width,
local  height 
)
inline
void CC_DLL void CC_DLL
cocos2d::ccDrawInit
( )
var ccDrawInit ( )
local ccDrawInit ( )
void CC_DLL cocos2d::ccDrawFree ( )
var ccDrawFree ( )
local ccDrawFree ( )
void CC_DLL cocos2d::ccDrawPoint ( const Vec2 point)
var ccDrawPoint ( var  point)
local ccDrawPoint ( local  point)
void CC_DLL cocos2d::ccDrawLine ( const Vec2 origin,
const Vec2 destination 
)
var ccDrawLine ( var  origin,
var  destination 
)
local ccDrawLine ( local  origin,
local  destination 
)
void CC_DLL cocos2d::ccDrawRect ( Vec2  origin,
Vec2  destination 
)
var ccDrawRect ( var  origin,
var  destination 
)
local ccDrawRect ( local  origin,
local  destination 
)
void CC_DLL cocos2d::ccDrawColor4B ( GLubyte  r,
GLubyte  g,
GLubyte  b,
GLubyte  a 
)
var ccDrawColor4B ( var  r,
var  g,
var  b,
var  a 
)
local ccDrawColor4B ( local  r,
local  g,
local  b,
local  a 
)
void CC_DLL cocos2d::ccDrawColor4F ( GLfloat  r,
GLfloat  g,
GLfloat  b,
GLfloat  a 
)
var ccDrawColor4F ( var  r,
var  g,
var  b,
var  a 
)
local ccDrawColor4F ( local  r,
local  g,
local  b,
local  a 
)
void CC_DLL
cocos2d::ccGLInvalidateStateCache
( )
inline
var ccGLInvalidateStateCache ( )
inline
local ccGLInvalidateStateCache ( )
inline
void CC_DLL
cocos2d::ccGLDeleteProgram
( GLuint  program)
inline
var ccGLDeleteProgram ( var  program)
inline
local ccGLDeleteProgram ( local  program)
inline
void CC_DLL
cocos2d::ccGLBlendResetToCache
( )
inline
var ccGLBlendResetToCache ( )
inline
local ccGLBlendResetToCache ( )
inline
void CC_DLL
cocos2d::ccSetProjectionMatrixDirty
( )
inline
var ccSetProjectionMatrixDirty ( )
inline
local ccSetProjectionMatrixDirty ( )
inline
void CC_DLL
cocos2d::ccGLBindTexture2D
( GLuint  textureId)
inline
var ccGLBindTexture2D ( var  textureId)
inline
local ccGLBindTexture2D ( local  textureId)
inline
void CC_DLL
cocos2d::ccGLDeleteTexture
( GLuint  textureId)
inline
var ccGLDeleteTexture ( var  textureId)
inline
local ccGLDeleteTexture ( local  textureId)
inline
void CC_DLL
cocos2d::ccGLDeleteTextureN
( GLuint  textureUnit,
GLuint  textureId 
)
inline
var ccGLDeleteTextureN ( var  textureUnit,
var  textureId 
)
inline
local ccGLDeleteTextureN ( local  textureUnit,
local  textureId 
)
inline
void CC_DLL cocos2d::ccGLBindVAO ( GLuint  vaoId)
inline
var ccGLBindVAO ( var  vaoId)
inline
local ccGLBindVAO ( local  vaoId)
inline
void CC_DLL cocos2d::kmGLFreeAll ( void  )
var kmGLFreeAll (   )
local kmGLFreeAll (   )
void CC_DLL cocos2d::kmGLPushMatrix ( void  )
var kmGLPushMatrix (   )
local kmGLPushMatrix (   )
void CC_DLL cocos2d::kmGLPopMatrix ( void  )
var kmGLPopMatrix (   )
local kmGLPopMatrix (   )
void CC_DLL cocos2d::kmGLMatrixMode ( unsigned int  mode)
var kmGLMatrixMode ( var  mode)
local kmGLMatrixMode ( local  mode)
void CC_DLL
cocos2d::kmGLLoadIdentity
( void  )
var kmGLLoadIdentity (   )
local kmGLLoadIdentity (   )
void CC_DLL cocos2d::kmGLMultMatrix ( const Mat4 pIn)
var kmGLMultMatrix ( var  pIn)
local kmGLMultMatrix ( local  pIn)
void CC_DLL cocos2d::kmGLTranslatef ( float  x,
float  y,
float  z 
)
var kmGLTranslatef ( var  x,
var  y,
var  z 
)
local kmGLTranslatef ( local  x,
local  y,
local  z 
)
void CC_DLL cocos2d::kmGLRotatef ( float  angle,
float  x,
float  y,
float  z 
)
var kmGLRotatef ( var  angle,
var  x,
var  y,
var  z 
)
local kmGLRotatef ( local  angle,
local  x,
local  y,
local  z 
)
void CC_DLL cocos2d::kmGLScalef ( float  x,
float  y,
float  z 
)
var kmGLScalef ( var  x,
var  y,
var  z 
)
local kmGLScalef ( local  x,
local  y,
local  z 
)
CC_DLL Mat4* cocos2d::kmMat4Inverse ( Mat4 pOut,
const Mat4 pM 
)
var kmMat4Inverse ( var  pOut,
var  pM 
)
local kmMat4Inverse ( local  pOut,
local  pM 
)
CC_DLL Mat4*
cocos2d::kmMat4Transpose
( Mat4 pOut,
const Mat4 pIn 
)
var kmMat4Transpose ( var  pOut,
var  pIn 
)
local kmMat4Transpose ( local  pOut,
local  pIn 
)
CC_DLL Mat4*
cocos2d::kmMat4RotationY
( Mat4 pOut,
const float  radians 
)
var kmMat4RotationY ( var  pOut,
var  radians 
)
local kmMat4RotationY ( local  pOut,
local  radians 
)
CC_DLL Mat4*
cocos2d::kmMat4RotationZ
( Mat4 pOut,
const float  radians 
)
var kmMat4RotationZ ( var  pOut,
var  radians 
)
local kmMat4RotationZ ( local  pOut,
local  radians 
)
CC_DLL Mat4* cocos2d::kmMat4Scaling ( Mat4 pOut,
const float  x,
const float  y,
const float  z 
)
var kmMat4Scaling ( var  pOut,
var  x,
var  y,
var  z 
)
local kmMat4Scaling ( local  pOut,
local  x,
local  y,
local  z 
)
CC_DLL float
cocos2d::kmVec3LengthSq
( const Vec3 pIn)
var kmVec3LengthSq ( var  pIn)
local kmVec3LengthSq ( local  pIn)
CC_DLL Vec3* cocos2d::kmVec3Add ( Vec3 pOut,
const Vec3 pV1,
const Vec3 pV2 
)
var kmVec3Add ( var  pOut,
var  pV1,
var  pV2 
)
local kmVec3Add ( local  pOut,
local  pV1,
local  pV2 
)
CC_DLL Vec3*
cocos2d::kmVec3Subtract
( Vec3 pOut,
const Vec3 pV1,
const Vec3 pV2 
)
var kmVec3Subtract ( var  pOut,
var  pV1,
var  pV2 
)
local kmVec3Subtract ( local  pOut,
local  pV1,
local  pV2 
)
CC_DLL Vec3*
cocos2d::kmVec3TransformNormal
( Vec3 pOut,
const Vec3 pV,
const Mat4 pM 
)
var kmVec3TransformNormal ( var  pOut,
var  pV,
var  pM 
)
local kmVec3TransformNormal ( local  pOut,
local  pV,
local  pM 
)
CC_DLL Vec3*
cocos2d::kmVec3TransformCoord
( Vec3 pOut,
const Vec3 pV,
const Mat4 pM 
)
var kmVec3TransformCoord ( var  pOut,
var  pV,
var  pM 
)
local kmVec3TransformCoord ( local  pOut,
local  pV,
local  pM 
)
CC_DLL Vec3* cocos2d::kmVec3Assign ( Vec3 pOut,
const Vec3 pIn 
)
var kmVec3Assign ( var  pOut,
var  pIn 
)
local kmVec3Assign ( local  pOut,
local  pIn 
)
CC_DLL float
cocos2d::kmVec2LengthSq
( const Vec2 pIn)
var kmVec2LengthSq ( var  pIn)
local kmVec2LengthSq ( local  pIn)
CC_DLL Vec2*
cocos2d::kmVec2Subtract
( Vec2 pOut,
const Vec2 pV1,
const Vec2 pV2 
)
var kmVec2Subtract ( var  pOut,
var  pV1,
var  pV2 
)
local kmVec2Subtract ( local  pOut,
local  pV1,
local  pV2 
)
CC_DLL Vec2* cocos2d::kmVec2Assign ( Vec2 pOut,
const Vec2 pIn 
)
var kmVec2Assign ( var  pOut,
var  pIn 
)
local kmVec2Assign ( local  pOut,
local  pIn 
)
CC_DLL float
cocos2d::kmVec4LengthSq
( const Vec4 pIn)
var kmVec4LengthSq ( var  pIn)
local kmVec4LengthSq ( local  pIn)
CC_DLL Vec4*
cocos2d::kmVec4Subtract
( Vec4 pOut,
const Vec4 pV1,
const Vec4 pV2 
)
var kmVec4Subtract ( var  pOut,
var  pV1,
var  pV2 
)
local kmVec4Subtract ( local  pOut,