Removed unnecessary inlcudes

This togheter with the previous commit has drastically improved compile time
This commit is contained in:
Nigel Barink 2022-11-05 20:33:19 +01:00
parent b2688e843c
commit 210d535c41
35 changed files with 34 additions and 112 deletions

View File

@ -1,11 +1,6 @@
#pragma once
#include "YoggieEngine.h"
#include "Input/InputManager.h"
#include "Graphics/Renderer.h"
#include <string>
#include <iostream>
#include <memory>
namespace YoggieEngine {
// forward declaration
class InputManager;

View File

@ -1,6 +1,6 @@
#include <YoggieEngine.h>
#include "ModelImporter.h"
#include "spdlog/spdlog.h"
namespace YoggieEngine {
SceneObject* ModelImporter::Import(const std::string path)

View File

@ -1,7 +1,4 @@
#pragma once
#include <string>
namespace YoggieEngine {
struct Event

View File

@ -1,7 +1,5 @@
#pragma once
#include "Event.h"
#include "EventListener.h"
namespace YoggieEngine{
class EventEmitter {
public:

View File

@ -1,8 +1,4 @@
#pragma once
#include <list>
#include <iostream>
#include "spdlog/spdlog.h"
#include "Event.h"
namespace YoggieEngine {
class EventListener {

View File

@ -1,6 +1,4 @@
#pragma once
#include <glad/glad.h>
namespace YoggieEngine {
class Buffer {

View File

@ -1,6 +1,6 @@
#include <YoggieEngine.h>
#include "Framebuffer.h"
#include <iostream>
namespace YoggieEngine {
Framebuffer::Framebuffer()
{

View File

@ -1,7 +1,4 @@
#pragma once
#include <glad/glad.h>
#include <glm/glm.hpp>
namespace YoggieEngine {
class Framebuffer {

View File

@ -1,6 +1,5 @@
#include <YoggieEngine.h>
#include "UniformBuffer.h"
#include <glad/glad.h>
namespace YoggieEngine {
UniformBuffer::UniformBuffer(unsigned int size)

View File

@ -1,6 +1,5 @@
#include <YoggieEngine.h>
#include "VertexArray.h"
#include <glad/glad.h>
namespace YoggieEngine {
void VertexArray::Create() {
glGenVertexArrays(1, &id);

View File

@ -1,8 +1,4 @@
#pragma once
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
namespace YoggieEngine {
class Camera {
public:

View File

@ -1,6 +1,5 @@
#pragma once
#include <glm/glm.hpp>
#include <string>
#include "Shader.h"
namespace YoggieEngine {

View File

@ -1,6 +1,5 @@
#pragma once
#include <vector>
#include <glm/glm.hpp>
#include "Vertex.h"
namespace YoggieEngine {

View File

@ -1,6 +1,5 @@
#include <YoggieEngine.h>
#include "Shader.h"
#include "spdlog/spdlog.h"
namespace YoggieEngine {
Shader::Shader(const std::string vertexShaderPath, const std::string fragmentShaderPath)
{

View File

@ -1,10 +1,4 @@
#pragma once
#include <glad/glad.h>
#include <string>
#include <iostream>
#include <fstream>
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
namespace YoggieEngine {
class Shader {

View File

@ -1,10 +1,8 @@
#include <YoggieEngine.h>
#include "Texture.h"
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#define STB_IMAGE_IMPLEMENTATION
#include "../stb_image.h"
#include <iostream>
namespace YoggieEngine {
Texture::Texture(const std::string texturePath) {

View File

@ -1,7 +1,4 @@
#pragma once
#include <spdlog/spdlog.h>
#include <string>
namespace YoggieEngine {
class Texture {
public:

View File

@ -1,6 +1,4 @@
#pragma once
#include <glm/glm.hpp>
namespace YoggieEngine {
struct Vertex {
glm::vec3 vertices;

View File

@ -4,8 +4,6 @@ namespace YoggieEngine {
RenderSurface::RenderSurface() {
shader = new Shader("build/SandboxAppliction/Debug/renderSuface.vs", "build/SandboxApplication/Debug/renderSurface.fs");
verts = std::vector<glm::vec3>{
{-0.5f, 0.5f, 0.0f}, // 0
{-0.5f, -0.5f, 0.0f}, // 1

View File

@ -1,7 +1,6 @@
#pragma once
#include "../Graphics/Memory/Buffer.h"
#include "../Graphics/Memory/VertexArray.h"
#include <vector>
namespace YoggieEngine {

View File

@ -1,9 +1,4 @@
#pragma once
#include "Primitives/Mesh.h"
#include "Primitives/Material.h"
#include "Primitives/Texture.h"
#include "../Scene/Scene.h"
namespace YoggieEngine {
struct Renderable {

View File

@ -3,8 +3,6 @@
#include "../Scene/Components.h"
#include "../Graphics/Memory/VertexArray.h"
#include "../Graphics/Memory/Buffer.h"
#include <glad/glad.h>
#include <glm/gtc/type_precision.hpp>
namespace YoggieEngine {
float Angle = 0.0;

View File

@ -1,16 +1,12 @@
#pragma once
#include <vector>
#include <iostream>
#include <glm/gtc/matrix_transform.hpp>
#include "glad/glad.h"
#include "GLFW/glfw3.h"
#include "../PerfCounter.h"
#include "Primitives/Camera.h"
#include "Renderable.h"
#include "Memory/Framebuffer.h"
#include "../Scene/Components.h"
#include"../Scene/Scene.h"
namespace YoggieEngine {

View File

@ -1,7 +1,6 @@
#include <YoggieEngine.h>
#include "PerfCounter.h"
#include <imgui.h>
#include <iostream>
namespace YoggieEngine {
uint64_t EngineInstrumentation::GetPrecisionTime() {
using namespace std::chrono; // REMINDER: This is kinda ugly but safes line width

View File

@ -1,10 +1,5 @@
#pragma once
#include "YoggieEngine.h"
#include <string>
#include <vector>
#include <chrono>
namespace YoggieEngine {
struct EngineStatistics {
float frameTime;

View File

@ -38,7 +38,7 @@ namespace YoggieEngine {
glfwMakeContextCurrent(window);
if (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)) {
printf("Failed to initialize GLAD!\n");
spdlog::error("Failed to initialize GLAD!\n");
exit(-1);
}

View File

@ -1,14 +1,8 @@
#pragma once
#define GLFW_STATIC
#include <glad/glad.h>
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <GLFW/glfw3.h>
#include <spdlog/spdlog.h>
#include "../EventSystem/Event.h"
#include "../EventSystem/EventListener.h"

View File

@ -1,8 +1,4 @@
#pragma once
#include <glm/glm.hpp>
#include "../Graphics/Primitives/Shader.h"
#include "../Graphics/Primitives/Mesh.h"
namespace YoggieEngine {
struct IdentifierComponent {
std::string name;

View File

@ -1,6 +1,4 @@
#pragma once
#include <entt/entt.hpp>
namespace YoggieEngine {
class Scene;
class Entity {

View File

@ -1,7 +1,4 @@
#pragma once
#include <string>
#include <entt/entt.hpp>
namespace YoggieEngine {
class Entity;
class Scene

View File

@ -1,7 +1,4 @@
#pragma once
#include <string>
#include <vector>
namespace YoggieEngine {
class Node {
public:

View File

@ -1,6 +1,4 @@
#pragma once
#include "../../Graphics/Primitives/Camera.h"
#include "../../Graphics/Renderable.h"
#include "Node.h"

View File

@ -1,15 +1,4 @@
#pragma once
#include <string>
extern "C"
{
#include "lauxlib.h"
#include "lua.h"
#include "lualib.h"
}
#include "LuaScriptingManager.h"

View File

@ -1,15 +1,4 @@
#pragma once
#include <vector>
extern "C"
{
#include "lauxlib.h"
#include "lua.h"
#include "lualib.h"
}
#include "LuaScript.h"
/*

View File

@ -1,17 +1,42 @@
#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 "Graphics/Primitives/Mesh.h"
#include "Graphics/Primitives/Shader.h"
#include "Graphics/Primitives/Texture.h"
#include "Graphics/Primitives/Camera.h"
#include "Graphics/Primitives/Material.h"
#include "Graphics/Renderer.h"
#include "spdlog/spdlog.h"
#include "EventSystem/EventEmitter.h"
#include "EventSystem/EventListener.h"