axmol/tools/tolua++
James Chen 1a44f776f8 fixed #2005: Adding CurrentLanguageTest for Testlua. 2013-04-07 16:34:07 +08:00
..
CCAction.pkg issue #1803:add SpriteOffsetAnchorRotationalSkewScale 2013-03-14 15:11:55 +08:00
CCActionCamera.pkg issue #1425: 
1.fixed some bugs in .lua file. like this:local b = a:copy():autorelease() 2013-02-28 10:23:30 +08:00
CCActionCatmullRom.pkg issue #1425: 
1.fixed some bugs in .lua file. like this:local b = a:copy():autorelease() 2013-02-28 10:23:30 +08:00
CCActionEase.pkg issue #1425: 
1.fixed some bugs in .lua file. like this:local b = a:copy():autorelease() 2013-02-28 10:23:30 +08:00
CCActionGrid.pkg issue #1425: 
1.fixed some bugs in .lua file. like this:local b = a:copy():autorelease() 2013-02-28 10:23:30 +08:00
CCActionGrid3D.pkg issue #1425: 
1.fixed some bugs in .lua file. like this:local b = a:copy():autorelease() 2013-02-28 10:23:30 +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 issue #1625: Updated lua pkg files. 2012-12-27 11:47:49 +08:00
CCActionProgressTimer.pkg issue #1425: 
1.fixed some bugs in .lua file. like this:local b = a:copy():autorelease() 2013-02-28 10:23:30 +08:00
CCActionTiledGrid.pkg issue #1425: 
1.fixed some bugs in .lua file. like this:local b = a:copy():autorelease() 2013-02-28 10:23:30 +08:00
CCAffineTransform.pkg update tolua++ pkg files 2012-08-28 14:53:52 +08:00
CCAnimation.pkg issue #1425: 
1.fixed some bugs in .lua file. like this:local b = a:copy():autorelease() 2013-02-28 10:23:30 +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 fixed #2005: Adding CurrentLanguageTest for Testlua. 2013-04-07 16:34:07 +08:00
CCArray.pkg issue #1425: 
1.fixed some bugs in .lua file. like this:local b = a:copy():autorelease() 2013-02-28 10:23:30 +08:00
CCAtlasNode.pkg fixed #1942: LayerTest for TestLua is ok. 2013-04-02 17:52:08 +08:00
CCCamera.pkg fixed #1292: Updated lua bindings. 2012-06-15 17:26:11 +08:00
CCCommon.pkg [luabinding] remove duplicate ccLanguageType 2012-12-02 16:17:17 +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 fixed #1998: Adding SceneTest.lua for TestLua. 2013-04-03 18:14:03 +08:00
CCDrawingPrimitives.pkg ccDrawCircle() add scaleX and scaleY 2012-09-14 18:00:11 +08:00
CCEGLViewProtocol.pkg feature #1802:add touches lua test 2013-03-07 11:55:57 +08:00
CCFileUtils.pkg issue #1702:fix a typo error 2013-02-06 18:04:40 +08:00
CCGeometry.pkg fixed #1731:change struct to class 2013-02-25 10:22:03 +08:00
CCImage.pkg Adding RenderTexture test for TestLua. 2013-04-05 17:13:46 +08:00
CCKeypadDispatcher.pkg update luabinding 2012-12-02 15:48:15 +08:00
CCLabelAtlas.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCLabelBMFont.pkg fixed #1942: LayerTest for TestLua is ok. 2013-04-02 17:52:08 +08:00
CCLabelTTF.pkg Updating CCLabelBMFont.pkg, CCLabelTTF.pkg, and updating luabinding. 2013-04-01 17:39:26 +08:00
CCLayer.pkg fixed #1814: MenuTest for Testlua is ok. 2013-04-03 16:29:16 +08:00
CCMenu.pkg fixed #1814: MenuTest for Testlua is ok. 2013-04-03 16:29:16 +08:00
CCMenuItem.pkg fixed #1814: MenuTest for Testlua is ok. 2013-04-03 16:29:16 +08:00
CCMotionStreak.pkg fixed #1942: LayerTest for TestLua is ok. 2013-04-02 17:52:08 +08:00
CCNode.pkg fixed #1942: LayerTest for TestLua is ok. 2013-04-02 17:52:08 +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 issue #1425: exist lua test case is ok. 2013-03-01 17:09:42 +08:00
CCPointExtension.pkg issue #1731:change CCSize, CCPoint and CCRect to struct in pkg files 2013-02-19 10:08:25 +08:00
CCProgressTimer.pkg fixed #1942: LayerTest for TestLua is ok. 2013-04-02 17:52:08 +08:00
CCProtocols.pkg fixed #1942: LayerTest for TestLua is ok. 2013-04-02 17:52:08 +08:00
CCRenderTexture.pkg Adding RenderTexture test for TestLua. 2013-04-05 17:13:46 +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
CCSet.pkg issue #1425:exist lua test case is ok! 2013-03-05 14:46:18 +08:00
CCSprite.pkg fixed #1942: LayerTest for TestLua is ok. 2013-04-02 17:52:08 +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 Adding Texture2dTest. And format some lua codes. 2013-04-05 16:13:04 +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 issue #1625: Updated lua pkg files. 2012-12-27 11:47:49 +08:00
CCTouch.pkg Removed the definition of the touch event type . 2013-02-20 12:06:12 +08:00
CCTouchDispatcher.pkg update luabinding 2012-12-02 15:48:15 +08:00
CCTransition.pkg issue #1625: Updated lua pkg files. 2012-12-27 11:47:49 +08: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 Adding RenderTexture test for TestLua. 2013-04-05 17:13:46 +08:00
Makefile Cleanup the tolua++ bindings build system. 2013-03-08 11:09:10 -08:00
README Cleanup the tolua++ bindings build system. 2013-03-08 11:09:10 -08:00
SimpleAudioEngine.pkg Adding CocosDenshionTest. 2013-04-06 14:32:46 +08:00
basic.lua Adding RenderTexture test for TestLua. 2013-04-05 17:13:46 +08:00
build.bat Cleanup the tolua++ bindings build system. 2013-03-08 11:09:10 -08:00
build.sh Cleanup the tolua++ bindings build system. 2013-03-08 11:09:10 -08:00
ccTypes.pkg issue #1425:exist lua test case is ok! 2013-03-05 14:46:18 +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++

    Build scripts for windows (build.bat) and unix (build.sh) are provided
    to generate the relevant files after modifying the .pkg files.  These
    scripts basically run the following command:

        tolua++.exe -L basic.lua -o LuaCocos2d.cpp Cocos2d.pkg

    This will generate the bindings file and patch it with come cocos2dx
    specific modifications.

    On POSIX systems you can also just run "make" to build the bindings
    if/when you change .pkg files.

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