From 56e43325972da7c3e696099b97c0843756dafde8 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 30 Mar 2012 08:48:42 +0000 Subject: [PATCH] build: reorganise math files in a single "math" directory, and get rid of the "shader" source directory since we have "gpu". --- src/Makefile.am | 11 +++++--- src/core.h | 4 +-- src/{shader => gpu}/shader.cpp | 0 src/{shader => gpu}/shader.h | 0 src/{ => math}/half.cpp | 0 src/{ => math}/real.cpp | 0 src/{ => math}/trig.cpp | 0 src/{ => math}/trig.h | 0 src/{ => math}/vector.cpp | 0 win32/lolcore.vcxproj | 18 ++++++------- win32/lolcore.vcxproj.filters | 46 +++++++++++++++++----------------- 11 files changed, 41 insertions(+), 38 deletions(-) rename src/{shader => gpu}/shader.cpp (100%) rename src/{shader => gpu}/shader.h (100%) rename src/{ => math}/half.cpp (100%) rename src/{ => math}/real.cpp (100%) rename src/{ => math}/trig.cpp (100%) rename src/{ => math}/trig.h (100%) rename src/{ => math}/vector.cpp (100%) diff --git a/src/Makefile.am b/src/Makefile.am index b57775bd..a6ceae3b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -2,15 +2,15 @@ noinst_LIBRARIES = liblol.a liblol_a_SOURCES = \ - core.h vector.cpp real.cpp tiler.cpp tiler.h dict.cpp dict.h \ + core.h tiler.cpp tiler.h dict.cpp dict.h \ audio.cpp audio.h scene.cpp scene.h font.cpp font.h layer.cpp layer.h \ map.cpp map.h entity.cpp entity.h ticker.cpp ticker.h lolgl.h \ tileset.cpp tileset.h forge.cpp forge.h video.cpp video.h log.cpp log.h \ timer.cpp timer.h bitfield.h profiler.cpp profiler.h input.h input.cpp \ world.cpp world.h sample.cpp sample.h sampler.cpp sampler.h \ text.cpp text.h emitter.cpp emitter.h numeric.h hash.cpp hash.h \ - worldentity.cpp worldentity.h gradient.cpp gradient.h half.cpp \ - platform.cpp platform.h sprite.cpp sprite.h trig.cpp trig.h \ + worldentity.cpp worldentity.h gradient.cpp gradient.h \ + platform.cpp platform.h sprite.cpp sprite.h \ \ lol/unit.h \ lol/math/vector.h lol/math/half.h lol/math/real.h lol/math/remez.h \ @@ -23,8 +23,11 @@ liblol_a_SOURCES = \ $(nacl_sources) \ $(sdl_sources) \ \ - shader/shader.cpp shader/shader.h \ thread/threadbase.h thread/thread.h \ + \ + math/vector.cpp math/real.cpp math/half.cpp math/trig.cpp math/trig.h \ + \ + gpu/shader.cpp gpu/shader.h \ gpu/vbo.cpp gpu/vbo.h \ \ image/image.cpp image/image.h image/image-private.h \ diff --git a/src/core.h b/src/core.h index 5f566393..d0f6a26d 100644 --- a/src/core.h +++ b/src/core.h @@ -62,7 +62,7 @@ static inline int isnan(float f) #endif // Base types -#include "trig.h" +#include "math/trig.h" #include "lol/math/half.h" #include "lol/math/real.h" #include "lol/math/vector.h" @@ -97,8 +97,8 @@ static inline int isnan(float f) #include "dict.h" #include "map.h" #include "layer.h" +#include "gpu/shader.h" #include "gpu/vbo.h" -#include "shader/shader.h" #include "image/image.h" #include "application/application.h" diff --git a/src/shader/shader.cpp b/src/gpu/shader.cpp similarity index 100% rename from src/shader/shader.cpp rename to src/gpu/shader.cpp diff --git a/src/shader/shader.h b/src/gpu/shader.h similarity index 100% rename from src/shader/shader.h rename to src/gpu/shader.h diff --git a/src/half.cpp b/src/math/half.cpp similarity index 100% rename from src/half.cpp rename to src/math/half.cpp diff --git a/src/real.cpp b/src/math/real.cpp similarity index 100% rename from src/real.cpp rename to src/math/real.cpp diff --git a/src/trig.cpp b/src/math/trig.cpp similarity index 100% rename from src/trig.cpp rename to src/math/trig.cpp diff --git a/src/trig.h b/src/math/trig.h similarity index 100% rename from src/trig.h rename to src/math/trig.h diff --git a/src/vector.cpp b/src/math/vector.cpp similarity index 100% rename from src/vector.cpp rename to src/math/vector.cpp diff --git a/win32/lolcore.vcxproj b/win32/lolcore.vcxproj index f2bb10c0..06033f77 100644 --- a/win32/lolcore.vcxproj +++ b/win32/lolcore.vcxproj @@ -151,9 +151,9 @@ + - @@ -166,24 +166,24 @@ + + + + - - - - @@ -204,9 +204,9 @@ + - @@ -215,11 +215,13 @@ + + @@ -229,7 +231,6 @@ - @@ -239,7 +240,6 @@ - @@ -247,4 +247,4 @@ - \ No newline at end of file + diff --git a/win32/lolcore.vcxproj.filters b/win32/lolcore.vcxproj.filters index 18ac30a1..0ff6e8ef 100644 --- a/win32/lolcore.vcxproj.filters +++ b/win32/lolcore.vcxproj.filters @@ -14,9 +14,6 @@ {a11c55f8-8e10-4270-be24-38e8d4fcf589} - - {ae7aa503-aea5-4aa6-9f61-2f92cfade09c} - {4089421f-2cc2-4036-a6b2-9df8a2f4efc8} @@ -26,6 +23,9 @@ {1e0b7a4c-425f-4d4f-945e-ba2ac9386ce0} + + {2caadbda-b9f1-446d-bbd2-55c959db342c} + {ec9b94fc-c716-4ef2-9c3b-c7f3447574b0} @@ -61,9 +61,6 @@ src\debug - - src\shader - src\platform\sdl @@ -94,8 +91,8 @@ src - - src + + src\math src @@ -118,8 +115,8 @@ src - - src + + src\math src @@ -148,11 +145,11 @@ src - - src + + src\math - - src + + src\math src @@ -163,6 +160,9 @@ src + + src\gpu + src\gpu @@ -210,9 +210,6 @@ src\debug - - src\shader - src\platform\sdl @@ -249,9 +246,6 @@ src - - src - src @@ -312,8 +306,8 @@ src - - src + + src\math src @@ -324,6 +318,9 @@ src + + src\lol\math + src\lol\math @@ -336,6 +333,9 @@ src\lol + + src\gpu + src\gpu @@ -355,4 +355,4 @@ src\platform\xbox - \ No newline at end of file +