Fix codestyle since CSM Camera API

This commit is contained in:
Loic Blot 2017-05-06 21:30:27 +02:00
parent 07c17db114
commit a024042bf5
No known key found for this signature in database
GPG Key ID: EFAA458E8C153987
2 changed files with 42 additions and 48 deletions

@ -191,16 +191,12 @@ void LuaCamera::Register(lua_State *L)
}
const char LuaCamera::className[] = "Camera";
const luaL_reg LuaCamera::methods[] = {
luamethod(LuaCamera, set_camera_mode),
luamethod(LuaCamera, get_camera_mode),
luamethod(LuaCamera, get_fov),
luamethod(LuaCamera, get_pos),
luamethod(LuaCamera, get_offset),
const luaL_reg LuaCamera::methods[] = {luamethod(LuaCamera, set_camera_mode),
luamethod(LuaCamera, get_camera_mode), luamethod(LuaCamera, get_fov),
luamethod(LuaCamera, get_pos), luamethod(LuaCamera, get_offset),
luamethod(LuaCamera, get_look_dir),
luamethod(LuaCamera, get_look_vertical),
luamethod(LuaCamera, get_look_horizontal),
luamethod(LuaCamera, get_aspect_ratio),
{0, 0}
};
{0, 0}};

@ -5,9 +5,9 @@
class Camera;
class LuaCamera : public ModApiBase {
class LuaCamera : public ModApiBase
{
private:
static const char className[];
static const luaL_Reg methods[];
@ -29,7 +29,6 @@ private:
Camera *m_camera;
public:
LuaCamera(Camera *m);
~LuaCamera() {}
@ -40,7 +39,6 @@ public:
static Camera *getobject(lua_State *L, int narg);
static void Register(lua_State *L);
};
#endif // L_CAMERA_H