reordered source files

This commit is contained in:
devZoGok
2026-05-21 20:27:40 +03:00
parent e9ceb6a04e
commit a1e57d9d4e
191 changed files with 6322 additions and 68 deletions
+68 -68
View File
@@ -1,94 +1,94 @@
cmake_minimum_required(VERSION 3.5)
project(Renderer)
project(vb01)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -pedantic")
set(LIB_NAME Renderer)
option(BUILD_RENDERER_TESTS "Build Renderer unit tests" OFF)
option(BUILD_RENDERER_SAMPLES "Build Renderer sample apps" ON)
set(LIB_NAME vb01)
option(BUILD_RENDERER_TESTS "Build vb01 unit tests" OFF)
option(BUILD_RENDERER_SAMPLES "Build vb01 sample apps" ON)
option(BUILD_WITH_ASSIMP "Enable Assimp model importer" OFF)
option(BUILD_GUI_ELEMENTS "Build GUI widget components" ON)
set(CORE_SRC
Source/Core/Private/util.cpp)
source/utils/util.cpp)
set(MATH_SRC
Source/Math/Private/quaternion.cpp
Source/Math/Private/vector.cpp
Source/Math/Private/matrix.cpp
Source/Math/Private/rayCaster.cpp)
source/math/quaternion.cpp
source/math/vector.cpp
source/math/matrix.cpp
source/math/rayCaster.cpp)
set(RENDER_SRC
Source/Rendering/Private/lineRenderer.cpp
Source/Rendering/Private/particleEmitter.cpp
Source/Rendering/Private/camera.cpp
Source/Rendering/Private/light.cpp
Source/Rendering/Private/material.cpp
Source/Rendering/Private/mesh.cpp
Source/Rendering/Private/meshData.cpp
Source/Rendering/Private/model.cpp
Source/Rendering/Private/node.cpp
Source/Rendering/Private/quad.cpp
Source/Rendering/Private/box.cpp
Source/Rendering/Private/root.cpp
Source/Rendering/Private/shader.cpp
Source/Rendering/Private/texture.cpp)
source/rendering/lineRenderer.cpp
source/rendering/particleEmitter.cpp
source/rendering/camera.cpp
source/rendering/light.cpp
source/rendering/material.cpp
source/rendering/mesh.cpp
source/rendering/meshData.cpp
source/rendering/model.cpp
source/rendering/node.cpp
source/rendering/quad.cpp
source/rendering/box.cpp
source/rendering/root.cpp
source/rendering/shader.cpp
source/rendering/texture.cpp)
set(ANIM_SRC
Source/Animation/Private/animationController.cpp
Source/Animation/Private/animationChannel.cpp
Source/Animation/Private/animation.cpp
Source/Animation/Private/animatable.cpp
Source/Animation/Private/keyframeChannel.cpp
Source/Animation/Private/driver.cpp)
source/animation/animationController.cpp
source/animation/animationChannel.cpp
source/animation/animation.cpp
source/animation/animatable.cpp
source/animation/keyframeChannel.cpp
source/animation/driver.cpp)
set(ARMATURE_SRC
Source/Armature/Private/skeleton.cpp
Source/Armature/Private/bone.cpp
Source/Armature/Private/ikSolver.cpp)
source/armature/skeleton.cpp
source/armature/bone.cpp
source/armature/ikSolver.cpp)
set(ASSETS_SRC
Source/Assets/Private/assetManager.cpp)
source/assets/assetManager.cpp)
set(LOADERS_SRC
Source/Loaders/Private/shaderReader.cpp
Source/Loaders/Private/imageReader.cpp
Source/Loaders/Private/fontReader.cpp
Source/Loaders/Private/modelReader.cpp
Source/Loaders/Private/xmlModelReader.cpp)
set(READERS_SRC
source/readers/shaderReader.cpp
source/readers/imageReader.cpp
source/readers/fontReader.cpp
source/readers/modelReader.cpp
source/readers/xmlModelReader.cpp)
set(GUI_SRC Source/GUI/Private/text.cpp)
set(GUI_SRC source/gui/text.cpp)
if(BUILD_GUI_ELEMENTS)
list(APPEND GUI_SRC
Source/GUI/Private/abstractGuiManager.cpp
Source/GUI/Private/button.cpp
Source/GUI/Private/listbox.cpp
Source/GUI/Private/textbox.cpp
Source/GUI/Private/checkbox.cpp
Source/GUI/Private/slider.cpp)
source/gui/abstractGuiManager.cpp
source/gui/button.cpp
source/gui/listbox.cpp
source/gui/textbox.cpp
source/gui/checkbox.cpp
source/gui/slider.cpp)
endif()
if(BUILD_WITH_ASSIMP)
list(APPEND LOADERS_SRC Source/Loaders/Private/assimpModelReader.cpp)
list(APPEND LOADERS_SRC source/loaders/assimpModelReader.cpp)
endif()
set(LIB_SRC
${CORE_SRC} ${MATH_SRC} ${RENDER_SRC} ${ANIM_SRC}
${ARMATURE_SRC} ${ASSETS_SRC} ${LOADERS_SRC} ${GUI_SRC})
${ARMATURE_SRC} ${ASSETS_SRC} ${READERS_SRC} ${GUI_SRC})
add_library(${LIB_NAME} ${LIB_SRC})
target_include_directories(${LIB_NAME} PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/Source/Core/Public
${CMAKE_CURRENT_SOURCE_DIR}/Source/Math/Public
${CMAKE_CURRENT_SOURCE_DIR}/Source/Rendering/Public
${CMAKE_CURRENT_SOURCE_DIR}/Source/Animation/Public
${CMAKE_CURRENT_SOURCE_DIR}/Source/Armature/Public
${CMAKE_CURRENT_SOURCE_DIR}/Source/Assets/Public
${CMAKE_CURRENT_SOURCE_DIR}/Source/Loaders/Public
${CMAKE_CURRENT_SOURCE_DIR}/Source/GUI/Public)
${CMAKE_CURRENT_SOURCE_DIR}/source/core
${CMAKE_CURRENT_SOURCE_DIR}/source/math
${CMAKE_CURRENT_SOURCE_DIR}/source/rendering
${CMAKE_CURRENT_SOURCE_DIR}/source/animation
${CMAKE_CURRENT_SOURCE_DIR}/source/armature
${CMAKE_CURRENT_SOURCE_DIR}/source/assets
${CMAKE_CURRENT_SOURCE_DIR}/source/readers
${CMAKE_CURRENT_SOURCE_DIR}/source/gui)
set(THIRDPARTY_DIR ${CMAKE_SOURCE_DIR}/ThirdParty)
set(THIRDPARTY_DIR ${CMAKE_SOURCE_DIR}/external)
target_link_libraries(${LIB_NAME} PUBLIC glad)
@@ -119,18 +119,18 @@ if(BUILD_RENDERER_TESTS)
endif()
set(TEST_SRC
Tests/main.cpp
Tests/nodeTest.cpp
Tests/cameraTest.cpp
Tests/shaderTest.cpp
Tests/particleEmitterTest.cpp
Tests/boneTest.cpp
Tests/ikSolverTest.cpp
Tests/animationChannelTest.cpp
Tests/assetManagerTest.cpp)
tests/main.cpp
tests/nodeTest.cpp
tests/cameraTest.cpp
tests/shaderTest.cpp
tests/particleEmitterTest.cpp
tests/boneTest.cpp
tests/ikSolverTest.cpp
tests/animationChannelTest.cpp
tests/assetManagerTest.cpp)
add_executable(RendererTests ${TEST_SRC})
target_link_libraries(RendererTests PRIVATE ${LIB_NAME} cppunit)
add_executable(vb01Tests ${TEST_SRC})
target_link_libraries(vb01Tests PRIVATE ${LIB_NAME} cppunit)
endif()
if(BUILD_RENDERER_SAMPLES)
View File
View File

Some files were not shown because too many files have changed in this diff Show More