@@ -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;
@@ -30,6 +30,9 @@ struct Vector4
float x, y, z, w;
};
+/// Holds RGBA color as four floats.
+typedef Vector4 Color4;
+
/// @ingroup Math
struct Quaternion
@@ -6,8 +6,6 @@
#include "lua_stack.h"
#include "lua_environment.h"
#include "debug_line.h"
-#include "vector3.h"
-#include "color4.h"
namespace crown
@@ -9,7 +9,6 @@
#include "temp_allocator.h"
-#include "array.h"
#include "string_stream.h"
#include "console_server.h"
#include "resource_manager.h"
@@ -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>
@@ -8,7 +8,6 @@
#include "types.h"
#include "config.h"
#include "math_types.h"