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 char LuaCamera::className[] = "Camera";
const luaL_reg LuaCamera::methods[] = { const luaL_reg LuaCamera::methods[] = {luamethod(LuaCamera, set_camera_mode),
luamethod(LuaCamera, set_camera_mode), luamethod(LuaCamera, get_camera_mode), luamethod(LuaCamera, get_fov),
luamethod(LuaCamera, get_camera_mode), luamethod(LuaCamera, get_pos), luamethod(LuaCamera, get_offset),
luamethod(LuaCamera, get_fov),
luamethod(LuaCamera, get_pos),
luamethod(LuaCamera, get_offset),
luamethod(LuaCamera, get_look_dir), luamethod(LuaCamera, get_look_dir),
luamethod(LuaCamera, get_look_vertical), luamethod(LuaCamera, get_look_vertical),
luamethod(LuaCamera, get_look_horizontal), luamethod(LuaCamera, get_look_horizontal),
luamethod(LuaCamera, get_aspect_ratio), luamethod(LuaCamera, get_aspect_ratio),
{0, 0} {0, 0}};
};

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