Removed unnecessary inlcudes
This togheter with the previous commit has drastically improved compile time
This commit is contained in:
parent
b2688e843c
commit
210d535c41
@ -1,11 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "YoggieEngine.h"
|
#include "YoggieEngine.h"
|
||||||
|
|
||||||
#include "Input/InputManager.h"
|
|
||||||
#include "Graphics/Renderer.h"
|
|
||||||
#include <string>
|
|
||||||
#include <iostream>
|
|
||||||
#include <memory>
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
// forward declaration
|
// forward declaration
|
||||||
class InputManager;
|
class InputManager;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include <YoggieEngine.h>
|
#include <YoggieEngine.h>
|
||||||
#include "ModelImporter.h"
|
#include "ModelImporter.h"
|
||||||
#include "spdlog/spdlog.h"
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
|
||||||
SceneObject* ModelImporter::Import(const std::string path)
|
SceneObject* ModelImporter::Import(const std::string path)
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
|
||||||
struct Event
|
struct Event
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Event.h"
|
|
||||||
#include "EventListener.h"
|
|
||||||
namespace YoggieEngine{
|
namespace YoggieEngine{
|
||||||
class EventEmitter {
|
class EventEmitter {
|
||||||
public:
|
public:
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <list>
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
#include "spdlog/spdlog.h"
|
|
||||||
#include "Event.h"
|
#include "Event.h"
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
class EventListener {
|
class EventListener {
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <glad/glad.h>
|
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
class Buffer {
|
class Buffer {
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include <YoggieEngine.h>
|
#include <YoggieEngine.h>
|
||||||
#include "Framebuffer.h"
|
#include "Framebuffer.h"
|
||||||
#include <iostream>
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
Framebuffer::Framebuffer()
|
Framebuffer::Framebuffer()
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <glad/glad.h>
|
|
||||||
#include <glm/glm.hpp>
|
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
class Framebuffer {
|
class Framebuffer {
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#include <YoggieEngine.h>
|
#include <YoggieEngine.h>
|
||||||
#include "UniformBuffer.h"
|
#include "UniformBuffer.h"
|
||||||
#include <glad/glad.h>
|
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
UniformBuffer::UniformBuffer(unsigned int size)
|
UniformBuffer::UniformBuffer(unsigned int size)
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#include <YoggieEngine.h>
|
#include <YoggieEngine.h>
|
||||||
#include "VertexArray.h"
|
#include "VertexArray.h"
|
||||||
#include <glad/glad.h>
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
void VertexArray::Create() {
|
void VertexArray::Create() {
|
||||||
glGenVertexArrays(1, &id);
|
glGenVertexArrays(1, &id);
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <glm/glm.hpp>
|
|
||||||
#include <glm/gtc/matrix_transform.hpp>
|
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
class Camera {
|
class Camera {
|
||||||
public:
|
public:
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
#include <string>
|
|
||||||
#include "Shader.h"
|
#include "Shader.h"
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <glm/glm.hpp>
|
|
||||||
#include "Vertex.h"
|
#include "Vertex.h"
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#include <YoggieEngine.h>
|
#include <YoggieEngine.h>
|
||||||
#include "Shader.h"
|
#include "Shader.h"
|
||||||
#include "spdlog/spdlog.h"
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
Shader::Shader(const std::string vertexShaderPath, const std::string fragmentShaderPath)
|
Shader::Shader(const std::string vertexShaderPath, const std::string fragmentShaderPath)
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <glad/glad.h>
|
|
||||||
#include <string>
|
|
||||||
#include <iostream>
|
|
||||||
#include <fstream>
|
|
||||||
#include <glm/glm.hpp>
|
|
||||||
#include <glm/gtc/type_ptr.hpp>
|
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
class Shader {
|
class Shader {
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
#include <YoggieEngine.h>
|
#include <YoggieEngine.h>
|
||||||
#include "Texture.h"
|
#include "Texture.h"
|
||||||
#include <glad/glad.h>
|
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
#define STB_IMAGE_IMPLEMENTATION
|
#define STB_IMAGE_IMPLEMENTATION
|
||||||
#include "../stb_image.h"
|
#include "../stb_image.h"
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
Texture::Texture(const std::string texturePath) {
|
Texture::Texture(const std::string texturePath) {
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <spdlog/spdlog.h>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
class Texture {
|
class Texture {
|
||||||
public:
|
public:
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <glm/glm.hpp>
|
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
struct Vertex {
|
struct Vertex {
|
||||||
glm::vec3 vertices;
|
glm::vec3 vertices;
|
||||||
|
@ -4,8 +4,6 @@ namespace YoggieEngine {
|
|||||||
RenderSurface::RenderSurface() {
|
RenderSurface::RenderSurface() {
|
||||||
shader = new Shader("build/SandboxAppliction/Debug/renderSuface.vs", "build/SandboxApplication/Debug/renderSurface.fs");
|
shader = new Shader("build/SandboxAppliction/Debug/renderSuface.vs", "build/SandboxApplication/Debug/renderSurface.fs");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
verts = std::vector<glm::vec3>{
|
verts = std::vector<glm::vec3>{
|
||||||
{-0.5f, 0.5f, 0.0f}, // 0
|
{-0.5f, 0.5f, 0.0f}, // 0
|
||||||
{-0.5f, -0.5f, 0.0f}, // 1
|
{-0.5f, -0.5f, 0.0f}, // 1
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "../Graphics/Memory/Buffer.h"
|
#include "../Graphics/Memory/Buffer.h"
|
||||||
#include "../Graphics/Memory/VertexArray.h"
|
#include "../Graphics/Memory/VertexArray.h"
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "Primitives/Mesh.h"
|
|
||||||
#include "Primitives/Material.h"
|
|
||||||
#include "Primitives/Texture.h"
|
|
||||||
#include "../Scene/Scene.h"
|
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
|
||||||
struct Renderable {
|
struct Renderable {
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
#include "../Scene/Components.h"
|
#include "../Scene/Components.h"
|
||||||
#include "../Graphics/Memory/VertexArray.h"
|
#include "../Graphics/Memory/VertexArray.h"
|
||||||
#include "../Graphics/Memory/Buffer.h"
|
#include "../Graphics/Memory/Buffer.h"
|
||||||
#include <glad/glad.h>
|
|
||||||
#include <glm/gtc/type_precision.hpp>
|
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
float Angle = 0.0;
|
float Angle = 0.0;
|
||||||
|
@ -1,16 +1,12 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <vector>
|
|
||||||
#include <iostream>
|
|
||||||
#include <glm/gtc/matrix_transform.hpp>
|
|
||||||
#include "glad/glad.h"
|
|
||||||
#include "GLFW/glfw3.h"
|
#include "GLFW/glfw3.h"
|
||||||
|
|
||||||
#include "../PerfCounter.h"
|
#include "../PerfCounter.h"
|
||||||
|
|
||||||
#include "Primitives/Camera.h"
|
|
||||||
#include "Renderable.h"
|
#include "Renderable.h"
|
||||||
#include "Memory/Framebuffer.h"
|
#include "Memory/Framebuffer.h"
|
||||||
#include "../Scene/Components.h"
|
#include "../Scene/Components.h"
|
||||||
|
#include"../Scene/Scene.h"
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#include <YoggieEngine.h>
|
#include <YoggieEngine.h>
|
||||||
#include "PerfCounter.h"
|
#include "PerfCounter.h"
|
||||||
#include <imgui.h>
|
|
||||||
#include <iostream>
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
uint64_t EngineInstrumentation::GetPrecisionTime() {
|
uint64_t EngineInstrumentation::GetPrecisionTime() {
|
||||||
using namespace std::chrono; // REMINDER: This is kinda ugly but safes line width
|
using namespace std::chrono; // REMINDER: This is kinda ugly but safes line width
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "YoggieEngine.h"
|
#include "YoggieEngine.h"
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <chrono>
|
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
struct EngineStatistics {
|
struct EngineStatistics {
|
||||||
float frameTime;
|
float frameTime;
|
||||||
|
@ -38,7 +38,7 @@ namespace YoggieEngine {
|
|||||||
|
|
||||||
glfwMakeContextCurrent(window);
|
glfwMakeContextCurrent(window);
|
||||||
if (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)) {
|
if (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)) {
|
||||||
printf("Failed to initialize GLAD!\n");
|
spdlog::error("Failed to initialize GLAD!\n");
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,14 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define GLFW_STATIC
|
#define GLFW_STATIC
|
||||||
|
|
||||||
#include <glad/glad.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
#include <spdlog/spdlog.h>
|
|
||||||
|
|
||||||
#include "../EventSystem/Event.h"
|
#include "../EventSystem/Event.h"
|
||||||
#include "../EventSystem/EventListener.h"
|
#include "../EventSystem/EventListener.h"
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <glm/glm.hpp>
|
|
||||||
#include "../Graphics/Primitives/Shader.h"
|
|
||||||
#include "../Graphics/Primitives/Mesh.h"
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
struct IdentifierComponent {
|
struct IdentifierComponent {
|
||||||
std::string name;
|
std::string name;
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <entt/entt.hpp>
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
class Scene;
|
class Scene;
|
||||||
class Entity {
|
class Entity {
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <entt/entt.hpp>
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
class Entity;
|
class Entity;
|
||||||
class Scene
|
class Scene
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
class Node {
|
class Node {
|
||||||
public:
|
public:
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../../Graphics/Primitives/Camera.h"
|
|
||||||
#include "../../Graphics/Renderable.h"
|
#include "../../Graphics/Renderable.h"
|
||||||
#include "Node.h"
|
#include "Node.h"
|
||||||
|
|
||||||
|
@ -1,15 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
extern "C"
|
|
||||||
{
|
|
||||||
#include "lauxlib.h"
|
|
||||||
#include "lua.h"
|
|
||||||
#include "lualib.h"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#include "LuaScriptingManager.h"
|
#include "LuaScriptingManager.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,15 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
extern "C"
|
|
||||||
{
|
|
||||||
#include "lauxlib.h"
|
|
||||||
#include "lua.h"
|
|
||||||
#include "lualib.h"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#include "LuaScript.h"
|
#include "LuaScript.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1,17 +1,42 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <glad/glad.h>
|
|
||||||
#include "glm/glm.hpp"
|
|
||||||
|
|
||||||
|
// Important STL
|
||||||
|
#include <string>
|
||||||
|
#include <list>
|
||||||
|
#include <iostream>
|
||||||
|
#include <fstream>
|
||||||
|
#include <vector>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <memory>
|
||||||
|
#include <chrono>
|
||||||
|
|
||||||
|
// Important libraries
|
||||||
|
#include "spdlog/spdlog.h"
|
||||||
|
#include <glad/glad.h>
|
||||||
|
#include <glm/glm.hpp>
|
||||||
|
#include <glm/gtc/matrix_transform.hpp>
|
||||||
|
#include <glm/gtc/type_ptr.hpp>
|
||||||
|
#include <imgui.h>
|
||||||
|
#include <entt/entt.hpp>
|
||||||
|
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
#include "lauxlib.h"
|
||||||
|
#include "lua.h"
|
||||||
|
#include "lualib.h"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Main library stuff
|
||||||
#include "Platform/Window.h"
|
#include "Platform/Window.h"
|
||||||
|
|
||||||
|
#include "Graphics/Primitives/Mesh.h"
|
||||||
#include "Graphics/Primitives/Shader.h"
|
#include "Graphics/Primitives/Shader.h"
|
||||||
#include "Graphics/Primitives/Texture.h"
|
#include "Graphics/Primitives/Texture.h"
|
||||||
#include "Graphics/Primitives/Camera.h"
|
#include "Graphics/Primitives/Camera.h"
|
||||||
#include "Graphics/Primitives/Material.h"
|
#include "Graphics/Primitives/Material.h"
|
||||||
#include "Graphics/Renderer.h"
|
#include "Graphics/Renderer.h"
|
||||||
|
|
||||||
#include "spdlog/spdlog.h"
|
|
||||||
|
|
||||||
#include "EventSystem/EventEmitter.h"
|
#include "EventSystem/EventEmitter.h"
|
||||||
#include "EventSystem/EventListener.h"
|
#include "EventSystem/EventListener.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user