|
|
@@ -1332,7 +1332,7 @@ static int camera_set_projection_type(lua_State* L)
|
|
|
const ProjectionType::Enum pt = name_to_projection_type(name);
|
|
|
LUA_ASSERT(pt != ProjectionType::COUNT, stack, "Unknown projection type: '%s'", name);
|
|
|
|
|
|
- stack.get_world(1)->set_camera_projection_type(stack.get_camera(2), pt);
|
|
|
+ stack.get_world(1)->camera_set_projection_type(stack.get_camera(2), pt);
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
@@ -1354,7 +1354,7 @@ static int camera_fov(lua_State* L)
|
|
|
static int camera_set_fov(lua_State* L)
|
|
|
{
|
|
|
LuaStack stack(L);
|
|
|
- stack.get_world(1)->set_camera_fov(stack.get_camera(2), stack.get_float(3));
|
|
|
+ stack.get_world(1)->camera_set_fov(stack.get_camera(2), stack.get_float(3));
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
@@ -1368,7 +1368,7 @@ static int camera_near_clip_distance(lua_State* L)
|
|
|
static int camera_set_near_clip_distance(lua_State* L)
|
|
|
{
|
|
|
LuaStack stack(L);
|
|
|
- stack.get_world(1)->set_camera_near_clip_distance(stack.get_camera(2), stack.get_float(3));
|
|
|
+ stack.get_world(1)->camera_set_near_clip_distance(stack.get_camera(2), stack.get_float(3));
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
@@ -1382,14 +1382,14 @@ static int camera_far_clip_distance(lua_State* L)
|
|
|
static int camera_set_far_clip_distance(lua_State* L)
|
|
|
{
|
|
|
LuaStack stack(L);
|
|
|
- stack.get_world(1)->set_camera_far_clip_distance(stack.get_camera(2), stack.get_float(3));
|
|
|
+ stack.get_world(1)->camera_set_far_clip_distance(stack.get_camera(2), stack.get_float(3));
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
static int camera_set_orthographic_metrics(lua_State* L)
|
|
|
{
|
|
|
LuaStack stack(L);
|
|
|
- stack.get_world(1)->set_camera_orthographic_metrics(stack.get_camera(2), stack.get_float(3), stack.get_float(4),
|
|
|
+ stack.get_world(1)->camera_set_orthographic_metrics(stack.get_camera(2), stack.get_float(3), stack.get_float(4),
|
|
|
stack.get_float(5), stack.get_float(6));
|
|
|
return 0;
|
|
|
}
|
|
|
@@ -3198,15 +3198,15 @@ void load_api(LuaEnvironment& env)
|
|
|
env.add_module_function("World", "num_units", world_num_units);
|
|
|
env.add_module_function("World", "units", world_units);
|
|
|
env.add_module_function("World", "camera", world_camera);
|
|
|
- env.add_module_function("World", "set_camera_projection_type", camera_set_projection_type);
|
|
|
+ env.add_module_function("World", "camera_set_projection_type", camera_set_projection_type);
|
|
|
env.add_module_function("World", "camera_projection_type", camera_projection_type);
|
|
|
env.add_module_function("World", "camera_fov", camera_fov);
|
|
|
- env.add_module_function("World", "set_camera_fov", camera_set_fov);
|
|
|
+ env.add_module_function("World", "camera_set_fov", camera_set_fov);
|
|
|
env.add_module_function("World", "camera_near_clip_distance", camera_near_clip_distance);
|
|
|
- env.add_module_function("World", "set_camera_near_clip_distance", camera_set_near_clip_distance);
|
|
|
+ env.add_module_function("World", "camera_set_near_clip_distance", camera_set_near_clip_distance);
|
|
|
env.add_module_function("World", "camera_far_clip_distance", camera_far_clip_distance);
|
|
|
- env.add_module_function("World", "set_camera_far_clip_distance", camera_set_far_clip_distance);
|
|
|
- env.add_module_function("World", "set_camera_orthographic_metrics", camera_set_orthographic_metrics);
|
|
|
+ env.add_module_function("World", "camera_set_far_clip_distance", camera_set_far_clip_distance);
|
|
|
+ env.add_module_function("World", "camera_set_orthographic_metrics", camera_set_orthographic_metrics);
|
|
|
env.add_module_function("World", "camera_screen_to_world", camera_screen_to_world);
|
|
|
env.add_module_function("World", "camera_world_to_screen", camera_world_to_screen);
|
|
|
env.add_module_function("World", "update_animations", world_update_animations);
|