From ce0904ebec972ec5bf8f81d09ab2024cf105f8f6 Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 22 Oct 2025 06:46:18 +0200 Subject: [PATCH] feat: prepare for major update --- engine/CMakeLists.txt | 10 +--------- engine/include/engine/{engine.h => api.h} | 0 engine/include/engine/components.h | 8 ++++++++ sandbox/src/main.cpp | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) rename engine/include/engine/{engine.h => api.h} (100%) create mode 100644 engine/include/engine/components.h diff --git a/engine/CMakeLists.txt b/engine/CMakeLists.txt index e880d76..b83f5ed 100644 --- a/engine/CMakeLists.txt +++ b/engine/CMakeLists.txt @@ -12,19 +12,11 @@ set(SOURCES src/renderer/mesh.cpp src/renderer/shader.cpp src/renderer/texture.cpp - src/renderer/wavefront.cpp src/renderer/core.cpp src/renderer/renderer.cpp - - # src/main.cpp + src/renderer/wavefront.cpp ) -#if (ENGINE_BUILD_SHARED) -# add_library(${ENGINE_TARGET} SHARED ${SOURCES}) -#else() -# add_library(${ENGINE_TARGET} STATIC ${SOURCES}) -#endif() - if(ENGINE_BUILD_SHARED) add_library(${ENGINE_TARGET} SHARED ${SOURCES}) if(WIN32) diff --git a/engine/include/engine/engine.h b/engine/include/engine/api.h similarity index 100% rename from engine/include/engine/engine.h rename to engine/include/engine/api.h diff --git a/engine/include/engine/components.h b/engine/include/engine/components.h new file mode 100644 index 0000000..db3e439 --- /dev/null +++ b/engine/include/engine/components.h @@ -0,0 +1,8 @@ +#pragma once + +#include "components/batch.h" +#include "components/transform.h" +#include "components/camera.h" +#include "components/mesh.h" +#include "components/rotate.h" +#include "components/light.h" \ No newline at end of file diff --git a/sandbox/src/main.cpp b/sandbox/src/main.cpp index 3016b75..5909727 100644 --- a/sandbox/src/main.cpp +++ b/sandbox/src/main.cpp @@ -20,7 +20,7 @@ #include "engine/components/rotate.h" #include "engine/components/batch.h" -#include "engine/engine.h" +#include "engine/api.h" class Game : public IApplication { public: