mirror of https://github.com/axmolengine/axmol.git
[ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically
This commit is contained in:
parent
629eebd031
commit
16b2649ba2
|
@ -1255,9 +1255,10 @@ int lua_cocos2dx_3d_TextureCube_setTexParameters(lua_State* tolua_S)
|
|||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 1)
|
||||
{
|
||||
cocos2d::Texture2D::TexParams arg0;
|
||||
cocos2d::backend::SamplerDescriptor arg0;
|
||||
|
||||
ok &= luaval_to_texparams(tolua_S, 2, &arg0, "cc.TextureCube:setTexParameters");
|
||||
#pragma warning NO CONVERSION TO NATIVE FOR SamplerDescriptor
|
||||
ok = false;
|
||||
if(!ok)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_TextureCube_setTexParameters'", nullptr);
|
||||
|
|
|
@ -1450,57 +1450,6 @@ int lua_cocos2dx_Texture2D_getContentSize(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Texture2D_setSamplerDescriptor(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocos2d::Texture2D* 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.Texture2D",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_setSamplerDescriptor'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 1)
|
||||
{
|
||||
cocos2d::backend::SamplerDescriptor arg0;
|
||||
|
||||
#pragma warning NO CONVERSION TO NATIVE FOR SamplerDescriptor
|
||||
ok = false;
|
||||
if(!ok)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_setSamplerDescriptor'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
cobj->setTexParameters(arg0);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:setSamplerDescriptor",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setSamplerDescriptor'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Texture2D_setAliasTexParameters(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -2158,7 +2107,6 @@ int lua_register_cocos2dx_Texture2D(lua_State* tolua_S)
|
|||
tolua_function(tolua_S,"setMaxT",lua_cocos2dx_Texture2D_setMaxT);
|
||||
tolua_function(tolua_S,"getPath",lua_cocos2dx_Texture2D_getPath);
|
||||
tolua_function(tolua_S,"getContentSize",lua_cocos2dx_Texture2D_getContentSize);
|
||||
tolua_function(tolua_S,"setSamplerDescriptor",lua_cocos2dx_Texture2D_setSamplerDescriptor);
|
||||
tolua_function(tolua_S,"setAliasTexParameters",lua_cocos2dx_Texture2D_setAliasTexParameters);
|
||||
tolua_function(tolua_S,"setAntiAliasTexParameters",lua_cocos2dx_Texture2D_setAntiAliasTexParameters);
|
||||
tolua_function(tolua_S,"generateMipmap",lua_cocos2dx_Texture2D_generateMipmap);
|
||||
|
|
|
@ -2226,7 +2226,6 @@ int register_all_cocos2dx(lua_State* tolua_S);
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // __cocos2dx_h__
|
||||
|
|
Loading…
Reference in New Issue