diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-05 16:03:48 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-05 16:03:48 +0100 |
commit | b770475741b7c33d57331f3139c55a3f237ad274 (patch) | |
tree | a0498c3aad476352f0e2fa0afded15d6cd077cb3 /src/crepe | |
parent | 74533e9fbcd0360950daec4dc297e48e30a8a2d0 (diff) |
create facade folder
Diffstat (limited to 'src/crepe')
-rw-r--r-- | src/crepe/CMakeLists.txt | 11 | ||||
-rw-r--r-- | src/crepe/api/AudioSource.cpp | 2 | ||||
-rw-r--r-- | src/crepe/api/Texture.cpp | 2 | ||||
-rw-r--r-- | src/crepe/facade/CMakeLists.txt | 14 | ||||
-rw-r--r-- | src/crepe/facade/SDLApp.cpp (renamed from src/crepe/SDLApp.cpp) | 0 | ||||
-rw-r--r-- | src/crepe/facade/SDLApp.h (renamed from src/crepe/SDLApp.h) | 2 | ||||
-rw-r--r-- | src/crepe/facade/SDLContext.cpp (renamed from src/crepe/SDLContext.cpp) | 8 | ||||
-rw-r--r-- | src/crepe/facade/SDLContext.h (renamed from src/crepe/SDLContext.h) | 7 | ||||
-rw-r--r-- | src/crepe/facade/Sound.cpp (renamed from src/crepe/Sound.cpp) | 2 | ||||
-rw-r--r-- | src/crepe/facade/Sound.h (renamed from src/crepe/Sound.h) | 2 | ||||
-rw-r--r-- | src/crepe/facade/SoundContext.cpp (renamed from src/crepe/SoundContext.cpp) | 2 | ||||
-rw-r--r-- | src/crepe/facade/SoundContext.h (renamed from src/crepe/SoundContext.h) | 0 | ||||
-rw-r--r-- | src/crepe/system/RenderSystem.cpp | 2 |
13 files changed, 30 insertions, 24 deletions
diff --git a/src/crepe/CMakeLists.txt b/src/crepe/CMakeLists.txt index 7f976db..8830e05 100644 --- a/src/crepe/CMakeLists.txt +++ b/src/crepe/CMakeLists.txt @@ -1,28 +1,21 @@ target_sources(crepe PUBLIC Asset.cpp - Sound.cpp - SoundContext.cpp Particle.cpp - SDLApp.cpp ComponentManager.cpp Component.cpp Collider.cpp - SDLContext.cpp ) target_sources(crepe PUBLIC FILE_SET HEADERS FILES Asset.h - Sound.h - SoundContext.h - SDLContext.h ComponentManager.h ComponentManager.hpp Component.h Collider.h - SDLContext.h ) add_subdirectory(api) -add_subdirectory(util) +add_subdirectory(facade) add_subdirectory(system) +add_subdirectory(util) diff --git a/src/crepe/api/AudioSource.cpp b/src/crepe/api/AudioSource.cpp index 2bacc75..63fd0d7 100644 --- a/src/crepe/api/AudioSource.cpp +++ b/src/crepe/api/AudioSource.cpp @@ -1,6 +1,6 @@ #include <memory> -#include "../Sound.h" +#include "../facade/Sound.h" #include "AudioSource.h" diff --git a/src/crepe/api/Texture.cpp b/src/crepe/api/Texture.cpp index b5001a6..8fc5c13 100644 --- a/src/crepe/api/Texture.cpp +++ b/src/crepe/api/Texture.cpp @@ -1,6 +1,6 @@ #include <SDL2/SDL_render.h> -#include "../SDLContext.h" +#include "../facade/SDLContext.h" #include "../util/log.h" #include "Asset.h" diff --git a/src/crepe/facade/CMakeLists.txt b/src/crepe/facade/CMakeLists.txt new file mode 100644 index 0000000..dbddcc6 --- /dev/null +++ b/src/crepe/facade/CMakeLists.txt @@ -0,0 +1,14 @@ +target_sources(crepe PUBLIC + Sound.cpp + SoundContext.cpp + SDLApp.cpp + SDLContext.cpp +) + +target_sources(crepe PUBLIC FILE_SET HEADERS FILES + Sound.h + SoundContext.h + SDLContext.h + SDLContext.h +) + diff --git a/src/crepe/SDLApp.cpp b/src/crepe/facade/SDLApp.cpp index c6ddeaa..c6ddeaa 100644 --- a/src/crepe/SDLApp.cpp +++ b/src/crepe/facade/SDLApp.cpp diff --git a/src/crepe/SDLApp.h b/src/crepe/facade/SDLApp.h index e67947b..6d8f3f4 100644 --- a/src/crepe/SDLApp.h +++ b/src/crepe/facade/SDLApp.h @@ -2,7 +2,7 @@ #include <SDL2/SDL.h> -#include "api/ParticleEmitter.h" +#include "../api/ParticleEmitter.h" class SDLApp { public: diff --git a/src/crepe/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp index e61faa3..8da93e9 100644 --- a/src/crepe/SDLContext.cpp +++ b/src/crepe/facade/SDLContext.cpp @@ -7,10 +7,10 @@ #include <cstddef> #include <iostream> -#include "api/Sprite.h" -#include "api/Texture.h" -#include "api/Transform.h" -#include "util/log.h" +#include "../api/Sprite.h" +#include "../api/Texture.h" +#include "../api/Transform.h" +#include "../util/log.h" #include "SDLContext.h" diff --git a/src/crepe/SDLContext.h b/src/crepe/facade/SDLContext.h index 94fc549..f1ba8a6 100644 --- a/src/crepe/SDLContext.h +++ b/src/crepe/facade/SDLContext.h @@ -3,10 +3,9 @@ #include <SDL2/SDL_render.h> #include <SDL2/SDL_video.h> -#include "api/Sprite.h" -#include "api/Transform.h" - -#include "system/RenderSystem.h" +#include "../api/Sprite.h" +#include "../api/Transform.h" +#include "../system/RenderSystem.h" namespace crepe { diff --git a/src/crepe/Sound.cpp b/src/crepe/facade/Sound.cpp index 64fa281..648ec81 100644 --- a/src/crepe/Sound.cpp +++ b/src/crepe/facade/Sound.cpp @@ -1,4 +1,4 @@ -#include "util/log.h" +#include "../util/log.h" #include "Sound.h" #include "SoundContext.h" diff --git a/src/crepe/Sound.h b/src/crepe/facade/Sound.h index 917b57e..183bd7c 100644 --- a/src/crepe/Sound.h +++ b/src/crepe/facade/Sound.h @@ -4,7 +4,7 @@ #include <soloud/soloud.h> #include <soloud/soloud_wav.h> -#include "Asset.h" +#include "../Asset.h" namespace crepe { diff --git a/src/crepe/SoundContext.cpp b/src/crepe/facade/SoundContext.cpp index 72047d2..5e5a3a9 100644 --- a/src/crepe/SoundContext.cpp +++ b/src/crepe/facade/SoundContext.cpp @@ -1,4 +1,4 @@ -#include "util/log.h" +#include "../util/log.h" #include "SoundContext.h" diff --git a/src/crepe/SoundContext.h b/src/crepe/facade/SoundContext.h index d3123d2..d3123d2 100644 --- a/src/crepe/SoundContext.h +++ b/src/crepe/facade/SoundContext.h diff --git a/src/crepe/system/RenderSystem.cpp b/src/crepe/system/RenderSystem.cpp index ee3cdf2..96c94e9 100644 --- a/src/crepe/system/RenderSystem.cpp +++ b/src/crepe/system/RenderSystem.cpp @@ -2,7 +2,7 @@ #include <vector> #include "../ComponentManager.h" -#include "../SDLContext.h" +#include "../facade/SDLContext.h" #include "../api/Sprite.h" #include "../api/Transform.h" #include "../util/log.h" |