just a minor refactor, nothing special

This commit is contained in:
MihailRis
2024-04-23 02:00:03 +03:00
parent 6e2bc9ca95
commit 9f2bceb039
67 changed files with 143 additions and 143 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
#include "Atlas.h"
#include "Atlas.hpp"
#include <stdexcept>
#include "../../maths/LMPacker.h"
#include "Texture.h"
#include "ImageData.h"
#include "Texture.hpp"
#include "ImageData.hpp"
Atlas::Atlas(
std::unique_ptr<ImageData> image,
+4 -4
View File
@@ -1,7 +1,7 @@
#include "Batch2D.h"
#include "Mesh.h"
#include "Texture.h"
#include "gl_util.h"
#include "Batch2D.hpp"
#include "Mesh.hpp"
#include "Texture.hpp"
#include "gl_util.hpp"
#include <GL/glew.h>
@@ -5,7 +5,7 @@
#include <stdlib.h>
#include <glm/glm.hpp>
#include "commons.h"
#include "commons.hpp"
#include "../../maths/UVRegion.h"
class Mesh;
+3 -3
View File
@@ -1,7 +1,7 @@
#include "Batch3D.h"
#include "Batch3D.hpp"
#include "Mesh.h"
#include "Texture.h"
#include "Mesh.hpp"
#include "Texture.hpp"
#include <GL/glew.h>
#include "../../typedefs.h"
+2 -2
View File
@@ -1,5 +1,5 @@
#include "Cubemap.h"
#include "gl_util.h"
#include "Cubemap.hpp"
#include "gl_util.hpp"
#include <GL/glew.h>
@@ -1,7 +1,7 @@
#ifndef GRAPHICS_CORE_CUBEMAP_H_
#define GRAPHICS_CORE_CUBEMAP_H_
#include "Texture.h"
#include "Texture.hpp"
/// @brief Cubemap texture
class Cubemap : public Texture {
+3 -3
View File
@@ -1,6 +1,6 @@
#include "Font.h"
#include "Texture.h"
#include "Batch2D.h"
#include "Font.hpp"
#include "Texture.hpp"
#include "Batch2D.hpp"
inline constexpr uint GLYPH_SIZE = 16;
inline constexpr uint MAX_CODEPAGES = 10000; // idk ho many codepages unicode has
+2 -2
View File
@@ -1,7 +1,7 @@
#include "Framebuffer.h"
#include "Framebuffer.hpp"
#include <GL/glew.h>
#include "Texture.h"
#include "Texture.hpp"
Framebuffer::Framebuffer(uint fbo, uint depth, std::unique_ptr<Texture> texture)
: fbo(fbo), depth(depth), texture(std::move(texture))
+3 -3
View File
@@ -1,9 +1,9 @@
#include "GfxContext.h"
#include "GfxContext.hpp"
#include <GL/glew.h>
#include "Batch2D.h"
#include "Framebuffer.h"
#include "Batch2D.hpp"
#include "Framebuffer.hpp"
GfxContext::GfxContext(
const GfxContext* parent,
@@ -1,7 +1,7 @@
#ifndef GRAPHICS_CORE_GFX_CONTEXT_H_
#define GRAPHICS_CORE_GFX_CONTEXT_H_
#include "Viewport.h"
#include "Viewport.hpp"
#include "../../window/Window.h"
#include "../../typedefs.h"
+1 -1
View File
@@ -1,4 +1,4 @@
#include "ImageData.h"
#include "ImageData.hpp"
#include <assert.h>
#include <stdexcept>
+2 -2
View File
@@ -1,5 +1,5 @@
#include "LineBatch.h"
#include "Mesh.h"
#include "LineBatch.hpp"
#include "Mesh.hpp"
#include <GL/glew.h>
+1 -1
View File
@@ -1,4 +1,4 @@
#include "Mesh.h"
#include "Mesh.hpp"
#include <GL/glew.h>
int Mesh::meshesCount = 0;
+4 -4
View File
@@ -1,8 +1,8 @@
#include "PostProcessing.h"
#include "Mesh.h"
#include "Shader.h"
#include "Texture.h"
#include "Framebuffer.h"
#include "Mesh.hpp"
#include "Shader.hpp"
#include "Texture.hpp"
#include "Framebuffer.hpp"
#include <stdexcept>
+3 -3
View File
@@ -1,8 +1,8 @@
#ifndef GRAPHICS_CORE_POST_PROCESSING_H_
#define GRAPHICS_CORE_POST_PROCESSING_H_
#include "Viewport.h"
#include "GfxContext.h"
#include "Viewport.hpp"
#include "GfxContext.hpp"
#include <memory>
@@ -35,7 +35,7 @@ public:
/// @brief Make an image from the last rendered frame
std::unique_ptr<ImageData> toImage();
Framebuffer* getFramebuffer() const;
};
+1 -1
View File
@@ -1,4 +1,4 @@
#include "Shader.h"
#include "Shader.hpp"
#include <exception>
#include <fstream>
+4 -4
View File
@@ -1,11 +1,11 @@
#include "Texture.h"
#include "Texture.hpp"
#include "ImageData.hpp"
#include "gl_util.hpp"
#include <GL/glew.h>
#include <stdexcept>
#include <memory>
#include "ImageData.h"
#include "gl_util.h"
uint Texture::MAX_RESOLUTION = 1024; // Window.initialize overrides it
Texture::Texture(uint id, uint width, uint height)
@@ -4,7 +4,7 @@
#include <string>
#include <memory>
#include "../../typedefs.h"
#include "ImageData.h"
#include "ImageData.hpp"
class Texture {
protected:
+3 -3
View File
@@ -1,6 +1,6 @@
#include "TextureAnimation.h"
#include "Texture.h"
#include "Framebuffer.h"
#include "TextureAnimation.hpp"
#include "Texture.hpp"
#include "Framebuffer.hpp"
#include <GL/glew.h>
#include <unordered_set>
+2 -2
View File
@@ -1,4 +1,4 @@
#include "Viewport.h"
#include "Viewport.hpp"
Viewport::Viewport(uint width, uint height)
: width(width), height(height) {
@@ -10,4 +10,4 @@ uint Viewport::getWidth() const {
uint Viewport::getHeight() const {
return height;
}
}
@@ -1,8 +1,8 @@
#ifndef GRAPHICS_CORE_GL_UTIL_H_
#define GRAPHICS_CORE_GL_UTIL_H_
#include "commons.h"
#include "ImageData.h"
#include "commons.hpp"
#include "ImageData.hpp"
#include <GL/glew.h>