axmol/tools/tolua++
boyu0 41cac18ae2 edit for lua 2013-07-29 14:04:51 +08:00
..
CCAction.pkg issue #2404:Add more functions to Deprecated.lua and modify some .pkg files 2013-07-25 19:58:59 +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 #2300: copy --> clone for luabinding. 2013-06-19 12:08:26 +08:00
CCActionGrid.pkg issue #2404:Move deprecated functions to Deprecated.lua 2013-07-18 23:27:07 +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 #2404:Add many functions to Deprecated.lua 2013-07-22 13:42:58 +08:00
CCActionPageTurn3D.pkg
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
CCAnimation.pkg issue #2404:Add more functions to Deprecated.lua and modify some .pkg files 2013-07-25 19:58:59 +08:00
CCAnimationCache.pkg issue #2404:Move deprecated functions to Deprecated.lua 2013-07-18 23:27:07 +08:00
CCApplication.pkg issue #2404:Move deprecated functions to Deprecated.lua 2013-07-18 23:27: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 issue #2129:modify pkg files 2013-07-08 11:34:31 +08:00
CCCamera.pkg
CCCommon.pkg
CCControl.pkg issue #2377:Del register/unregister function in .cpp and .h files 2013-07-16 09:55:06 +08:00
CCControlButton.pkg issue #2129:modify pkg files 2013-07-08 11:34:31 +08:00
CCControlColourPicker.pkg issue #2129:modify pkg files 2013-07-08 11:34:31 +08:00
CCControlPotentiometer.pkg issue #2103 add more test lua 2013-05-24 11:42:27 +08:00
CCControlSlider.pkg issue #2103 add more test lua 2013-05-24 11:42:27 +08:00
CCControlStepper.pkg issue #2103 add more test lua 2013-05-24 11:42:27 +08:00
CCControlSwitch.pkg issue #2103 add more test lua 2013-05-24 11:42:27 +08:00
CCDictionary.pkg
CCDirector.pkg issue #2404:Move deprecated functions to Deprecated.lua 2013-07-18 23:27:07 +08:00
CCDrawNode.pkg issue #2426:Add Drawprimitives.lua and Drawprimitives lua test sample 2013-07-27 00:28:06 +08:00
CCEGLViewProtocol.pkg issue #2404:Move deprecated functions to Deprecated.lua 2013-07-18 23:27:07 +08:00
CCEditBox.pkg issue #2129:modify pkg files 2013-07-08 11:34:31 +08:00
CCFileUtils.pkg issue #2404:Move deprecated functions to Deprecated.lua 2013-07-18 23:27:07 +08:00
CCGeometry.pkg issue #2404:Move deprecated functions to Deprecated.lua 2013-07-18 23:27:07 +08:00
CCImage.pkg edit for lua 2013-07-29 14:04:51 +08:00
CCInteger.pkg issue #2103 add a newline to CCInterger.pkg 2013-05-23 15:49:06 +08:00
CCKeypadDispatcher.pkg
CCLabelAtlas.pkg issue #2373:add const in pkg files 2013-07-04 12:50:17 +08:00
CCLabelBMFont.pkg issue #2129:modify pkg files 2013-07-08 11:34:31 +08:00
CCLabelTTF.pkg issue #2373:add const in pkg files 2013-07-04 12:50:17 +08:00
CCLayer.pkg issue #2404:modify a function name to isSwallowsTouches() 2013-07-26 15:21:19 +08:00
CCMenu.pkg issue #2129:modify pkg files 2013-07-08 11:34:31 +08:00
CCMenuItem.pkg issue #2404:Add many functions to Deprecated.lua 2013-07-22 13:42:58 +08:00
CCMotionStreak.pkg issue #2129:modify pkg files 2013-07-08 11:34:31 +08:00
CCNode.pkg Fixing Luabinding errors. 2013-07-26 13:50:10 +08:00
CCNotificationCenter.pkg issue #2404:Move deprecated functions to Deprecated.lua 2013-07-18 23:27:07 +08:00
CCObject.pkg issue #2300: Removing all 'copyWithZone' pattern. 2013-07-08 23:05:47 +08:00
CCParallaxNode.pkg
CCParticleBatchNode.pkg issue #2129:modify pkg files 2013-07-08 11:34:31 +08:00
CCParticleExamples.pkg
CCParticleSystem.pkg Fixing Luabinding errors. 2013-07-26 13:50:10 +08:00
CCPointExtension.pkg issue #2404:Move deprecated functions to Deprecated.lua 2013-07-18 23:27:07 +08:00
CCProgressTimer.pkg issue #2129:modify pkg files 2013-07-08 11:34:31 +08:00
CCProtocols.pkg issue #2129:modify pkg files 2013-07-08 11:34:31 +08:00
CCRenderTexture.pkg Adding RenderTexture test for TestLua. 2013-04-05 17:13:46 +08:00
CCRibbon.pkg issue #2129:modify pkg files 2013-07-08 11:34:31 +08:00
CCScale9Sprite.pkg issue #2129:modify pkg files 2013-07-08 11:34:31 +08:00
CCScene.pkg
CCScheduler.pkg issue #2404:Add many functions to Deprecated.lua 2013-07-22 13:42:58 +08:00
CCSet.pkg issue #1425:exist lua test case is ok! 2013-03-05 14:46:18 +08:00
CCSprite.pkg issue #2129:modify pkg files 2013-07-08 11:34:31 +08:00
CCSpriteBatchNode.pkg issue #2129:modify pkg files 2013-07-08 11:34:31 +08:00
CCSpriteFrame.pkg issue #2373:add const in pkg files 2013-07-04 12:50:17 +08:00
CCSpriteFrameCache.pkg issue #2404:Add many functions to Deprecated.lua 2013-07-22 13:42:58 +08:00
CCString.pkg
CCTMXLayer.pkg issue #2404:Add more functions to Deprecated.lua and modify some .pkg files 2013-07-25 19:58:59 +08:00
CCTMXObjectGroup.pkg issue #2404:Add more functions to Deprecated.lua and modify some .pkg files 2013-07-25 19:58:59 +08:00
CCTMXTiledMap.pkg issue #2404:Add more functions to Deprecated.lua and modify some .pkg files 2013-07-25 19:58:59 +08:00
CCTMXXMLParser.pkg issue #2404:Modify tab to spaces 2013-07-25 20:03:58 +08:00
CCTextFieldTTF.pkg issue #2129:modify pkg files 2013-07-08 11:34:31 +08:00
CCTexture2D.pkg Fixing Luabinding errors. 2013-07-26 13:50:10 +08:00
CCTextureAtlas.pkg issue #2129:modify pkg files 2013-07-08 11:34:31 +08:00
CCTextureCache.pkg edit for lua 2013-07-29 14:04:51 +08:00
CCTileMapAtlas.pkg issue #2404:Add many functions to Deprecated.lua 2013-07-22 13:42:58 +08:00
CCTouch.pkg
CCTouchDispatcher.pkg
CCTransition.pkg issue #2129:modify pkg files 2013-07-08 11:34:31 +08:00
CCTransitionProgress.pkg
CCUserDefault.pkg issue #2404:Move deprecated functions to Deprecated.lua 2013-07-18 23:27:07 +08:00
Cocos2d.pkg issue #2426:Add Drawprimitives and DrawNode lua binding and modify releated test sample 2013-07-27 10:42:22 +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 issue #2404:Add many functions to Deprecated.lua 2013-07-22 13:42:58 +08:00
basic.lua Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into DrawNode 2013-07-27 00:36:20 +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 #2404:Add more functions to Deprecated.lua and modify some .pkg files 2013-07-25 19:58:59 +08:00
matrix.pkg
tolua++.Mac.zip.REMOVED.git-id
tolua++.rar.REMOVED.git-id

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