axmol/tools/tolua++
Phenix Yu e623cd6357 Merge branch 'gles20' of https://github.com/cocos2d/cocos2d-x into gles20
Conflicts:
	cocos2dx/include/CCTexture2D.h
	cocos2dx/include/ccMacros.h
	cocos2dx/textures/CCTexture2D.cpp
	lua/cocos2dx_support/LuaCocos2d.cpp
2012-04-15 15:46:01 +08:00
..
CCAction.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCActionCamera.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCActionEase.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCActionGrid.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCActionGrid3D.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCActionManager.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCActionPageTurn3D.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCActionTiledGrid.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCAffineTransform.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCAnimation.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCAnimationCache.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCApplication.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCArray.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCAtlasNode.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCCamera.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCCommon.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCDirector.pkg Merge branch 'gles20' of https://github.com/cocos2d/cocos2d-x into gles20 2012-04-15 15:46:01 +08:00
CCDrawingPrimitives.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCFileUtils.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCGeometry.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCLabelAtlas.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCLabelBMFont.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCLabelTTF.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCLayer.pkg update for msvc2010 2012-04-09 00:10:12 +08:00
CCMenu.pkg update for msvc2010 2012-04-09 00:10:12 +08:00
CCMenuItem.pkg update for msvc2010 2012-04-09 00:10:12 +08:00
CCMotionStreak.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCMutableArray.pkg fixed #948: remove getIndexOfObject() 2012-02-14 10:49:53 +08:00
CCMutableDictionary.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCNode.pkg update for msvc2010 2012-04-09 00:10:12 +08:00
CCObject.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCParallaxNode.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCParticleSystem.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCPointExtension.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCProgressTimer.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCRenderTexture.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCRibbon.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCScene.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCScheduler.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCSprite.pkg update for msvc2010 2012-04-09 00:10:12 +08:00
CCSpriteBatchNode.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCSpriteFrame.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCSpriteFrameCache.pkg update for msvc2010 2012-04-09 00:10:12 +08:00
CCString.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCTMXLayer.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCTMXObjectGroup.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCTMXTiledMap.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCTMXXMLParser.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCTextFieldTTF.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCTexture2D.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCTextureAtlas.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCTextureCache.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCTileMapAtlas.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCTouch.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCTransition.pkg update for msvc2010 2012-04-09 00:10:12 +08:00
CCUserDefault.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
Cocos2d.pkg update for msvc2010 2012-04-09 00:10:12 +08:00
README move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
SimpleAudioEngine.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
basic.lua move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
build.xml update for msvc2010 2012-04-09 00:10:12 +08:00
build_macosx.xml rename all FuncID to Handler 2012-02-07 11:43:29 +08:00
ccTypes.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
tolua++.Mac.zip.REMOVED.git-id issue #973: add tool for mack 2012-02-10 10:43:36 +08:00
tolua++.rar.REMOVED.git-id fixed #589 2011-07-08 15:28:13 +08:00

README

1. Generating the lua<-->C bindings with tolua++
tolua++.exe -tCocos2d -o LuaCocos2d.cpp Cocos2d.pkg

    An ant script has been provided to generate the relevant files, to do this after
    modifying the .pkg files you should use the following command in this directory:

    ant

    This will generate the bindings file, patch it to compile successfully and move it
    to the standard destination.

2. Writing .pkg files

    1) enum keeps the same
    2) remove CC_DLL for the class defines, pay attention to multi inherites
    3) remove inline keyword for declaration and implementation
    4) remove public protect and private
    5) remove the decalration of class member variable
    6) keep static keyword
    7) remove memeber functions that declared as private or protected