[AUTO]: updating luabinding automatically

This commit is contained in:
CocosRobot 2014-09-10 01:52:43 +00:00
parent 574dca0a04
commit 0e49107514
12 changed files with 580 additions and 3415 deletions

View File

@ -1,82 +0,0 @@
--------------------------------
-- @module Animate3D
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
--
-- @function [parent=#Animate3D] setSpeed
-- @param self
-- @param #float speed
--------------------------------
--
-- @function [parent=#Animate3D] setWeight
-- @param self
-- @param #float weight
--------------------------------
-- get & set speed, negative speed means playing reverse
-- @function [parent=#Animate3D] getSpeed
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- get & set blend weight, weight must positive
-- @function [parent=#Animate3D] getWeight
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- @overload self, cc.Animation3D, float, float
-- @overload self, cc.Animation3D
-- @function [parent=#Animate3D] create
-- @param self
-- @param #cc.Animation3D animation
-- @param #float fromTime
-- @param #float duration
-- @return Animate3D#Animate3D ret (retunr value: cc.Animate3D)
--------------------------------
-- animate transistion time
-- @function [parent=#Animate3D] getTransitionTime
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
--
-- @function [parent=#Animate3D] startWithTarget
-- @param self
-- @param #cc.Node target
--------------------------------
--
-- @function [parent=#Animate3D] reverse
-- @param self
-- @return Animate3D#Animate3D ret (return value: cc.Animate3D)
--------------------------------
--
-- @function [parent=#Animate3D] clone
-- @param self
-- @return Animate3D#Animate3D ret (return value: cc.Animate3D)
--------------------------------
--
-- @function [parent=#Animate3D] stop
-- @param self
--------------------------------
--
-- @function [parent=#Animate3D] update
-- @param self
-- @param #float t
--------------------------------
--
-- @function [parent=#Animate3D] step
-- @param self
-- @param #float dt
return nil

View File

@ -1,21 +0,0 @@
--------------------------------
-- @module Animation3D
-- @extend Ref
-- @parent_module cc
--------------------------------
-- get duration
-- @function [parent=#Animation3D] getDuration
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- read all animation or only the animation with given animationName? animationName == "" read the first.
-- @function [parent=#Animation3D] create
-- @param self
-- @param #string filename
-- @param #string animationName
-- @return Animation3D#Animation3D ret (return value: cc.Animation3D)
return nil

View File

@ -1,29 +0,0 @@
--------------------------------
-- @module AttachNode
-- @extend Node
-- @parent_module cc
--------------------------------
-- creates an AttachNode<br>
-- param attachBone The bone to which the AttachNode is going to attach, the attacheBone must be a bone of the AttachNode's parent
-- @function [parent=#AttachNode] create
-- @param self
-- @param #cc.Bone3D attachBone
-- @return AttachNode#AttachNode ret (return value: cc.AttachNode)
--------------------------------
--
-- @function [parent=#AttachNode] getWorldToNodeTransform
-- @param self
-- @return mat4_table#mat4_table ret (return value: mat4_table)
--------------------------------
--
-- @function [parent=#AttachNode] visit
-- @param self
-- @param #cc.Renderer renderer
-- @param #mat4_table parentTransform
-- @param #unsigned int parentFlags
return nil

View File

@ -1,124 +0,0 @@
--------------------------------
-- @module Mesh
-- @extend Ref
-- @parent_module cc
--------------------------------
-- get mesh vertex attribute count
-- @function [parent=#Mesh] getMeshVertexAttribCount
-- @param self
-- @return long#long ret (return value: long)
--------------------------------
-- @overload self, cc.Texture2D
-- @overload self, string
-- @function [parent=#Mesh] setTexture
-- @param self
-- @param #string texPath
--------------------------------
-- mesh index data getter
-- @function [parent=#Mesh] getMeshIndexData
-- @param self
-- @return MeshIndexData#MeshIndexData ret (return value: cc.MeshIndexData)
--------------------------------
--
-- @function [parent=#Mesh] getTexture
-- @param self
-- @return Texture2D#Texture2D ret (return value: cc.Texture2D)
--------------------------------
-- skin getter
-- @function [parent=#Mesh] getSkin
-- @param self
-- @return MeshSkin#MeshSkin ret (return value: cc.MeshSkin)
--------------------------------
-- name getter
-- @function [parent=#Mesh] getName
-- @param self
-- @return string#string ret (return value: string)
--------------------------------
--
-- @function [parent=#Mesh] setBlendFunc
-- @param self
-- @param #cc.BlendFunc blendFunc
--------------------------------
-- get index format
-- @function [parent=#Mesh] getIndexFormat
-- @param self
-- @return unsigned int#unsigned int ret (return value: unsigned int)
--------------------------------
-- get per vertex size in bytes
-- @function [parent=#Mesh] getVertexSizeInBytes
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
--
-- @function [parent=#Mesh] getBlendFunc
-- @param self
-- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc)
--------------------------------
-- get GLProgramState
-- @function [parent=#Mesh] getGLProgramState
-- @param self
-- @return GLProgramState#GLProgramState ret (return value: cc.GLProgramState)
--------------------------------
-- get index count
-- @function [parent=#Mesh] getIndexCount
-- @param self
-- @return long#long ret (return value: long)
--------------------------------
-- get vertex buffer
-- @function [parent=#Mesh] getVertexBuffer
-- @param self
-- @return unsigned int#unsigned int ret (return value: unsigned int)
--------------------------------
-- get MeshVertexAttribute by index
-- @function [parent=#Mesh] getMeshVertexAttribute
-- @param self
-- @param #int idx
-- @return MeshVertexAttrib#MeshVertexAttrib ret (return value: cc.MeshVertexAttrib)
--------------------------------
--
-- @function [parent=#Mesh] isVisible
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- get index buffer
-- @function [parent=#Mesh] getIndexBuffer
-- @param self
-- @return unsigned int#unsigned int ret (return value: unsigned int)
--------------------------------
-- has vertex attribute?
-- @function [parent=#Mesh] hasVertexAttrib
-- @param self
-- @param #int attrib
-- @return bool#bool ret (return value: bool)
--------------------------------
-- get primitive type
-- @function [parent=#Mesh] getPrimitiveType
-- @param self
-- @return unsigned int#unsigned int ret (return value: unsigned int)
--------------------------------
-- visible getter and setter
-- @function [parent=#Mesh] setVisible
-- @param self
-- @param #bool visible
return nil

View File

@ -1,52 +0,0 @@
--------------------------------
-- @module Skeleton3D
-- @extend Ref
-- @parent_module cc
--------------------------------
--
-- @function [parent=#Skeleton3D] getBoneByName
-- @param self
-- @param #string id
-- @return Bone3D#Bone3D ret (return value: cc.Bone3D)
--------------------------------
--
-- @function [parent=#Skeleton3D] getRootBone
-- @param self
-- @param #int index
-- @return Bone3D#Bone3D ret (return value: cc.Bone3D)
--------------------------------
-- refresh bone world matrix
-- @function [parent=#Skeleton3D] updateBoneMatrix
-- @param self
--------------------------------
-- get bone
-- @function [parent=#Skeleton3D] getBoneByIndex
-- @param self
-- @param #unsigned int index
-- @return Bone3D#Bone3D ret (return value: cc.Bone3D)
--------------------------------
-- get & set root bone
-- @function [parent=#Skeleton3D] getRootCount
-- @param self
-- @return long#long ret (return value: long)
--------------------------------
-- get bone index
-- @function [parent=#Skeleton3D] getBoneIndex
-- @param self
-- @param #cc.Bone3D bone
-- @return int#int ret (return value: int)
--------------------------------
-- get total bone count
-- @function [parent=#Skeleton3D] getBoneCount
-- @param self
-- @return long#long ret (return value: long)
return nil

View File

@ -1,110 +0,0 @@
--------------------------------
-- @module Sprite3D
-- @extend Node,BlendProtocol
-- @parent_module cc
--------------------------------
--
-- @function [parent=#Sprite3D] setCullFaceEnabled
-- @param self
-- @param #bool enable
--------------------------------
-- @overload self, cc.Texture2D
-- @overload self, string
-- @function [parent=#Sprite3D] setTexture
-- @param self
-- @param #string texFile
--------------------------------
-- remove all attach nodes
-- @function [parent=#Sprite3D] removeAllAttachNode
-- @param self
--------------------------------
--
-- @function [parent=#Sprite3D] setBlendFunc
-- @param self
-- @param #cc.BlendFunc blendFunc
--------------------------------
-- get mesh
-- @function [parent=#Sprite3D] getMesh
-- @param self
-- @return Mesh#Mesh ret (return value: cc.Mesh)
--------------------------------
--
-- @function [parent=#Sprite3D] getBlendFunc
-- @param self
-- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc)
--------------------------------
--
-- @function [parent=#Sprite3D] setCullFace
-- @param self
-- @param #unsigned int cullFace
--------------------------------
-- remove attach node
-- @function [parent=#Sprite3D] removeAttachNode
-- @param self
-- @param #string boneName
--------------------------------
-- get SubMeshState by index
-- @function [parent=#Sprite3D] getMeshByIndex
-- @param self
-- @param #int index
-- @return Mesh#Mesh ret (return value: cc.Mesh)
--------------------------------
-- get SubMeshState by Name
-- @function [parent=#Sprite3D] getMeshByName
-- @param self
-- @param #string name
-- @return Mesh#Mesh ret (return value: cc.Mesh)
--------------------------------
--
-- @function [parent=#Sprite3D] getSkeleton
-- @param self
-- @return Skeleton3D#Skeleton3D ret (return value: cc.Skeleton3D)
--------------------------------
-- get AttachNode by bone name, return nullptr if not exist
-- @function [parent=#Sprite3D] getAttachNode
-- @param self
-- @param #string boneName
-- @return AttachNode#AttachNode ret (return value: cc.AttachNode)
--------------------------------
-- @overload self, string, string
-- @overload self, string
-- @function [parent=#Sprite3D] create
-- @param self
-- @param #string modelPath
-- @param #string texturePath
-- @return Sprite3D#Sprite3D ret (retunr value: cc.Sprite3D)
--------------------------------
-- Returns 2d bounding-box<br>
-- Note: the bouding-box is just get from the AABB which as Z=0, so that is not very accurate.
-- @function [parent=#Sprite3D] getBoundingBox
-- @param self
-- @return rect_table#rect_table ret (return value: rect_table)
--------------------------------
-- set GLProgramState, you should bind attributes by yourself
-- @function [parent=#Sprite3D] setGLProgramState
-- @param self
-- @param #cc.GLProgramState glProgramState
--------------------------------
-- just rember bind attributes
-- @function [parent=#Sprite3D] setGLProgram
-- @param self
-- @param #cc.GLProgram glprogram
return nil

View File

@ -1,34 +1,4 @@
--------------------------------
-- @module cc
--------------------------------------------------------
-- the cc Skeleton3D
-- @field [parent=#cc] Skeleton3D#Skeleton3D Skeleton3D preloaded module
--------------------------------------------------------
-- the cc Sprite3D
-- @field [parent=#cc] Sprite3D#Sprite3D Sprite3D preloaded module
--------------------------------------------------------
-- the cc Mesh
-- @field [parent=#cc] Mesh#Mesh Mesh preloaded module
--------------------------------------------------------
-- the cc Animation3D
-- @field [parent=#cc] Animation3D#Animation3D Animation3D preloaded module
--------------------------------------------------------
-- the cc Animate3D
-- @field [parent=#cc] Animate3D#Animate3D Animate3D preloaded module
--------------------------------------------------------
-- the cc AttachNode
-- @field [parent=#cc] AttachNode#AttachNode AttachNode preloaded module
return nil

View File

@ -731,6 +731,11 @@
-- @field [parent=#cc] CatmullRomBy#CatmullRomBy CatmullRomBy preloaded module
--------------------------------------------------------
-- the cc ProtectedNode
-- @field [parent=#cc] ProtectedNode#ProtectedNode ProtectedNode preloaded module
--------------------------------------------------------
-- the cc GLProgramState
-- @field [parent=#cc] GLProgramState#GLProgramState GLProgramState preloaded module
@ -1206,9 +1211,4 @@
-- @field [parent=#cc] Component#Component Component preloaded module
--------------------------------------------------------
-- the cc ProtectedNode
-- @field [parent=#cc] ProtectedNode#ProtectedNode ProtectedNode preloaded module
return nil

File diff suppressed because it is too large Load Diff

View File

@ -12,58 +12,4 @@ extern "C" {
int register_all_cocos2dx_3d(lua_State* tolua_S);
#endif // __cocos2dx_3d_h__

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
#include "lua_cocos2dx_controller_auto.hpp"
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
#include "base/CCGameController.h"
#include "CCGameController.h"
#include "tolua_fix.h"
#include "LuaBasicConversions.h"