Precompiled header for the engine core library

This commit is contained in:
Nigel Barink 2022-11-05 20:14:36 +01:00
parent 28c64b43ba
commit b2688e843c
50 changed files with 59 additions and 26 deletions

View File

@ -11,7 +11,8 @@ links{
}
includedirs{
"./../BarinkEngine/Include",
"../YoggieEngine/build/Debug",
-- I'd prefer if didn't need these..
-- We'll figure that out some time later
@ -28,7 +29,6 @@ includedirs{
incfolder["yamlcpp"],
incfolder["nativefiledialog"],
"./include"
}
@ -38,6 +38,7 @@ libdirs {
}
files {
"../libs/glad/src/glad.c",
"./src/**.h",
"./src/**.cpp"
}

View File

@ -1,8 +1,7 @@
#pragma once
#include "../../YoggieEngine/src/BarinkEngine.h"
#include "../../YoggieEngine/src/AssetManager/ModelImporter.h"
#include "../../YoggieEngine/src/Graphics/Memory/Framebuffer.h"
#include "../../YoggieEngine/src/PerfCounter.cpp"
#include "../../YoggieEngine/src/PerfCounter.h"
#include "../../YoggieEngine/src/Scene/Entity.h"
#include "Project.h"

View File

@ -1,5 +1,4 @@
#pragma once
#include "../../YoggieEngine/src/BarinkEngine.h"
#include <yaml-cpp/yaml.h>
#include <string>
#include <filesystem>

View File

@ -7,7 +7,7 @@
#include <entt/entity/fwd.hpp>
#include "../../libs/guizmo/ImGuizmo.h"
#include "../../YoggieEngine/src/BarinkEngine.h"
#include "../../YoggieEngine/src/YoggieEngine.h"
typedef void ( *voidFunction ) (void);
using namespace YoggieEngine;

View File

@ -13,11 +13,9 @@
#include "SceneSerializer.h"
#include "EditorContext.h"
#include "SceneRuntime.h"
#include "../../YoggieEngine/src/BarinkEngine.h"
const unsigned int MS_PER_UPDATE = 2;
class Editor : public Application {
public:
Editor() : Application("Editor") {}

View File

@ -1,6 +1,10 @@
project "YoggieEngine"
kind "StaticLib"
pchheader "YoggieEngine.h"
pchsource "src/YoggieEngine.cpp"
buildmessage "Building Yoggie Engine"
disablewarnings{
"4099" -- Ignore the missing debug signals for GLFW warning
@ -9,6 +13,7 @@ project "YoggieEngine"
includedirs {
"./src",
"../libs/spdlog/include",
"../libs/glm",
@ -51,17 +56,18 @@ project "YoggieEngine"
}
files {
"../libs/glad/src/glad.c",
"./src/*.cpp",
"./src/*.h",
"./src/**/*.cpp",
"./src/**/*.h"
"./src/**.cpp",
"./src/**.h"
}
prebuildcommands
{
ok,err = os.copyfile("BarinkEngine/src/Graphics/shaders/*" ,"SandboxApp/build/Debug/")
ok,err = os.copyfile("YoggieEngine/src/Graphics/shaders/*" ,"SandboxApp/build/Debug/")
}
postbuildcommands
{
ok,err = os.copyfile("YoggieEngine/build/Debug/intermediates/YoggieEngine.pch", "YoggieEngine/build/Debug/YoggieEngine.pch")
}

View File

@ -1,7 +1,6 @@
#include <YoggieEngine.h>
#include "Application.h"
namespace YoggieEngine {
Application::Application(const std::string& name )
: m_AppName(name)

View File

@ -1,4 +1,6 @@
#pragma once
#include "YoggieEngine.h"
#include "Input/InputManager.h"
#include "Graphics/Renderer.h"
#include <string>

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "ModelImporter.h"
#include "spdlog/spdlog.h"
namespace YoggieEngine {

View File

@ -1 +0,0 @@
#include "BarinkEngine.h"

View File

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

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "EventEmitter.h"
namespace YoggieEngine {

View File

@ -1,4 +1,5 @@
#pragma once
#include "Event.h"
#include "EventListener.h"
namespace YoggieEngine{

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "Buffer.h"
namespace YoggieEngine {

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "Framebuffer.h"
#include <iostream>
namespace YoggieEngine {

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "UniformBuffer.h"
#include <glad/glad.h>

View File

@ -1,5 +1,4 @@
#pragma once
namespace YoggieEngine {
class UniformBuffer {
public:

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "VertexArray.h"
#include <glad/glad.h>
namespace YoggieEngine {

View File

@ -1,5 +1,4 @@
#pragma once
namespace YoggieEngine {
class VertexArray {
private:

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "Camera.h"
namespace YoggieEngine {
Camera::Camera(glm::vec3 position, glm::vec3 rotation, float zoom)

View File

@ -1,4 +1,5 @@
#pragma once
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "Material.h"
namespace YoggieEngine {

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "Shader.h"
#include "spdlog/spdlog.h"
namespace YoggieEngine {

View File

@ -1,5 +1,4 @@
#pragma once
#include <glad/glad.h>
#include <string>
#include <iostream>

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "Texture.h"
#include <glad/glad.h>
#include <GLFW/glfw3.h>

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "RenderSurface.h"
namespace YoggieEngine {
RenderSurface::RenderSurface() {

View File

@ -1,5 +1,4 @@
#pragma once
#include "../BarinkEngine.h"
#include "../Graphics/Memory/Buffer.h"
#include "../Graphics/Memory/VertexArray.h"
#include <vector>

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "Renderer.h"
#include "../Scene/Components.h"
#include "../Graphics/Memory/VertexArray.h"

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "InputManager.h"
namespace YoggieEngine {
InputManager InputSystem;

View File

@ -1,6 +1,4 @@
#pragma once
#include "../BarinkEngine.h"
namespace YoggieEngine {

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "PerfCounter.h"
#include <imgui.h>
#include <iostream>

View File

@ -1,4 +1,6 @@
#pragma once
#include "YoggieEngine.h"
#include <string>
#include <vector>
#include <chrono>

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "Window.h"
namespace YoggieEngine {
bool BarinkWindow::InitGLFW() {

View File

@ -1,4 +1,5 @@
#pragma once
#define GLFW_STATIC
#include <glad/glad.h>

View File

@ -1,4 +1,5 @@
#pragma once
#include <glm/glm.hpp>
#include "../Graphics/Primitives/Shader.h"
#include "../Graphics/Primitives/Mesh.h"

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "Entity.h"
namespace YoggieEngine {

View File

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

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "Scene.h"
#include "Entity.h"
#include "Components.h"

View File

@ -1,4 +1,5 @@
#pragma once
#include <string>
#include <entt/entt.hpp>
namespace YoggieEngine {

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "Node.h"
namespace YoggieEngine {

View File

@ -1,4 +1,5 @@
#pragma once
#include <string>
#include <vector>
namespace YoggieEngine {

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "SceneNodeTypes.h"
namespace YoggieEngine {
SceneCamera::SceneCamera()

View File

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

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "LuaScript.h"
/*
namespace YoggieEngine {

View File

@ -1,4 +1,5 @@
#pragma once
#include <string>
extern "C"

View File

@ -1,3 +1,4 @@
#include <YoggieEngine.h>
#include "LuaScriptingManager.h"
/*
namespace YoggieEngine {

View File

@ -1,4 +1,5 @@
#pragma once
#include <vector>
extern "C"

View File

@ -0,0 +1 @@
#include <YoggieEngine.h>

View File

@ -1,7 +1,5 @@
#pragma once
#include <glad/glad.h>
#include "glm/glm.hpp"
#include "Platform/Window.h"

View File

@ -27,6 +27,7 @@ workspace "Yoggie GameEngine"
optimize "On"
include("./YoggieEngine")
include ("./Editor")
@ -41,3 +42,5 @@ group("Libraries")
include('../ImGui')
include("../ImGuizmo")
include("../yaml-cpp")