mirror of https://github.com/axmolengine/axmol.git
[ci skip][AUTO]: updating luabinding & jsbinding automatically
This commit is contained in:
parent
4db0d2c47a
commit
89c0c801b0
|
@ -20296,6 +20296,16 @@ int
|
|||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getUniformFlags
|
||||
* @return {cc.GLProgram::UniformFlags}
|
||||
*/
|
||||
getUniformFlags : function (
|
||||
)
|
||||
{
|
||||
return cc.GLProgram::UniformFlags;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getUniformLocationForName
|
||||
* @param {char} arg0
|
||||
|
|
|
@ -55520,6 +55520,24 @@ bool js_cocos2dx_GLProgram_bindAttribLocation(JSContext *cx, uint32_t argc, jsva
|
|||
JS_ReportError(cx, "js_cocos2dx_GLProgram_bindAttribLocation : wrong number of arguments: %d, was expecting %d", argc, 2);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_GLProgram_getUniformFlags(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
JS::RootedObject obj(cx, args.thisv().toObjectOrNull());
|
||||
js_proxy_t *proxy = jsb_get_js_proxy(obj);
|
||||
cocos2d::GLProgram* cobj = (cocos2d::GLProgram *)(proxy ? proxy->ptr : NULL);
|
||||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_GLProgram_getUniformFlags : Invalid Native Object");
|
||||
if (argc == 0) {
|
||||
const cocos2d::GLProgram::UniformFlags& ret = cobj->getUniformFlags();
|
||||
jsval jsret = JSVAL_NULL;
|
||||
#pragma warning NO CONVERSION FROM NATIVE FOR UniformFlags;
|
||||
args.rval().set(jsret);
|
||||
return true;
|
||||
}
|
||||
|
||||
JS_ReportError(cx, "js_cocos2dx_GLProgram_getUniformFlags : wrong number of arguments: %d, was expecting %d", argc, 0);
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_GLProgram_getUniformLocationForName(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
|
@ -55756,19 +55774,19 @@ bool js_cocos2dx_GLProgram_setUniformsForBuiltins(JSContext *cx, uint32_t argc,
|
|||
cobj = (cocos2d::GLProgram *)(proxy ? proxy->ptr : nullptr);
|
||||
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_GLProgram_setUniformsForBuiltins : Invalid Native Object");
|
||||
do {
|
||||
if (argc == 1) {
|
||||
cocos2d::Mat4 arg0;
|
||||
ok &= jsval_to_matrix(cx, args.get(0), &arg0);
|
||||
if (!ok) { ok = true; break; }
|
||||
cobj->setUniformsForBuiltins(arg0);
|
||||
if (argc == 0) {
|
||||
cobj->setUniformsForBuiltins();
|
||||
args.rval().setUndefined();
|
||||
return true;
|
||||
}
|
||||
} while(0);
|
||||
|
||||
do {
|
||||
if (argc == 0) {
|
||||
cobj->setUniformsForBuiltins();
|
||||
if (argc == 1) {
|
||||
cocos2d::Mat4 arg0;
|
||||
ok &= jsval_to_matrix(cx, args.get(0), &arg0);
|
||||
if (!ok) { ok = true; break; }
|
||||
cobj->setUniformsForBuiltins(arg0);
|
||||
args.rval().setUndefined();
|
||||
return true;
|
||||
}
|
||||
|
@ -56197,6 +56215,7 @@ void js_register_cocos2dx_GLProgram(JSContext *cx, JS::HandleObject global) {
|
|||
static JSFunctionSpec funcs[] = {
|
||||
JS_FN("getFragmentShaderLog", js_cocos2dx_GLProgram_getFragmentShaderLog, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("addAttribute", js_cocos2dx_GLProgram_bindAttribLocation, 2, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("getUniformFlags", js_cocos2dx_GLProgram_getUniformFlags, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("getUniformLocationForName", js_cocos2dx_GLProgram_getUniformLocationForName, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("use", js_cocos2dx_GLProgram_use, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("getVertexShaderLog", js_cocos2dx_GLProgram_getVertexShaderLog, 0, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
|
|
|
@ -3640,6 +3640,7 @@ void js_register_cocos2dx_GLProgram(JSContext *cx, JS::HandleObject global);
|
|||
void register_all_cocos2dx(JSContext* cx, JS::HandleObject obj);
|
||||
bool js_cocos2dx_GLProgram_getFragmentShaderLog(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_GLProgram_bindAttribLocation(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_GLProgram_getUniformFlags(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_GLProgram_getUniformLocationForName(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_GLProgram_use(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_GLProgram_getVertexShaderLog(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
|
|
|
@ -43,8 +43,8 @@
|
|||
-- @return string#string ret (return value: string)
|
||||
|
||||
--------------------------------
|
||||
-- @overload self, mat4_table
|
||||
-- @overload self
|
||||
-- @overload self, mat4_table
|
||||
-- @function [parent=#GLProgram] setUniformsForBuiltins
|
||||
-- @param self
|
||||
-- @param #mat4_table modelView
|
||||
|
|
|
@ -85746,6 +85746,14 @@ int lua_cocos2dx_GLProgram_setUniformsForBuiltins(lua_State* tolua_S)
|
|||
}
|
||||
#endif
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
do{
|
||||
if (argc == 0) {
|
||||
cobj->setUniformsForBuiltins();
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
do{
|
||||
if (argc == 1) {
|
||||
cocos2d::Mat4 arg0;
|
||||
|
@ -85758,15 +85766,7 @@ int lua_cocos2dx_GLProgram_setUniformsForBuiltins(lua_State* tolua_S)
|
|||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
do{
|
||||
if (argc == 0) {
|
||||
cobj->setUniformsForBuiltins();
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:setUniformsForBuiltins",argc, 0);
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:setUniformsForBuiltins",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
|
Loading…
Reference in New Issue