Minor refactoring
This commit is contained in:
parent
0a5a3b653d
commit
592e008914
@ -413,45 +413,45 @@ set_target_properties(libzip_external_lib PROPERTIES
|
||||
# Основной проект space-game001
|
||||
# ===========================================
|
||||
add_executable(space-game001
|
||||
main.cpp
|
||||
Game.cpp
|
||||
Game.h
|
||||
Environment.cpp
|
||||
Environment.h
|
||||
Renderer.cpp
|
||||
Renderer.h
|
||||
ShaderManager.cpp
|
||||
ShaderManager.h
|
||||
TextureManager.cpp
|
||||
TextureManager.h
|
||||
TextModel.cpp
|
||||
TextModel.h
|
||||
AudioPlayerAsync.cpp
|
||||
AudioPlayerAsync.h
|
||||
BoneAnimatedModel.cpp
|
||||
BoneAnimatedModel.h
|
||||
ZLMath.cpp
|
||||
ZLMath.h
|
||||
OpenGlExtensions.cpp
|
||||
OpenGlExtensions.h
|
||||
Utils.cpp
|
||||
Utils.h
|
||||
SparkEmitter.cpp
|
||||
SparkEmitter.h
|
||||
PlanetObject.cpp
|
||||
PlanetObject.h
|
||||
PlanetData.cpp
|
||||
PlanetData.h
|
||||
Perlin.cpp
|
||||
Perlin.h
|
||||
StoneObject.cpp
|
||||
StoneObject.h
|
||||
FrameBuffer.cpp
|
||||
FrameBuffer.h
|
||||
UiManager.cpp
|
||||
UiManager.h
|
||||
Projectile.h
|
||||
Projectile.cpp
|
||||
src/main.cpp
|
||||
src/Game.cpp
|
||||
src/Game.h
|
||||
src/Environment.cpp
|
||||
src/Environment.h
|
||||
src/render/Renderer.cpp
|
||||
src/render/Renderer.h
|
||||
src/render/ShaderManager.cpp
|
||||
src/render/ShaderManager.h
|
||||
src/render/TextureManager.cpp
|
||||
src/render/TextureManager.h
|
||||
src/TextModel.cpp
|
||||
src/TextModel.h
|
||||
src/AudioPlayerAsync.cpp
|
||||
src/AudioPlayerAsync.h
|
||||
src/BoneAnimatedModel.cpp
|
||||
src/BoneAnimatedModel.h
|
||||
src/utils/ZLMath.cpp
|
||||
src/utils/ZLMath.h
|
||||
src/render/OpenGlExtensions.cpp
|
||||
src/render/OpenGlExtensions.h
|
||||
src/utils/Utils.cpp
|
||||
src/utils/Utils.h
|
||||
src/SparkEmitter.cpp
|
||||
src/SparkEmitter.h
|
||||
src/planet/PlanetObject.cpp
|
||||
src/planet/PlanetObject.h
|
||||
src/planet/PlanetData.cpp
|
||||
src/planet/PlanetData.h
|
||||
src/utils/Perlin.cpp
|
||||
src/utils/Perlin.h
|
||||
src/planet/StoneObject.cpp
|
||||
src/planet/StoneObject.h
|
||||
src/render/FrameBuffer.cpp
|
||||
src/render/FrameBuffer.h
|
||||
src/UiManager.cpp
|
||||
src/UiManager.h
|
||||
src/Projectile.h
|
||||
src/Projectile.cpp
|
||||
)
|
||||
|
||||
# Установка проекта по умолчанию для Visual Studio
|
||||
@ -459,12 +459,8 @@ set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT s
|
||||
|
||||
# include-пути проекта
|
||||
target_include_directories(space-game001 PRIVATE
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
#"${CMAKE_CURRENT_SOURCE_DIR}/gl"
|
||||
#"${CMAKE_CURRENT_SOURCE_DIR}/cmakeaudioplayer/include"
|
||||
#"${SDL2_INSTALL_DIR}/include"
|
||||
#"${SDL2_INSTALL_DIR}/include/SDL2"
|
||||
#"${LIBZIP_INSTALL_DIR}-Release/include" # Добавил include-путь для libzip
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/src"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/external"
|
||||
)
|
||||
|
||||
set_target_properties(space-game001 PROPERTIES
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "Renderer.h"
|
||||
#include "TextureManager.h"
|
||||
#include "render/Renderer.h"
|
||||
#include "render/TextureManager.h"
|
||||
|
||||
namespace ZL
|
||||
{
|
||||
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include "ZLMath.h"
|
||||
#include "Renderer.h"
|
||||
#include "utils/ZLMath.h"
|
||||
#include "render/Renderer.h"
|
||||
#include <unordered_map>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#include "Environment.h"
|
||||
|
||||
#include "Utils.h"
|
||||
#include "utils/Utils.h"
|
||||
#include <GL/gl.h>
|
||||
|
||||
namespace ZL {
|
||||
@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
#include "ZLMath.h"
|
||||
#include "utils/ZLMath.h"
|
||||
#ifdef __linux__
|
||||
#include <SDL2/SDL.h>
|
||||
#endif
|
||||
#include "OpenGlExtensions.h"
|
||||
#include "render/OpenGlExtensions.h"
|
||||
|
||||
namespace ZL {
|
||||
|
||||
7
Game.cpp → src/Game.cpp
Executable file → Normal file
7
Game.cpp → src/Game.cpp
Executable file → Normal file
@ -1,12 +1,11 @@
|
||||
#include "Game.h"
|
||||
#include "AnimatedModel.h"
|
||||
#include "BoneAnimatedModel.h"
|
||||
#include "Utils.h"
|
||||
#include "OpenGlExtensions.h"
|
||||
#include "utils/Utils.h"
|
||||
#include "render/OpenGlExtensions.h"
|
||||
#include <iostream>
|
||||
#include "TextureManager.h"
|
||||
#include "render/TextureManager.h"
|
||||
#include "TextModel.h"
|
||||
#include "StoneObject.h"
|
||||
#include <random>
|
||||
#include <cmath>
|
||||
|
||||
7
Game.h → src/Game.h
Executable file → Normal file
7
Game.h → src/Game.h
Executable file → Normal file
@ -1,11 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include "OpenGlExtensions.h"
|
||||
#include "Renderer.h"
|
||||
#include "render/Renderer.h"
|
||||
#include "Environment.h"
|
||||
#include "TextureManager.h"
|
||||
#include "render/TextureManager.h"
|
||||
#include "SparkEmitter.h"
|
||||
#include "PlanetObject.h"
|
||||
#include "planet/PlanetObject.h"
|
||||
#include "UiManager.h"
|
||||
#include "Projectile.h"
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "ZLMath.h"
|
||||
#include "Renderer.h"
|
||||
#include "TextureManager.h"
|
||||
#include "utils/ZLMath.h"
|
||||
#include "render/Renderer.h"
|
||||
#include "render/TextureManager.h"
|
||||
#include <memory>
|
||||
|
||||
namespace ZL {
|
||||
@ -1,7 +1,7 @@
|
||||
#include "SparkEmitter.h"
|
||||
#include <random>
|
||||
#include <cmath>
|
||||
#include "OpenGlExtensions.h"
|
||||
//#include "renderer/OpenGlExtensions.h"
|
||||
#include <fstream>
|
||||
#include "external/nlohmann/json.hpp"
|
||||
#include <iostream>
|
||||
@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "ZLMath.h"
|
||||
#include "Renderer.h"
|
||||
#include "TextureManager.h"
|
||||
#include "utils/ZLMath.h"
|
||||
#include "render/Renderer.h"
|
||||
#include "render/TextureManager.h"
|
||||
#include <vector>
|
||||
#include <chrono>
|
||||
#include <string>
|
||||
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "ZLMath.h"
|
||||
#include "Renderer.h"
|
||||
#include "utils/ZLMath.h"
|
||||
#include "render/Renderer.h"
|
||||
#include <unordered_map>
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#include "UiManager.h"
|
||||
#include "Utils.h"
|
||||
#include "utils/Utils.h"
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "Renderer.h"
|
||||
#include "TextureManager.h"
|
||||
#include "render/Renderer.h"
|
||||
#include "render/TextureManager.h"
|
||||
#include "Environment.h"
|
||||
#include "external/nlohmann/json.hpp"
|
||||
#include <string>
|
||||
0
gl/glext.h → src/gl/glext.h
Executable file → Normal file
0
gl/glext.h → src/gl/glext.h
Executable file → Normal file
0
main.cpp → src/main.cpp
Executable file → Normal file
0
main.cpp → src/main.cpp
Executable file → Normal file
@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "ZLMath.h"
|
||||
#include "Perlin.h"
|
||||
#include "Renderer.h" // Äëÿ VertexDataStruct
|
||||
#include "utils/ZLMath.h"
|
||||
#include "utils/Perlin.h"
|
||||
#include "render/Renderer.h"
|
||||
#include <vector>
|
||||
#include <array>
|
||||
#include <string>
|
||||
@ -1,7 +1,7 @@
|
||||
#include "PlanetObject.h"
|
||||
#include <random>
|
||||
#include <cmath>
|
||||
#include "OpenGlExtensions.h"
|
||||
#include "render/OpenGlExtensions.h"
|
||||
#include "Environment.h"
|
||||
#include "StoneObject.h"
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "ZLMath.h"
|
||||
#include "Renderer.h"
|
||||
#include "TextureManager.h"
|
||||
#include "utils/ZLMath.h"
|
||||
#include "render/Renderer.h"
|
||||
#include "render/TextureManager.h"
|
||||
#include <vector>
|
||||
#include <chrono>
|
||||
#include <iostream>
|
||||
@ -13,10 +13,10 @@
|
||||
#include <algorithm>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include "Perlin.h"
|
||||
#include "utils/Perlin.h"
|
||||
#include "PlanetData.h"
|
||||
#include "StoneObject.h"
|
||||
#include "FrameBuffer.h"
|
||||
#include "render/FrameBuffer.h"
|
||||
|
||||
namespace ZL {
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
#include "StoneObject.h"
|
||||
|
||||
#include "Utils.h"
|
||||
#include "utils/Utils.h"
|
||||
#include <GL/gl.h>
|
||||
#include <random>
|
||||
#include <cmath>
|
||||
#include "Renderer.h"
|
||||
#include "render/Renderer.h"
|
||||
#include "PlanetData.h"
|
||||
|
||||
namespace ZL {
|
||||
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include "ZLMath.h"
|
||||
#include "Renderer.h"
|
||||
#include "utils/ZLMath.h"
|
||||
#include "render/Renderer.h"
|
||||
#include "PlanetData.h"
|
||||
|
||||
namespace ZL {
|
||||
2
OpenGlExtensions.cpp → src/render/OpenGlExtensions.cpp
Executable file → Normal file
2
OpenGlExtensions.cpp → src/render/OpenGlExtensions.cpp
Executable file → Normal file
@ -1,6 +1,6 @@
|
||||
#include "OpenGlExtensions.h"
|
||||
|
||||
#include "Utils.h"
|
||||
#include "utils/Utils.h"
|
||||
#include <iostream>
|
||||
|
||||
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
|
||||
0
OpenGlExtensions.h → src/render/OpenGlExtensions.h
Executable file → Normal file
0
OpenGlExtensions.h → src/render/OpenGlExtensions.h
Executable file → Normal file
2
Renderer.cpp → src/render/Renderer.cpp
Executable file → Normal file
2
Renderer.cpp → src/render/Renderer.cpp
Executable file → Normal file
@ -1,4 +1,4 @@
|
||||
#include "Renderer.h"
|
||||
#include "render/Renderer.h"
|
||||
#include <cmath>
|
||||
|
||||
namespace ZL {
|
||||
2
Renderer.h → src/render/Renderer.h
Executable file → Normal file
2
Renderer.h → src/render/Renderer.h
Executable file → Normal file
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "OpenGlExtensions.h"
|
||||
#include "ZLMath.h"
|
||||
#include "utils/ZLMath.h"
|
||||
#include <exception>
|
||||
#include <stdexcept>
|
||||
#include "ShaderManager.h"
|
||||
0
ShaderManager.cpp → src/render/ShaderManager.cpp
Executable file → Normal file
0
ShaderManager.cpp → src/render/ShaderManager.cpp
Executable file → Normal file
2
ShaderManager.h → src/render/ShaderManager.h
Executable file → Normal file
2
ShaderManager.h → src/render/ShaderManager.h
Executable file → Normal file
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include "OpenGlExtensions.h"
|
||||
#include "Utils.h"
|
||||
#include "utils/Utils.h"
|
||||
|
||||
namespace ZL {
|
||||
|
||||
3
TextureManager.cpp → src/render/TextureManager.cpp
Executable file → Normal file
3
TextureManager.cpp → src/render/TextureManager.cpp
Executable file → Normal file
@ -1,4 +1,5 @@
|
||||
#include "TextureManager.h"
|
||||
#include "render/TextureManager.h"
|
||||
#include "render/OpenGlExtensions.h"
|
||||
#ifdef PNG_ENABLED
|
||||
#include "png.h"
|
||||
#endif
|
||||
2
TextureManager.h → src/render/TextureManager.h
Executable file → Normal file
2
TextureManager.h → src/render/TextureManager.h
Executable file → Normal file
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "OpenGlExtensions.h"
|
||||
#include "Utils.h"
|
||||
#include "utils/Utils.h"
|
||||
|
||||
#ifdef EMSCRIPTEN
|
||||
#define PNG_ENABLED
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
#include <vector>
|
||||
#include <cstdint>
|
||||
#include "ZLMath.h"
|
||||
#include "utils/ZLMath.h"
|
||||
|
||||
namespace ZL {
|
||||
|
||||
2
Utils.cpp → src/utils/Utils.cpp
Executable file → Normal file
2
Utils.cpp → src/utils/Utils.cpp
Executable file → Normal file
@ -1,4 +1,4 @@
|
||||
#include "Utils.h"
|
||||
#include "utils/Utils.h"
|
||||
#include <cstring>
|
||||
#include <iterator>
|
||||
#include <vector>
|
||||
0
Utils.h → src/utils/Utils.h
Executable file → Normal file
0
Utils.h → src/utils/Utils.h
Executable file → Normal file
@ -1,4 +1,4 @@
|
||||
#include "ZLMath.h"
|
||||
#include "utils/ZLMath.h"
|
||||
|
||||
#include <exception>
|
||||
#include <cmath>
|
||||
0
ZLMath.h → src/utils/ZLMath.h
Executable file → Normal file
0
ZLMath.h → src/utils/ZLMath.h
Executable file → Normal file
Loading…
Reference in New Issue
Block a user