Skip to content

Commit 481adca

Browse files
CocosRobotminggo
authored andcommitted
[ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (#20148)
1 parent ae993e6 commit 481adca

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp

+21
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,27 @@ bool js_cocos2dx_Texture2D_initWithMipmaps(JSContext *cx, uint32_t argc, jsval *
280280
args.rval().set(jsret);
281281
return true;
282282
}
283+
if (argc == 6) {
284+
cocos2d::_MipmapInfo* arg0 = nullptr;
285+
int arg1 = 0;
286+
cocos2d::Texture2D::PixelFormat arg2;
287+
int arg3 = 0;
288+
int arg4 = 0;
289+
bool arg5;
290+
#pragma warning NO CONVERSION TO NATIVE FOR _MipmapInfo*
291+
ok = false;
292+
ok &= jsval_to_int32(cx, args.get(1), (int32_t *)&arg1);
293+
ok &= jsval_to_int32(cx, args.get(2), (int32_t *)&arg2);
294+
ok &= jsval_to_int32(cx, args.get(3), (int32_t *)&arg3);
295+
ok &= jsval_to_int32(cx, args.get(4), (int32_t *)&arg4);
296+
arg5 = JS::ToBoolean(args.get(5));
297+
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_Texture2D_initWithMipmaps : Error processing arguments");
298+
bool ret = cobj->initWithMipmaps(arg0, arg1, arg2, arg3, arg4, arg5);
299+
JS::RootedValue jsret(cx);
300+
jsret = BOOLEAN_TO_JSVAL(ret);
301+
args.rval().set(jsret);
302+
return true;
303+
}
283304

284305
JS_ReportError(cx, "js_cocos2dx_Texture2D_initWithMipmaps : wrong number of arguments: %d, was expecting %d", argc, 5);
285306
return false;

0 commit comments

Comments
 (0)