axmol/tools/tolua++
minggo 33529afc07 Merge pull request #1592 from fape/luaCocos2d
fix compile: rename kOrientation to kCCTransitionOrientation
2012-11-19 17:36:25 -08:00
..
CCAction.pkg [Lua] fix CCActionInterval, CCFiniteTimeAction, CCAction declare 2012-09-25 16:27:54 +08:00
CCActionCamera.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCActionCatmullRom.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCActionEase.pkg issue #1425: update pkg and recreate LuaCococs2d.cpp 2012-08-30 15:33:54 +08:00
CCActionGrid.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCActionGrid3D.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCActionManager.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCActionPageTurn3D.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCActionProgressTimer.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCActionTiledGrid.pkg [Lua] fix luabinding overloaded functions 2012-09-17 14:40:42 +08:00
CCAffineTransform.pkg update tolua++ pkg files 2012-08-28 14:53:52 +08:00
CCAnimation.pkg [Lua] fix luabinding overloaded functions 2012-09-17 14:40:42 +08:00
CCAnimationCache.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCApplication.pkg [Lua] add CCApplication:getTargetPaltform() 2012-09-25 16:43:36 +08:00
CCArray.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCAtlasNode.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCCamera.pkg fixed #1292: Updated lua bindings. 2012-06-15 17:26:11 +08:00
CCCommon.pkg update tolua++ pkg files 2012-08-28 14:53:52 +08:00
CCDictionary.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCDirector.pkg issue #1486: Updated lua bindings. 2012-10-12 16:04:26 +08:00
CCDrawingPrimitives.pkg ccDrawCircle() add scaleX and scaleY 2012-09-14 18:00:11 +08:00
CCEGLViewProtocol.pkg Updated LuaBindings codes since CCEGLViewProtocol::getSize has been renamed to CCEGLViewProtocol::getDesignResolutionSize. 2012-10-30 10:35:19 +08:00
CCFileUtils.pkg [Lua] fix luabinding overloaded functions 2012-09-17 14:40:42 +08:00
CCGeometry.pkg [Lua] update luabinding for CCPoint, CCSize, CCRect 2012-09-05 14:49:26 +08:00
CCLabelAtlas.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCLabelBMFont.pkg [Lua] fix luabinding overloaded functions 2012-09-17 14:40:42 +08:00
CCLabelTTF.pkg [Lua] fix luabinding overloaded functions 2012-09-17 14:40:42 +08:00
CCLayer.pkg [Lua] fix luabinding overloaded functions 2012-09-17 14:40:42 +08:00
CCMenu.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCMenuItem.pkg [Lua] fix luabinding overloaded functions 2012-09-17 14:40:42 +08:00
CCMotionStreak.pkg fixed #1292: Updated lua bindings. 2012-06-15 17:26:11 +08:00
CCNode.pkg Merge branch 'gles20' of git://github.com/cocos2d/cocos2d-x into gles20 2012-09-02 00:56:27 +08:00
CCNotificationCenter.pkg update tolua++ pkg files 2012-08-28 14:53:52 +08:00
CCObject.pkg issue #1425: reconstruct some interfaces in .pkg files 2012-08-09 12:51:59 +08:00
CCParallaxNode.pkg update tolua++ pkg files 2012-08-28 14:53:52 +08:00
CCParticleBatchNode.pkg issue #1425: update pkg for tolua++ binding 2012-08-29 17:10:06 +08:00
CCParticleExamples.pkg issue #1425: update pkg for tolua++ binding 2012-08-29 17:10:06 +08:00
CCParticleSystem.pkg [Lua] fix luabinding overloaded functions 2012-09-17 14:40:42 +08:00
CCPointExtension.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCProgressTimer.pkg fixed #1292: Updated lua bindings. 2012-06-15 17:26:11 +08:00
CCRenderTexture.pkg [Lua] update luabinding 2012-08-28 15:54:19 +08:00
CCRibbon.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCScene.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCScheduler.pkg issue #1425: modifing pkg files for Lua 2012-08-21 18:42:35 +08:00
CCSprite.pkg [Lua] fix luabinding overloaded functions 2012-09-17 14:40:42 +08:00
CCSpriteBatchNode.pkg [Lua] fix luabinding overloaded functions 2012-09-17 14:40:42 +08:00
CCSpriteFrame.pkg [Lua] fix luabinding overloaded functions 2012-09-17 14:40:42 +08:00
CCSpriteFrameCache.pkg update for msvc2010 2012-04-09 00:10:12 +08:00
CCString.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCTMXLayer.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCTMXObjectGroup.pkg fixed #1190: Updated some .pkg files. 2012-04-26 14:32:17 +08:00
CCTMXTiledMap.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCTMXXMLParser.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCTextFieldTTF.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCTexture2D.pkg [Lua] add ccTexParams, add new luabinding build script, update luabinding 2012-09-20 23:37:23 +08:00
CCTextureAtlas.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCTextureCache.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCTileMapAtlas.pkg update tolua++ pkg files 2012-08-28 14:53:52 +08:00
CCTouch.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
CCTransition.pkg fix compile: rename kOrientation to kCCTransitionOrientation 2012-11-17 19:02:04 +01:00
CCTransitionProgress.pkg issue #1425: modifing pkg files for Lua 2012-08-21 18:42:35 +08:00
CCUserDefault.pkg issue #1425: change the interfaces in .pkg files to satisfy the current 2012-08-10 18:14:04 +08:00
Cocos2d.pkg Merge branch 'gles20' of git://github.com/cocos2d/cocos2d-x into gles20 2012-08-31 09:47:03 +08:00
README move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
SimpleAudioEngine.pkg fixed #1201: simplify the writing of Android.mk and correct corresponding template 2012-05-02 17:29:16 +08:00
basic.lua Merge branch 'gles20' of git://github.com/cocos2d/cocos2d-x into gles20 2012-08-31 09:47:03 +08:00
build.php Update tools/tolua++/build.php 2012-11-15 19:25:08 +08:00
build.xml issue #1399:lua building works ok after adjusting directory structure 2012-07-23 17:14:18 +08:00
build_macosx.xml issue #1399:lua building works ok after adjusting directory structure 2012-07-23 17:14:18 +08:00
ccTypes.pkg Merge branch 'gles20' of git://github.com/cocos2d/cocos2d-x into gles20 2012-08-31 09:47:03 +08:00
matrix.pkg update tolua++ pkg files 2012-08-28 14:53:52 +08:00
tolua++.Mac.zip.REMOVED.git-id update tolua++ for mac 2012-09-04 09:56:55 +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