[AUTO]: updating luabinding automatically

This commit is contained in:
CocosRobot 2014-09-29 10:11:17 +00:00
parent 8a5829631d
commit 50a06a13ad
12 changed files with 1144 additions and 798 deletions

View File

@ -0,0 +1,64 @@
--------------------------------
-- @module AABB
-- @parent_module cc
--------------------------------
-- reset min and max value.
-- @function [parent=#AABB] reset
-- @param self
--------------------------------
-- Sets this bounding box to the specified values.
-- @function [parent=#AABB] set
-- @param self
-- @param #vec3_table min
-- @param #vec3_table max
--------------------------------
-- Transforms the bounding box by the given transformation matrix.
-- @function [parent=#AABB] transform
-- @param self
-- @param #mat4_table mat
--------------------------------
-- Gets the center point of the bounding box.
-- @function [parent=#AABB] getCenter
-- @param self
-- @return vec3_table#vec3_table ret (return value: vec3_table)
--------------------------------
--
-- @function [parent=#AABB] isEmpty
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
--
-- @function [parent=#AABB] getCorners
-- @param self
-- @param #vec3_table dst
--------------------------------
-- update the _min and _max from the given point.
-- @function [parent=#AABB] updateMinMax
-- @param self
-- @param #vec3_table point
-- @param #long num
--------------------------------
-- check whether the point is in.
-- @function [parent=#AABB] containPoint
-- @param self
-- @param #vec3_table point
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @overload self, vec3_table, vec3_table
-- @overload self
-- @function [parent=#AABB] AABB
-- @param self
-- @param #vec3_table min
-- @param #vec3_table max
return nil

View File

@ -0,0 +1,41 @@
--------------------------------
-- @module BillBoard
-- @extend Sprite
-- @parent_module cc
--------------------------------
-- Get the billboard rotation mode.
-- @function [parent=#BillBoard] getMode
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
-- Set the billboard rotation mode.
-- @function [parent=#BillBoard] setMode
-- @param self
-- @param #int mode
--------------------------------
-- @overload self, string, int
-- @overload self, int
-- @overload self, string, rect_table, int
-- @function [parent=#BillBoard] create
-- @param self
-- @param #string filename
-- @param #rect_table rect
-- @param #int mode
-- @return BillBoard#BillBoard ret (retunr value: cc.BillBoard)
--------------------------------
-- Creates a BillBoard with a Texture2D object.<br>
-- After creation, the rect will be the size of the texture, and the offset will be (0,0).<br>
-- param texture A pointer to a Texture2D object.<br>
-- return An autoreleased BillBoard object
-- @function [parent=#BillBoard] createWithTexture
-- @param self
-- @param #cc.Texture2D texture
-- @param #int mode
-- @return BillBoard#BillBoard ret (return value: cc.BillBoard)
return nil

View File

@ -54,14 +54,6 @@
-- @param self
-- @param #int flag
--------------------------------
-- Convert the specified point of viewport from screenspace coordinate into the worldspace coordinate.
-- @function [parent=#Camera] unproject
-- @param self
-- @param #size_table viewport
-- @param #vec3_table src
-- @param #vec3_table dst
--------------------------------
-- create default camera, the camera type depends on Director::getProjection
-- @function [parent=#Camera] create

View File

@ -4,12 +4,6 @@
-- @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
@ -17,24 +11,12 @@
-- @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
@ -47,74 +29,18 @@
-- @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

View File

@ -619,13 +619,6 @@
-- @param self
-- @param #string name
--------------------------------
-- @overload self, cc.AffineTransform
-- @overload self, mat4_table
-- @function [parent=#Node] setAdditionalTransform
-- @param self
-- @param #mat4_table additionalTransform
--------------------------------
--
-- @function [parent=#Node] getDisplayedOpacity

View File

@ -0,0 +1,40 @@
--------------------------------
-- @module OBB
-- @parent_module cc
--------------------------------
--
-- @function [parent=#OBB] reset
-- @param self
--------------------------------
--
-- @function [parent=#OBB] set
-- @param self
-- @param #vec3_table center
-- @param #vec3_table _xAxis
-- @param #vec3_table _yAxis
-- @param #vec3_table _zAxis
-- @param #vec3_table _extents
--------------------------------
-- Transforms the obb by the given transformation matrix.
-- @function [parent=#OBB] transform
-- @param self
-- @param #mat4_table mat
--------------------------------
--
-- @function [parent=#OBB] getCorners
-- @param self
-- @param #vec3_table verts
--------------------------------
--
-- @function [parent=#OBB] containPoint
-- @param self
-- @param #vec3_table point
-- @return bool#bool ret (return value: bool)
return nil

View File

@ -22,12 +22,6 @@
-- @function [parent=#Sprite3D] removeAllAttachNode
-- @param self
--------------------------------
--
-- @function [parent=#Sprite3D] setBlendFunc
-- @param self
-- @param #cc.BlendFunc blendFunc
--------------------------------
-- get mesh
-- @function [parent=#Sprite3D] getMesh

View File

@ -1,6 +1,16 @@
--------------------------------
-- @module cc
--------------------------------------------------------
-- the cc AABB
-- @field [parent=#cc] AABB#AABB AABB preloaded module
--------------------------------------------------------
-- the cc OBB
-- @field [parent=#cc] OBB#OBB OBB preloaded module
--------------------------------------------------------
-- the cc Skeleton3D
-- @field [parent=#cc] Skeleton3D#Skeleton3D Skeleton3D preloaded module
@ -31,4 +41,9 @@
-- @field [parent=#cc] AttachNode#AttachNode AttachNode preloaded module
--------------------------------------------------------
-- the cc BillBoard
-- @field [parent=#cc] BillBoard#BillBoard BillBoard preloaded module
return nil

File diff suppressed because it is too large Load Diff

View File

@ -57,6 +57,14 @@ int register_all_cocos2dx_3d(lua_State* tolua_S);

View File

@ -6331,59 +6331,6 @@ int lua_cocos2dx_Node_setName(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_Node_setAdditionalTransform(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Node* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setAdditionalTransform'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
do{
if (argc == 1) {
cocos2d::AffineTransform arg0;
ok &= luaval_to_affinetransform(tolua_S, 2, &arg0, "cc.Node:setAdditionalTransform");
if (!ok) { break; }
cobj->setAdditionalTransform(arg0);
return 0;
}
}while(0);
ok = true;
do{
if (argc == 1) {
cocos2d::Mat4* arg0;
ok &= luaval_to_object<cocos2d::Mat4>(tolua_S, 2, "cc.Mat4",&arg0);
if (!ok) { break; }
cobj->setAdditionalTransform(arg0);
return 0;
}
}while(0);
ok = true;
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setAdditionalTransform",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setAdditionalTransform'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Node_getDisplayedOpacity(lua_State* tolua_S)
{
int argc = 0;
@ -8933,7 +8880,6 @@ int lua_register_cocos2dx_Node(lua_State* tolua_S)
tolua_function(tolua_S,"getDisplayedColor",lua_cocos2dx_Node_getDisplayedColor);
tolua_function(tolua_S,"getActionByTag",lua_cocos2dx_Node_getActionByTag);
tolua_function(tolua_S,"setName",lua_cocos2dx_Node_setName);
tolua_function(tolua_S,"setAdditionalTransform",lua_cocos2dx_Node_setAdditionalTransform);
tolua_function(tolua_S,"getDisplayedOpacity",lua_cocos2dx_Node_getDisplayedOpacity);
tolua_function(tolua_S,"getLocalZOrder",lua_cocos2dx_Node_getLocalZOrder);
tolua_function(tolua_S,"getScheduler",lua_cocos2dx_Node_getScheduler);
@ -16383,58 +16329,6 @@ int lua_cocos2dx_Camera_setCameraFlag(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_Camera_unproject(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Camera* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_unproject'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 3)
{
cocos2d::Size arg0;
cocos2d::Vec3* arg1;
cocos2d::Vec3* arg2;
ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.Camera:unproject");
ok &= luaval_to_object<cocos2d::Vec3>(tolua_S, 3, "cc.Vec3",&arg1);
ok &= luaval_to_object<cocos2d::Vec3>(tolua_S, 4, "cc.Vec3",&arg2);
if(!ok)
return 0;
cobj->unproject(arg0, arg1, arg2);
return 0;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:unproject",argc, 3);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_unproject'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Camera_create(lua_State* tolua_S)
{
int argc = 0;
@ -16594,7 +16488,6 @@ int lua_register_cocos2dx_Camera(lua_State* tolua_S)
tolua_function(tolua_S,"getType",lua_cocos2dx_Camera_getType);
tolua_function(tolua_S,"lookAt",lua_cocos2dx_Camera_lookAt);
tolua_function(tolua_S,"setCameraFlag",lua_cocos2dx_Camera_setCameraFlag);
tolua_function(tolua_S,"unproject",lua_cocos2dx_Camera_unproject);
tolua_function(tolua_S,"create", lua_cocos2dx_Camera_create);
tolua_function(tolua_S,"createPerspective", lua_cocos2dx_Camera_createPerspective);
tolua_function(tolua_S,"createOrthographic", lua_cocos2dx_Camera_createOrthographic);

View File

@ -1577,8 +1577,6 @@ int register_all_cocos2dx(lua_State* tolua_S);