includes refactor
This commit is contained in:
parent
f8a5f329a4
commit
165525f18c
@ -1,14 +1,14 @@
|
|||||||
#ifndef FRONTEND_LOCALES_HPP_
|
#ifndef FRONTEND_LOCALES_HPP_
|
||||||
#define FRONTEND_LOCALES_HPP_
|
#define FRONTEND_LOCALES_HPP_
|
||||||
|
|
||||||
#include "../content/ContentPack.hpp"
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
||||||
|
struct ContentPack;
|
||||||
|
|
||||||
namespace langs {
|
namespace langs {
|
||||||
const char LANG_FILE_EXT[] = ".txt";
|
const char LANG_FILE_EXT[] = ".txt";
|
||||||
const char TEXTS_FOLDER[] = "texts";
|
const char TEXTS_FOLDER[] = "texts";
|
||||||
|
|||||||
@ -20,6 +20,7 @@
|
|||||||
#include "../../world/World.hpp"
|
#include "../../world/World.hpp"
|
||||||
#include "../../window/Camera.hpp"
|
#include "../../window/Camera.hpp"
|
||||||
#include "../../window/Events.hpp"
|
#include "../../window/Events.hpp"
|
||||||
|
#include "../../window/Window.hpp"
|
||||||
#include "../../engine.hpp"
|
#include "../../engine.hpp"
|
||||||
|
|
||||||
static debug::Logger logger("level-screen");
|
static debug::Logger logger("level-screen");
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
#include "Mesh.hpp"
|
#include "Mesh.hpp"
|
||||||
#include "Texture.hpp"
|
#include "Texture.hpp"
|
||||||
#include "gl_util.hpp"
|
#include "gl_util.hpp"
|
||||||
|
#include "../../maths/UVRegion.hpp"
|
||||||
|
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
|
|
||||||
|
|||||||
@ -6,10 +6,10 @@
|
|||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
#include "commons.hpp"
|
#include "commons.hpp"
|
||||||
#include "../../maths/UVRegion.hpp"
|
|
||||||
|
|
||||||
class Mesh;
|
class Mesh;
|
||||||
class Texture;
|
class Texture;
|
||||||
|
struct UVRegion;
|
||||||
|
|
||||||
class Batch2D {
|
class Batch2D {
|
||||||
float* buffer;
|
float* buffer;
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#include "Batch2D.hpp"
|
#include "Batch2D.hpp"
|
||||||
#include "Framebuffer.hpp"
|
#include "Framebuffer.hpp"
|
||||||
|
#include "../../window/Window.hpp"
|
||||||
|
|
||||||
static void set_blend_mode(BlendMode mode) {
|
static void set_blend_mode(BlendMode mode) {
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
|
|||||||
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#include "commons.hpp"
|
#include "commons.hpp"
|
||||||
#include "Viewport.hpp"
|
#include "Viewport.hpp"
|
||||||
#include "../../window/Window.hpp"
|
|
||||||
#include "../../typedefs.hpp"
|
#include "../../typedefs.hpp"
|
||||||
|
|
||||||
class Batch2D;
|
class Batch2D;
|
||||||
|
|||||||
@ -3,6 +3,8 @@
|
|||||||
#include "Shader.hpp"
|
#include "Shader.hpp"
|
||||||
#include "Texture.hpp"
|
#include "Texture.hpp"
|
||||||
#include "Framebuffer.hpp"
|
#include "Framebuffer.hpp"
|
||||||
|
#include "Viewport.hpp"
|
||||||
|
#include "DrawContext.hpp"
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
|
|||||||
@ -1,14 +1,13 @@
|
|||||||
#ifndef GRAPHICS_CORE_POST_PROCESSING_HPP_
|
#ifndef GRAPHICS_CORE_POST_PROCESSING_HPP_
|
||||||
#define GRAPHICS_CORE_POST_PROCESSING_HPP_
|
#define GRAPHICS_CORE_POST_PROCESSING_HPP_
|
||||||
|
|
||||||
#include "Viewport.hpp"
|
|
||||||
#include "DrawContext.hpp"
|
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
class Mesh;
|
class Mesh;
|
||||||
class Shader;
|
class Shader;
|
||||||
class Framebuffer;
|
class Framebuffer;
|
||||||
|
class DrawContext;
|
||||||
|
class ImageData;
|
||||||
|
|
||||||
/// @brief Framebuffer with blitting with shaders.
|
/// @brief Framebuffer with blitting with shaders.
|
||||||
/// @attention Current implementation does not support multiple render passes
|
/// @attention Current implementation does not support multiple render passes
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
#include "Texture.hpp"
|
#include "Texture.hpp"
|
||||||
#include "ImageData.hpp"
|
|
||||||
#include "gl_util.hpp"
|
#include "gl_util.hpp"
|
||||||
|
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
|
|||||||
@ -1,11 +1,12 @@
|
|||||||
#ifndef GRAPHICS_CORE_TEXTURE_HPP_
|
#ifndef GRAPHICS_CORE_TEXTURE_HPP_
|
||||||
#define GRAPHICS_CORE_TEXTURE_HPP_
|
#define GRAPHICS_CORE_TEXTURE_HPP_
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <memory>
|
|
||||||
#include "../../typedefs.hpp"
|
#include "../../typedefs.hpp"
|
||||||
#include "ImageData.hpp"
|
#include "ImageData.hpp"
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
class Texture {
|
class Texture {
|
||||||
protected:
|
protected:
|
||||||
uint id;
|
uint id;
|
||||||
|
|||||||
@ -8,6 +8,7 @@
|
|||||||
#include "../../graphics/core/Shader.hpp"
|
#include "../../graphics/core/Shader.hpp"
|
||||||
#include "../../graphics/core/DrawContext.hpp"
|
#include "../../graphics/core/DrawContext.hpp"
|
||||||
#include "../../window/Events.hpp"
|
#include "../../window/Events.hpp"
|
||||||
|
#include "../../window/Window.hpp"
|
||||||
#include "../../window/input.hpp"
|
#include "../../window/input.hpp"
|
||||||
#include "../../window/Camera.hpp"
|
#include "../../window/Camera.hpp"
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
#include "../../../assets/Assets.hpp"
|
#include "../../../assets/Assets.hpp"
|
||||||
#include "../../../util/stringutil.hpp"
|
#include "../../../util/stringutil.hpp"
|
||||||
#include "../../../window/Events.hpp"
|
#include "../../../window/Events.hpp"
|
||||||
|
#include "../../../window/Window.hpp"
|
||||||
|
|
||||||
using namespace gui;
|
using namespace gui;
|
||||||
|
|
||||||
|
|||||||
@ -2,9 +2,7 @@
|
|||||||
#define TYPEDEFS_HPP_
|
#define TYPEDEFS_HPP_
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <variant>
|
|
||||||
|
|
||||||
using scriptenv = std::shared_ptr<int>;
|
using scriptenv = std::shared_ptr<int>;
|
||||||
using observer_handler = std::shared_ptr<int>;
|
using observer_handler = std::shared_ptr<int>;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user