refactor(close #9): Change include guards with #pragma once

This commit is contained in:
Huseyn Ismayilov 2024-08-22 20:04:15 +04:00
parent 5fceafd553
commit a337c9394b
10 changed files with 20 additions and 50 deletions

View File

@ -1,5 +1,4 @@
#ifndef EDITOR_H
#define EDITOR_H
#pragma once
#define GLFW_INCLUDE_NONE
#include "Engine.h"
@ -18,5 +17,3 @@ public:
private:
void InitializeImGui();
};
#endif

View File

@ -1,5 +1,4 @@
#ifndef ENGINE_H
#define ENGINE_H
#pragma once
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
@ -25,5 +24,3 @@ private:
Window* m_Window;
static Engine* s_Instance;
};
#endif

View File

@ -1,5 +1,4 @@
#ifndef FRAMEBUFFER_H
#define FRAMEBUFFER_H
#pragma once
#include <glad/glad.h>
#include <iostream>
@ -26,5 +25,3 @@ private:
unsigned int m_FBO{}, m_RBO{};
Texture* m_Texture;
};
#endif

View File

@ -1,5 +1,4 @@
#ifndef RENDERER_H
#define RENDERER_H
#pragma once
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
@ -40,5 +39,3 @@ private:
static void LoadShaders();
static void SetupBuffers();
};
#endif

View File

@ -1,5 +1,4 @@
#ifndef SHADER_H
#define SHADER_H
#pragma once
#define GLFW_INCLUDE_NONE
#include <glad/glad.h>
@ -32,5 +31,3 @@ public:
private:
unsigned int m_ID;
};
#endif

View File

@ -1,5 +1,4 @@
#ifndef TEXTURE_H
#define TEXTURE_H
#pragma once
#include <glad/glad.h>
#include <stb_image.h>
@ -31,5 +30,3 @@ private:
unsigned char* m_Data{};
int m_Width{}, m_Height{}, m_NrChannels{};
};
#endif

View File

@ -1,5 +1,4 @@
#ifndef UI_H
#define UI_H
#pragma once
#define GLFW_INCLUDE_NONE
#include "FrameBuffer.h"
@ -39,5 +38,3 @@ public:
private:
static InspectorData s_Data;
};
#endif

View File

@ -1,5 +1,4 @@
#ifndef VERTEXARRAY_H
#define VERTEXARRAY_H
#pragma once
#include <glad/glad.h>
@ -18,5 +17,3 @@ public:
private:
unsigned int m_VAO{};
};
#endif

View File

@ -1,5 +1,4 @@
#ifndef VERTEXBUFFER_H
#define VERTEXBUFFER_H
#pragma once
#include <glad/glad.h>
@ -19,5 +18,3 @@ public:
private:
unsigned int m_VBO{};
};
#endif

View File

@ -1,5 +1,4 @@
#ifndef WINDOW_H
#define WINDOW_H
#pragma once
#include <glad/glad.h>
#include <GLFW/glfw3.h>
@ -40,5 +39,3 @@ private:
GLFWwindow* m_Window{};
WindowData m_Data;
};
#endif