diff --git a/CMakeLists.txt b/CMakeLists.txt index 234d5a9..7f4c56f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,15 +5,16 @@ project(spectrum LANGUAGES CXX) find_package(SDL3 REQUIRED CONFIG) add_executable(spectrum - source/core/main.cpp + source/main.cpp source/core/rendering/video.cpp - source/core/system/director.cpp + source/game/director.cpp + source/game/scenes/test.cpp ) target_compile_features(spectrum PRIVATE cxx_std_20) target_include_directories(spectrum PRIVATE - source/core + source ) target_link_libraries(spectrum PRIVATE SDL3::SDL3) diff --git a/source/core/rendering/video.cpp b/source/core/rendering/video.cpp index 09e8351..f44c7e7 100644 --- a/source/core/rendering/video.cpp +++ b/source/core/rendering/video.cpp @@ -1,4 +1,6 @@ -#include "rendering/video.hpp" +// video.cpp + +#include "video.hpp" #include @@ -54,7 +56,7 @@ auto Video::initSDL() -> int { SDL_Quit(); return 1; } - //SDL_SetTextureScaleMode(game_texture_, toSdlScaleMode(config_.texture_filter)); + // SDL_SetTextureScaleMode(game_texture_, toSdlScaleMode(config_.texture_filter)); SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "Video subsystem initialized successfully"); diff --git a/source/core/rendering/video.hpp b/source/core/rendering/video.hpp index 8af90f9..b01562b 100644 --- a/source/core/rendering/video.hpp +++ b/source/core/rendering/video.hpp @@ -1,3 +1,5 @@ +// video.hpp + #pragma once #include diff --git a/source/core/system/director.cpp b/source/core/system/director.cpp deleted file mode 100644 index 6a5a803..0000000 --- a/source/core/system/director.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include "system/director.hpp" - -#include "rendering/video.hpp" -#include "system/defaults.hpp" - -Director::Director() { - SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, - "Game start!"); - - video = std::make_shared