@@ -91299,6 +91299,62 @@ int lua_ax_base_Camera_configureOrthographic(lua_State* tolua_S)
9129991299
9130091300 return 0;
9130191301}
91302+ int lua_ax_base_Camera_configureOrthographicView(lua_State* tolua_S)
91303+ {
91304+ int argc = 0;
91305+ ax::Camera* obj = nullptr;
91306+ bool ok = true;
91307+
91308+ #if _AX_DEBUG >= 1
91309+ tolua_Error tolua_err;
91310+ #endif
91311+
91312+
91313+ #if _AX_DEBUG >= 1
91314+ if (!tolua_isusertype(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror;
91315+ #endif
91316+
91317+ obj = (ax::Camera*)tolua_tousertype(tolua_S,1,0);
91318+
91319+ #if _AX_DEBUG >= 1
91320+ if (!obj)
91321+ {
91322+ tolua_error(tolua_S,"invalid 'obj' in function 'lua_ax_base_Camera_configureOrthographicView'", nullptr);
91323+ return 0;
91324+ }
91325+ #endif
91326+
91327+ argc = lua_gettop(tolua_S)-1;
91328+ if (argc == 3)
91329+ {
91330+ ax::Vec2 arg0;
91331+ double arg1;
91332+ double arg2;
91333+
91334+ ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Camera:configureOrthographicView");
91335+
91336+ ok &= luaval_to_number(tolua_S, 3, &arg1, "ax.Camera:configureOrthographicView");
91337+
91338+ ok &= luaval_to_number(tolua_S, 4, &arg2, "ax.Camera:configureOrthographicView");
91339+ if(!ok)
91340+ {
91341+ tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_configureOrthographicView'", nullptr);
91342+ return 0;
91343+ }
91344+ auto&& ret = obj->configureOrthographicView(arg0, arg1, arg2);
91345+ tolua_pushboolean(tolua_S,(bool)ret);
91346+ return 1;
91347+ }
91348+ luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:configureOrthographicView",argc, 3);
91349+ return 0;
91350+
91351+ #if _AX_DEBUG >= 1
91352+ tolua_lerror:
91353+ tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_configureOrthographicView'.",&tolua_err);
91354+ #endif
91355+
91356+ return 0;
91357+ }
9130291358int lua_ax_base_Camera_applyViewport(lua_State* tolua_S)
9130391359{
9130491360 int argc = 0;
@@ -91350,7 +91406,6 @@ int lua_ax_base_Camera_create(lua_State* tolua_S)
9135091406{
9135191407 int argc = 0;
9135291408 bool ok = true;
91353-
9135491409#if _AX_DEBUG >= 1
9135591410 tolua_Error tolua_err;
9135691411#endif
@@ -91359,33 +91414,30 @@ int lua_ax_base_Camera_create(lua_State* tolua_S)
9135991414 if (!tolua_isusertable(tolua_S,1,"ax.Camera",0,&tolua_err)) goto tolua_lerror;
9136091415#endif
9136191416
91362- argc = lua_gettop(tolua_S) - 1;
91417+ argc = lua_gettop(tolua_S)- 1;
9136391418
91364- if (argc == 0)
91365- {
91366- if(!ok)
91419+ do {
91420+ if (argc == 1)
9136791421 {
91368- tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_create'", nullptr);
91369- return 0;
91422+ ax::CameraMode arg0;
91423+ ok &= luaval_to_int(tolua_S, 2, &arg0, "ax.Camera:create");
91424+ if (!ok) { break; }
91425+ ax::Camera* ret = ax::Camera::create(arg0);
91426+ object_to_luaval<ax::Camera>(tolua_S, "ax.Camera",(ax::Camera*)ret);
91427+ return 1;
9137091428 }
91371- auto&& ret = ax::Camera::create();
91372- object_to_luaval<ax::Camera>(tolua_S, "ax.Camera",(ax::Camera*)ret);
91373- return 1;
91374- }
91375- if (argc == 1)
91376- {
91377- ax::CameraMode arg0;
91378- ok &= luaval_to_int(tolua_S, 2, &arg0, "ax.Camera:create");
91379- if(!ok)
91429+ } while (0);
91430+ ok = true;
91431+ do {
91432+ if (argc == 0)
9138091433 {
91381- tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_create'", nullptr);
91382- return 0;
91434+ ax::Camera* ret = ax::Camera::create();
91435+ object_to_luaval<ax::Camera>(tolua_S, "ax.Camera",(ax::Camera*)ret);
91436+ return 1;
9138391437 }
91384- auto&& ret = ax::Camera::create(arg0);
91385- object_to_luaval<ax::Camera>(tolua_S, "ax.Camera",(ax::Camera*)ret);
91386- return 1;
91387- }
91388- luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Camera:create",argc, 0);
91438+ } while (0);
91439+ ok = true;
91440+ luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ax.Camera:create",argc, 0);
9138991441 return 0;
9139091442#if _AX_DEBUG >= 1
9139191443 tolua_lerror:
@@ -91752,6 +91804,7 @@ int lua_register_ax_base_Camera(lua_State* tolua_S)
9175291804 tolua_function(tolua_S,"setAdditionalProjection",lua_ax_base_Camera_setAdditionalProjection);
9175391805 tolua_function(tolua_S,"configurePerspective",lua_ax_base_Camera_configurePerspective);
9175491806 tolua_function(tolua_S,"configureOrthographic",lua_ax_base_Camera_configureOrthographic);
91807+ tolua_function(tolua_S,"configureOrthographicView",lua_ax_base_Camera_configureOrthographicView);
9175591808 tolua_function(tolua_S,"applyViewport",lua_ax_base_Camera_applyViewport);
9175691809 tolua_function(tolua_S,"create", lua_ax_base_Camera_create);
9175791810 tolua_function(tolua_S,"getVisitingCamera", lua_ax_base_Camera_getVisitingCamera);
0 commit comments