minor refactor
This commit is contained in:
parent
3ddde7f7d3
commit
67f34ceb8c
@ -6,7 +6,7 @@
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
|
||||
#include "../util/ThreadPool.h"
|
||||
#include "../util/ThreadPool.hpp"
|
||||
|
||||
#include "../constants.h"
|
||||
#include "../data/dynamic.h"
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
#include "../content/ContentLUT.h"
|
||||
#include "../objects/Player.h"
|
||||
#include "../debug/Logger.h"
|
||||
#include "../util/ThreadPool.h"
|
||||
#include "../util/ThreadPool.hpp"
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef FILES_WORLD_FILES_H_
|
||||
#define FILES_WORLD_FILES_H_
|
||||
|
||||
#include "WorldRegions.h"
|
||||
#include "WorldRegions.hpp"
|
||||
|
||||
#include "files.h"
|
||||
#include "../typedefs.h"
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "WorldRegions.h"
|
||||
#include "WorldRegions.hpp"
|
||||
|
||||
#include "../coders/rle.h"
|
||||
#include "../util/data_io.h"
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
#ifndef FILES_WORLD_REGIONS_H_
|
||||
#define FILES_WORLD_REGIONS_H_
|
||||
#ifndef FILES_WORLD_REGIONS_HPP_
|
||||
#define FILES_WORLD_REGIONS_HPP_
|
||||
|
||||
#include "files.h"
|
||||
#include "../typedefs.h"
|
||||
#include "../util/BufferPool.h"
|
||||
#include "../util/BufferPool.hpp"
|
||||
#include "../voxels/Chunk.h"
|
||||
|
||||
#include <mutex>
|
||||
@ -162,4 +162,4 @@ public:
|
||||
static bool parseRegionFilename(const std::string& name, int& x, int& y);
|
||||
};
|
||||
|
||||
#endif // FILES_WORLD_REGIONS_H_
|
||||
#endif // FILES_WORLD_REGIONS_HPP_
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef GRAPHICS_CORE_ATLAS_H_
|
||||
#define GRAPHICS_CORE_ATLAS_H_
|
||||
#ifndef GRAPHICS_CORE_ATLAS_HPP_
|
||||
#define GRAPHICS_CORE_ATLAS_HPP_
|
||||
|
||||
#include <set>
|
||||
#include <string>
|
||||
@ -58,4 +58,4 @@ public:
|
||||
Atlas* build(uint extrusion, bool prepare=true, uint maxResolution=0);
|
||||
};
|
||||
|
||||
#endif // GRAPHICS_CORE_ATLAS_H_
|
||||
#endif // GRAPHICS_CORE_ATLAS_HPP_
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef GRAPHICS_CORE_BATCH2D_H_
|
||||
#define GRAPHICS_CORE_BATCH2D_H_
|
||||
#ifndef GRAPHICS_CORE_BATCH2D_HPP_
|
||||
#define GRAPHICS_CORE_BATCH2D_HPP_
|
||||
|
||||
#include <memory>
|
||||
#include <stdlib.h>
|
||||
@ -92,4 +92,4 @@ public:
|
||||
void lineWidth(float width);
|
||||
};
|
||||
|
||||
#endif // GRAPHICS_CORE_BATCH2D_H_
|
||||
#endif // GRAPHICS_CORE_BATCH2D_HPP_
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef GRAPHICS_CORE_BATCH3D_H_
|
||||
#define GRAPHICS_CORE_BATCH3D_H_
|
||||
#ifndef GRAPHICS_CORE_BATCH3D_HPP_
|
||||
#define GRAPHICS_CORE_BATCH3D_HPP_
|
||||
|
||||
#include "../../maths/UVRegion.h"
|
||||
#include "../../typedefs.h"
|
||||
@ -51,4 +51,4 @@ public:
|
||||
void flushPoints();
|
||||
};
|
||||
|
||||
#endif // GRAPHICS_CORE_BATCH3D_H_
|
||||
#endif // GRAPHICS_CORE_BATCH3D_HPP_
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef GRAPHICS_CORE_CUBEMAP_H_
|
||||
#define GRAPHICS_CORE_CUBEMAP_H_
|
||||
#ifndef GRAPHICS_CORE_CUBEMAP_HPP_
|
||||
#define GRAPHICS_CORE_CUBEMAP_HPP_
|
||||
|
||||
#include "Texture.hpp"
|
||||
|
||||
@ -12,4 +12,4 @@ public:
|
||||
virtual void unbind() override;
|
||||
};
|
||||
|
||||
#endif // GRAPHICS_CORE_CUBEMAP_H_
|
||||
#endif // GRAPHICS_CORE_CUBEMAP_HPP_
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef GRAPHICS_CORE_FONT_H_
|
||||
#define GRAPHICS_CORE_FONT_H_
|
||||
#ifndef GRAPHICS_CORE_FONT_HPP_
|
||||
#define GRAPHICS_CORE_FONT_HPP_
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
@ -40,4 +40,4 @@ public:
|
||||
void draw(Batch2D* batch, std::wstring_view text, int x, int y, FontStyle style);
|
||||
};
|
||||
|
||||
#endif // GRAPHICS_CORE_FONT_H_
|
||||
#endif // GRAPHICS_CORE_FONT_HPP_
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef GRAPHICS_CORE_FRAMEBUFFER_H_
|
||||
#define GRAPHICS_CORE_FRAMEBUFFER_H_
|
||||
#ifndef GRAPHICS_CORE_FRAMEBUFFER_HPP_
|
||||
#define GRAPHICS_CORE_FRAMEBUFFER_HPP_
|
||||
|
||||
#include "../../typedefs.h"
|
||||
|
||||
@ -39,4 +39,4 @@ public:
|
||||
uint getHeight() const;
|
||||
};
|
||||
|
||||
#endif // GRAPHICS_CORE_FRAMEBUFFER_H_
|
||||
#endif // GRAPHICS_CORE_FRAMEBUFFER_HPP_
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef GRAPHICS_CORE_GFX_CONTEXT_H_
|
||||
#define GRAPHICS_CORE_GFX_CONTEXT_H_
|
||||
#ifndef GRAPHICS_CORE_GFX_CONTEXT_HPP_
|
||||
#define GRAPHICS_CORE_GFX_CONTEXT_HPP_
|
||||
|
||||
#include "Viewport.hpp"
|
||||
#include "../../window/Window.h"
|
||||
@ -35,4 +35,4 @@ public:
|
||||
void setScissors(glm::vec4 area);
|
||||
};
|
||||
|
||||
#endif // GRAPHICS_CORE_GFX_CONTEXT_H_
|
||||
#endif // GRAPHICS_CORE_GFX_CONTEXT_HPP_
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef GRAPHICS_CORE_IMAGE_DATA_H_
|
||||
#define GRAPHICS_CORE_IMAGE_DATA_H_
|
||||
#ifndef GRAPHICS_CORE_IMAGE_DATA_HPP_
|
||||
#define GRAPHICS_CORE_IMAGE_DATA_HPP_
|
||||
|
||||
#include "../../typedefs.h"
|
||||
|
||||
@ -46,4 +46,4 @@ public:
|
||||
|
||||
extern ImageData* add_atlas_margins(ImageData* image, int grid_size);
|
||||
|
||||
#endif // GRAPHICS_CORE_IMAGE_DATA_H_
|
||||
#endif // GRAPHICS_CORE_IMAGE_DATA_HPP_
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef GRAPHICS_CORE_LINEBATCH_H_
|
||||
#define GRAPHICS_CORE_LINEBATCH_H_
|
||||
#ifndef GRAPHICS_CORE_LINEBATCH_HPP_
|
||||
#define GRAPHICS_CORE_LINEBATCH_HPP_
|
||||
|
||||
#include <memory>
|
||||
#include <stdlib.h>
|
||||
@ -33,4 +33,4 @@ public:
|
||||
void lineWidth(float width);
|
||||
};
|
||||
|
||||
#endif // GRAPHICS_CORE_LINEBATCH_H_
|
||||
#endif // GRAPHICS_CORE_LINEBATCH_HPP_
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef GRAPHICS_CORE_MESH_H_
|
||||
#define GRAPHICS_CORE_MESH_H_
|
||||
#ifndef GRAPHICS_CORE_MESH_HPP_
|
||||
#define GRAPHICS_CORE_MESH_HPP_
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "../../typedefs.h"
|
||||
@ -39,4 +39,4 @@ public:
|
||||
static int meshesCount;
|
||||
};
|
||||
|
||||
#endif // GRAPHICS_CORE_MESH_H_
|
||||
#endif // GRAPHICS_CORE_MESH_HPP_
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef GRAPHICS_CORE_POST_PROCESSING_H_
|
||||
#define GRAPHICS_CORE_POST_PROCESSING_H_
|
||||
#ifndef GRAPHICS_CORE_POST_PROCESSING_HPP_
|
||||
#define GRAPHICS_CORE_POST_PROCESSING_HPP_
|
||||
|
||||
#include "Viewport.hpp"
|
||||
#include "GfxContext.hpp"
|
||||
@ -39,4 +39,4 @@ public:
|
||||
Framebuffer* getFramebuffer() const;
|
||||
};
|
||||
|
||||
#endif // GRAPHICS_CORE_POST_PROCESSING_H_
|
||||
#endif // GRAPHICS_CORE_POST_PROCESSING_HPP_
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef GRAPHICS_CORE_SHADER_H_
|
||||
#define GRAPHICS_CORE_SHADER_H_
|
||||
#ifndef GRAPHICS_CORE_SHADER_HPP_
|
||||
#define GRAPHICS_CORE_SHADER_HPP_
|
||||
|
||||
#include "../../typedefs.h"
|
||||
|
||||
@ -44,4 +44,4 @@ public:
|
||||
);
|
||||
};
|
||||
|
||||
#endif // GRAPHICS_SHADER_H_
|
||||
#endif // GRAPHICS_SHADER_HPP_
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef GRAPHICS_CORE_TEXTURE_H_
|
||||
#define GRAPHICS_CORE_TEXTURE_H_
|
||||
#ifndef GRAPHICS_CORE_TEXTURE_HPP_
|
||||
#define GRAPHICS_CORE_TEXTURE_HPP_
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
@ -34,4 +34,4 @@ public:
|
||||
static Texture* from(const ImageData* image);
|
||||
};
|
||||
|
||||
#endif // GRAPHICS_CORE_TEXTURE_H_
|
||||
#endif // GRAPHICS_CORE_TEXTURE_HPP_
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef GRAPHICS_CORE_TEXTURE_ANIMATION_H_
|
||||
#define GRAPHICS_CORE_TEXTURE_ANIMATION_H_
|
||||
#ifndef GRAPHICS_CORE_TEXTURE_ANIMATION_HPP_
|
||||
#define GRAPHICS_CORE_TEXTURE_ANIMATION_HPP_
|
||||
|
||||
#include "../../typedefs.h"
|
||||
|
||||
@ -49,4 +49,4 @@ private:
|
||||
std::vector<TextureAnimation> animations;
|
||||
};
|
||||
|
||||
#endif // GRAPHICS_CORE_TEXTURE_ANIMATION_H_
|
||||
#endif // GRAPHICS_CORE_TEXTURE_ANIMATION_HPP_
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef GRAPHICS_CORE_VIEWPORT_H_
|
||||
#define GRAPHICS_CORE_VIEWPORT_H_
|
||||
#ifndef GRAPHICS_CORE_VIEWPORT_HPP_
|
||||
#define GRAPHICS_CORE_VIEWPORT_HPP_
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
@ -19,4 +19,4 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
#endif // GRAPHICS_VIEWPORT_H_
|
||||
#endif // GRAPHICS_VIEWPORT_HPP_
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef GRAPHICS_CORE_COMMONS_H_
|
||||
#define GRAPHICS_CORE_COMMONS_H_
|
||||
#ifndef GRAPHICS_CORE_COMMONS_HPP_
|
||||
#define GRAPHICS_CORE_COMMONS_HPP_
|
||||
|
||||
enum class DrawPrimitive {
|
||||
point = 0,
|
||||
@ -7,4 +7,4 @@ enum class DrawPrimitive {
|
||||
triangle,
|
||||
};
|
||||
|
||||
#endif // GRAPHICS_CORE_COMMONS_H_
|
||||
#endif // GRAPHICS_CORE_COMMONS_HPP_
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef GRAPHICS_CORE_GL_UTIL_H_
|
||||
#define GRAPHICS_CORE_GL_UTIL_H_
|
||||
#ifndef GRAPHICS_CORE_GL_UTIL_HPP_
|
||||
#define GRAPHICS_CORE_GL_UTIL_HPP_
|
||||
|
||||
#include "commons.hpp"
|
||||
#include "ImageData.hpp"
|
||||
@ -26,4 +26,4 @@ namespace gl {
|
||||
}
|
||||
}
|
||||
|
||||
#endif // GRAPHICS_CORE_GL_UTIL_H_
|
||||
#endif // GRAPHICS_CORE_GL_UTIL_HPP_
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
|
||||
#include "../../voxels/Block.h"
|
||||
#include "../../voxels/ChunksStorage.h"
|
||||
#include "../../util/ThreadPool.h"
|
||||
#include "../../util/ThreadPool.hpp"
|
||||
#include "../../settings.h"
|
||||
|
||||
class Mesh;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef UTIL_BUFFER_POOL_H_
|
||||
#define UTIL_BUFFER_POOL_H_
|
||||
#ifndef UTIL_BUFFER_POOL_HPP_
|
||||
#define UTIL_BUFFER_POOL_HPP_
|
||||
|
||||
#include "../typedefs.h"
|
||||
|
||||
@ -39,4 +39,4 @@ namespace util {
|
||||
};
|
||||
}
|
||||
|
||||
#endif // UTIL_BUFFER_POOL_H_
|
||||
#endif // UTIL_BUFFER_POOL_HPP_
|
||||
@ -1,5 +1,5 @@
|
||||
#ifndef UTIL_THREAD_POOL_H_
|
||||
#define UTIL_THREAD_POOL_H_
|
||||
#ifndef UTIL_THREAD_POOL_HPP_
|
||||
#define UTIL_THREAD_POOL_HPP_
|
||||
|
||||
#include <queue>
|
||||
#include <atomic>
|
||||
@ -247,4 +247,4 @@ public:
|
||||
|
||||
} // namespace util
|
||||
|
||||
#endif // UTIL_THREAD_POOL_H_
|
||||
#endif // UTIL_THREAD_POOL_HPP_
|
||||
Loading…
x
Reference in New Issue
Block a user