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
|
||||
#include "YoggieEngine.h"
|
||||
|
||||
#include "Input/InputManager.h"
|
||||
#include "Graphics/Renderer.h"
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
namespace YoggieEngine {
|
||||
// forward declaration
|
||||
class InputManager;
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "ModelImporter.h"
|
||||
#include "spdlog/spdlog.h"
|
||||
|
||||
namespace YoggieEngine {
|
||||
|
||||
SceneObject* ModelImporter::Import(const std::string path)
|
||||
|
@ -1,7 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace YoggieEngine {
|
||||
|
||||
struct Event
|
||||
|
@ -1,7 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "Event.h"
|
||||
#include "EventListener.h"
|
||||
namespace YoggieEngine{
|
||||
class EventEmitter {
|
||||
public:
|
||||
|
@ -1,8 +1,4 @@
|
||||
#pragma once
|
||||
#include <list>
|
||||
#include <iostream>
|
||||
|
||||
#include "spdlog/spdlog.h"
|
||||
#include "Event.h"
|
||||
namespace YoggieEngine {
|
||||
class EventListener {
|
||||
|
@ -1,6 +1,4 @@
|
||||
#pragma once
|
||||
#include <glad/glad.h>
|
||||
|
||||
namespace YoggieEngine {
|
||||
class Buffer {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "Framebuffer.h"
|
||||
#include <iostream>
|
||||
|
||||
namespace YoggieEngine {
|
||||
Framebuffer::Framebuffer()
|
||||
{
|
||||
|
@ -1,7 +1,4 @@
|
||||
#pragma once
|
||||
#include <glad/glad.h>
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
namespace YoggieEngine {
|
||||
class Framebuffer {
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "UniformBuffer.h"
|
||||
#include <glad/glad.h>
|
||||
|
||||
namespace YoggieEngine {
|
||||
UniformBuffer::UniformBuffer(unsigned int size)
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "VertexArray.h"
|
||||
#include <glad/glad.h>
|
||||
namespace YoggieEngine {
|
||||
void VertexArray::Create() {
|
||||
glGenVertexArrays(1, &id);
|
||||
|
@ -1,8 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
namespace YoggieEngine {
|
||||
class Camera {
|
||||
public:
|
||||
|
@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
#include <glm/glm.hpp>
|
||||
#include <string>
|
||||
#include "Shader.h"
|
||||
|
||||
namespace YoggieEngine {
|
||||
|
@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
#include <vector>
|
||||
#include <glm/glm.hpp>
|
||||
#include "Vertex.h"
|
||||
|
||||
namespace YoggieEngine {
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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 {
|
||||
|
@ -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) {
|
||||
|
@ -1,7 +1,4 @@
|
||||
#pragma once
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <string>
|
||||
|
||||
namespace YoggieEngine {
|
||||
class Texture {
|
||||
public:
|
||||
|
@ -1,6 +1,4 @@
|
||||
#pragma once
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
namespace YoggieEngine {
|
||||
struct Vertex {
|
||||
glm::vec3 vertices;
|
||||
|
@ -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
|
||||
|
@ -1,7 +1,6 @@
|
||||
#pragma once
|
||||
#include "../Graphics/Memory/Buffer.h"
|
||||
#include "../Graphics/Memory/VertexArray.h"
|
||||
#include <vector>
|
||||
|
||||
namespace YoggieEngine {
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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
|
||||
|
@ -1,10 +1,5 @@
|
||||
#pragma once
|
||||
#include "YoggieEngine.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <chrono>
|
||||
|
||||
namespace YoggieEngine {
|
||||
struct EngineStatistics {
|
||||
float frameTime;
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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;
|
||||
|
@ -1,6 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#include <entt/entt.hpp>
|
||||
namespace YoggieEngine {
|
||||
class Scene;
|
||||
class Entity {
|
||||
|
@ -1,7 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <entt/entt.hpp>
|
||||
namespace YoggieEngine {
|
||||
class Entity;
|
||||
class Scene
|
||||
|
@ -1,7 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
namespace YoggieEngine {
|
||||
class Node {
|
||||
public:
|
||||
|
@ -1,6 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../Graphics/Primitives/Camera.h"
|
||||
#include "../../Graphics/Renderable.h"
|
||||
#include "Node.h"
|
||||
|
||||
|
@ -1,15 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "lauxlib.h"
|
||||
#include "lua.h"
|
||||
#include "lualib.h"
|
||||
}
|
||||
|
||||
|
||||
#include "LuaScriptingManager.h"
|
||||
|
||||
|
||||
|
@ -1,15 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "lauxlib.h"
|
||||
#include "lua.h"
|
||||
#include "lualib.h"
|
||||
}
|
||||
|
||||
|
||||
#include "LuaScript.h"
|
||||
|
||||
/*
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user