Daniele Bartolini 10 سال پیش
والد
کامیت
c2c68e4366
6فایلهای تغییر یافته به همراه4 افزوده شده و 9 حذف شده
  1. 0 3
      src/core/math/color4.h
  2. 3 0
      src/core/math/math_types.h
  3. 0 2
      src/lua/lua_debug_line.cpp
  4. 0 1
      src/lua/lua_device.cpp
  5. 1 2
      src/renderers/debug_line.cpp
  6. 0 1
      src/renderers/debug_line.h

+ 0 - 3
src/core/math/color4.h

@@ -12,9 +12,6 @@ namespace crown
 /// @addtogroup Math
 /// @{
 
-/// Holds RGBA color as four floats.
-typedef Vector4 Color4;
-
 inline Color4 color4(float r, float g, float b, float a)
 {
 	Color4 c;

+ 3 - 0
src/core/math/math_types.h

@@ -30,6 +30,9 @@ struct Vector4
 	float x, y, z, w;
 };
 
+/// Holds RGBA color as four floats.
+typedef Vector4 Color4;
+
 /// @ingroup Math
 struct Quaternion
 {

+ 0 - 2
src/lua/lua_debug_line.cpp

@@ -6,8 +6,6 @@
 #include "lua_stack.h"
 #include "lua_environment.h"
 #include "debug_line.h"
-#include "vector3.h"
-#include "color4.h"
 
 namespace crown
 {

+ 0 - 1
src/lua/lua_device.cpp

@@ -9,7 +9,6 @@
 #include "lua_environment.h"
 #include "lua_stack.h"
 #include "temp_allocator.h"
-#include "array.h"
 #include "string_stream.h"
 #include "console_server.h"
 #include "resource_manager.h"

+ 1 - 2
src/renderers/debug_line.cpp

@@ -8,8 +8,7 @@
 #include "color4.h"
 #include "vector3.h"
 #include "matrix4x4.h"
-#include "config.h"
-#include <string.h>
+#include <string.h> // memcpy
 #include <bgfx.h>
 
 namespace crown

+ 0 - 1
src/renderers/debug_line.h

@@ -8,7 +8,6 @@
 #include "types.h"
 #include "config.h"
 #include "math_types.h"
-#include "color4.h"
 
 namespace crown
 {