cocos2d-x  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lua_cocos2dx_3d_manual.h File Reference
#include "tolua++.h"

Functions

TOLUA_API int  (lua_State *L)
 Call this function can import the lua bindings for the cocos3d module. More...
 

Function Documentation

TOLUA_API int
register_cocos3d_module
( lua_State *  L)

Call this function can import the lua bindings for the cocos3d module.

After registering, we could call the related cocos3d code conveniently in the lua.eg,.cc.Sprite3D:create(modlepath). If you don't want to use the cocos3d module in the lua, you only don't call this registering function. If you don't register the cocos3d module, the package size would become smaller . The current mechanism,this function is called in the lua_module_register.h

var register_cocos3d_module ( var  L)

Call this function can import the lua bindings for the cocos3d module.

After registering, we could call the related cocos3d code conveniently in the lua.eg,.cc.Sprite3D:create(modlepath). If you don't want to use the cocos3d module in the lua, you only don't call this registering function. If you don't register the cocos3d module, the package size would become smaller . The current mechanism,this function is called in the lua_module_register.h

local register_cocos3d_module ( local  L)

Call this function can import the lua bindings for the cocos3d module.

After registering, we could call the related cocos3d code conveniently in the lua.eg,.cc.Sprite3D:create(modlepath). If you don't want to use the cocos3d module in the lua, you only don't call this registering function. If you don't register the cocos3d module, the package size would become smaller . The current mechanism,this function is called in the lua_module_register.h