includes refactor

This commit is contained in:
MihailRis
2024-05-13 03:20:09 +03:00
parent f8a5f329a4
commit 165525f18c
13 changed files with 15 additions and 12 deletions
+1
View File
@@ -2,6 +2,7 @@
#include "Mesh.hpp"
#include "Texture.hpp"
#include "gl_util.hpp"
#include "../../maths/UVRegion.hpp"
#include <GL/glew.h>
+1 -1
View File
@@ -6,10 +6,10 @@
#include <glm/glm.hpp>
#include "commons.hpp"
#include "../../maths/UVRegion.hpp"
class Mesh;
class Texture;
struct UVRegion;
class Batch2D {
float* buffer;
+1
View File
@@ -4,6 +4,7 @@
#include "Batch2D.hpp"
#include "Framebuffer.hpp"
#include "../../window/Window.hpp"
static void set_blend_mode(BlendMode mode) {
switch (mode) {
-1
View File
@@ -3,7 +3,6 @@
#include "commons.hpp"
#include "Viewport.hpp"
#include "../../window/Window.hpp"
#include "../../typedefs.hpp"
class Batch2D;
+2
View File
@@ -3,6 +3,8 @@
#include "Shader.hpp"
#include "Texture.hpp"
#include "Framebuffer.hpp"
#include "Viewport.hpp"
#include "DrawContext.hpp"
#include <stdexcept>
+2 -3
View File
@@ -1,14 +1,13 @@
#ifndef GRAPHICS_CORE_POST_PROCESSING_HPP_
#define GRAPHICS_CORE_POST_PROCESSING_HPP_
#include "Viewport.hpp"
#include "DrawContext.hpp"
#include <memory>
class Mesh;
class Shader;
class Framebuffer;
class DrawContext;
class ImageData;
/// @brief Framebuffer with blitting with shaders.
/// @attention Current implementation does not support multiple render passes
-1
View File
@@ -1,5 +1,4 @@
#include "Texture.hpp"
#include "ImageData.hpp"
#include "gl_util.hpp"
#include <GL/glew.h>
+3 -2
View File
@@ -1,11 +1,12 @@
#ifndef GRAPHICS_CORE_TEXTURE_HPP_
#define GRAPHICS_CORE_TEXTURE_HPP_
#include <string>
#include <memory>
#include "../../typedefs.hpp"
#include "ImageData.hpp"
#include <string>
#include <memory>
class Texture {
protected:
uint id;