From 1041ec48a2924408f1b83d4f4a6b6faac8ac0523 Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Wed, 15 Oct 2025 10:02:30 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20(engine.cpp,onCreate.cpp,s?= =?UTF-8?q?howFps.cpp,CMakeLists.txt):=20remove=20unused=20headers=20and?= =?UTF-8?q?=20clean=20up=20build=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove unnecessary #include directives from engine.cpp, onCreate.cpp, and showFps.cpp to reduce compile time and improve readability. Also delete extraneous blank lines in CMakeLists.txt for cleaner configuration. --- CMakeLists.txt | 2 -- src/core/engine.cpp | 1 - src/onCreate.cpp | 2 -- src/utils/showFps.cpp | 1 + 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e502e17..97ce076 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,8 +11,6 @@ add_executable(CoursOpenGl ${LIB_HEADERS} ${HEADERS} ${SRC}) find_package(OpenGL REQUIRED) find_package(glfw3 3.4 REQUIRED) - target_include_directories(CoursOpenGl PUBLIC ${CMAKE_SOURCE_DIR}/include) target_link_libraries(CoursOpenGl glfw OpenGL::GL -lGLU ${GLEW_LIBRARIES}) target_link_directories(CoursOpenGl PUBLIC .) - diff --git a/src/core/engine.cpp b/src/core/engine.cpp index 75674c7..c7444bd 100644 --- a/src/core/engine.cpp +++ b/src/core/engine.cpp @@ -1,7 +1,6 @@ #include "engine.h" #include #include -#include #include djalim::OpenGlEngine::OpenGlEngine(const char* title, int width, int height) { diff --git a/src/onCreate.cpp b/src/onCreate.cpp index 579f27d..5207619 100644 --- a/src/onCreate.cpp +++ b/src/onCreate.cpp @@ -1,7 +1,5 @@ #include "engine.h" #include "Texture2D.h" -#include -#include void djalim::OpenGlEngine::onCreate(){ glEnable(GL_DEPTH_TEST); diff --git a/src/utils/showFps.cpp b/src/utils/showFps.cpp index 2b5ed73..88677aa 100644 --- a/src/utils/showFps.cpp +++ b/src/utils/showFps.cpp @@ -1,4 +1,5 @@ #include "engine.h" +#include void djalim::OpenGlEngine::showFps() {