Daniele Bartolini 10 년 전
부모
커밋
c00bac8668
3개의 변경된 파일4개의 추가작업 그리고 13개의 파일을 삭제
  1. 1 3
      src/lua/lua_environment.h
  2. 1 8
      src/lua/lua_stack.h
  3. 2 2
      src/lua/lua_types.h

+ 1 - 3
src/lua/lua_environment.h

@@ -21,7 +21,7 @@ enum LuaArgumentType
 /// Wraps a subset of Lua functions and provides utilities for extending Lua.
 ///
 /// @ingroup Lua
-class LuaEnvironment
+struct LuaEnvironment
 {
 	lua_State* L;
 
@@ -32,8 +32,6 @@ class LuaEnvironment
 	u32 _mat4_used;
 	Matrix4x4 s_mat4_buffer[CROWN_MAX_LUA_MATRIX4X4];
 
-public:
-
 	LuaEnvironment();
 	~LuaEnvironment();
 

+ 1 - 8
src/lua/lua_stack.h

@@ -31,22 +31,15 @@ namespace crown
 /// Wrapper to manipulate Lua stack.
 ///
 /// @ingroup Lua
-class LuaStack
+struct LuaStack
 {
 	lua_State* L;
 
-public:
-
 	LuaStack(lua_State* L)
 		: L(L)
 	{
 	}
 
-	lua_State* state()
-	{
-		return L;
-	}
-
 	/// Returns the number of elements in the stack.
 	/// When called inside a function, it can be used to count
 	/// the number of arguments passed to the function itself.

+ 2 - 2
src/lua/lua_types.h

@@ -8,7 +8,7 @@
 /// @defgroup Lua Lua
 namespace crown
 {
-class LuaStack;
-class LuaEnvironment;
+struct LuaStack;
+struct LuaEnvironment;
 
 } // namespace crown