Precompiled header for the engine core library
This commit is contained in:
parent
28c64b43ba
commit
b2688e843c
@ -11,7 +11,8 @@ links{
|
|||||||
}
|
}
|
||||||
|
|
||||||
includedirs{
|
includedirs{
|
||||||
"./../BarinkEngine/Include",
|
|
||||||
|
"../YoggieEngine/build/Debug",
|
||||||
|
|
||||||
-- I'd prefer if didn't need these..
|
-- I'd prefer if didn't need these..
|
||||||
-- We'll figure that out some time later
|
-- We'll figure that out some time later
|
||||||
@ -28,7 +29,6 @@ includedirs{
|
|||||||
incfolder["yamlcpp"],
|
incfolder["yamlcpp"],
|
||||||
incfolder["nativefiledialog"],
|
incfolder["nativefiledialog"],
|
||||||
|
|
||||||
"./include"
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,6 +38,7 @@ libdirs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
files {
|
files {
|
||||||
|
"../libs/glad/src/glad.c",
|
||||||
"./src/**.h",
|
"./src/**.h",
|
||||||
"./src/**.cpp"
|
"./src/**.cpp"
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "../../YoggieEngine/src/BarinkEngine.h"
|
|
||||||
#include "../../YoggieEngine/src/AssetManager/ModelImporter.h"
|
#include "../../YoggieEngine/src/AssetManager/ModelImporter.h"
|
||||||
#include "../../YoggieEngine/src/Graphics/Memory/Framebuffer.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 "../../YoggieEngine/src/Scene/Entity.h"
|
||||||
#include "Project.h"
|
#include "Project.h"
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "../../YoggieEngine/src/BarinkEngine.h"
|
|
||||||
#include <yaml-cpp/yaml.h>
|
#include <yaml-cpp/yaml.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include <entt/entity/fwd.hpp>
|
#include <entt/entity/fwd.hpp>
|
||||||
|
|
||||||
#include "../../libs/guizmo/ImGuizmo.h"
|
#include "../../libs/guizmo/ImGuizmo.h"
|
||||||
#include "../../YoggieEngine/src/BarinkEngine.h"
|
#include "../../YoggieEngine/src/YoggieEngine.h"
|
||||||
typedef void ( *voidFunction ) (void);
|
typedef void ( *voidFunction ) (void);
|
||||||
using namespace YoggieEngine;
|
using namespace YoggieEngine;
|
||||||
|
|
||||||
|
@ -13,11 +13,9 @@
|
|||||||
#include "SceneSerializer.h"
|
#include "SceneSerializer.h"
|
||||||
#include "EditorContext.h"
|
#include "EditorContext.h"
|
||||||
#include "SceneRuntime.h"
|
#include "SceneRuntime.h"
|
||||||
#include "../../YoggieEngine/src/BarinkEngine.h"
|
|
||||||
|
|
||||||
const unsigned int MS_PER_UPDATE = 2;
|
const unsigned int MS_PER_UPDATE = 2;
|
||||||
|
|
||||||
|
|
||||||
class Editor : public Application {
|
class Editor : public Application {
|
||||||
public:
|
public:
|
||||||
Editor() : Application("Editor") {}
|
Editor() : Application("Editor") {}
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
project "YoggieEngine"
|
project "YoggieEngine"
|
||||||
kind "StaticLib"
|
kind "StaticLib"
|
||||||
|
|
||||||
|
pchheader "YoggieEngine.h"
|
||||||
|
pchsource "src/YoggieEngine.cpp"
|
||||||
|
|
||||||
|
|
||||||
buildmessage "Building Yoggie Engine"
|
buildmessage "Building Yoggie Engine"
|
||||||
disablewarnings{
|
disablewarnings{
|
||||||
"4099" -- Ignore the missing debug signals for GLFW warning
|
"4099" -- Ignore the missing debug signals for GLFW warning
|
||||||
@ -9,6 +13,7 @@ project "YoggieEngine"
|
|||||||
|
|
||||||
|
|
||||||
includedirs {
|
includedirs {
|
||||||
|
"./src",
|
||||||
"../libs/spdlog/include",
|
"../libs/spdlog/include",
|
||||||
"../libs/glm",
|
"../libs/glm",
|
||||||
|
|
||||||
@ -51,17 +56,18 @@ project "YoggieEngine"
|
|||||||
}
|
}
|
||||||
|
|
||||||
files {
|
files {
|
||||||
"../libs/glad/src/glad.c",
|
|
||||||
|
|
||||||
"./src/*.cpp",
|
"./src/**.cpp",
|
||||||
"./src/*.h",
|
"./src/**.h"
|
||||||
"./src/**/*.cpp",
|
|
||||||
"./src/**/*.h"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
prebuildcommands
|
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")
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "Application.h"
|
#include "Application.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
Application::Application(const std::string& name )
|
Application::Application(const std::string& name )
|
||||||
: m_AppName(name)
|
: m_AppName(name)
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#include "YoggieEngine.h"
|
||||||
|
|
||||||
#include "Input/InputManager.h"
|
#include "Input/InputManager.h"
|
||||||
#include "Graphics/Renderer.h"
|
#include "Graphics/Renderer.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "ModelImporter.h"
|
#include "ModelImporter.h"
|
||||||
#include "spdlog/spdlog.h"
|
#include "spdlog/spdlog.h"
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
@ -1 +0,0 @@
|
|||||||
#include "BarinkEngine.h"
|
|
@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "EventEmitter.h"
|
#include "EventEmitter.h"
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Event.h"
|
#include "Event.h"
|
||||||
#include "EventListener.h"
|
#include "EventListener.h"
|
||||||
namespace YoggieEngine{
|
namespace YoggieEngine{
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "Buffer.h"
|
#include "Buffer.h"
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "Framebuffer.h"
|
#include "Framebuffer.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "UniformBuffer.h"
|
#include "UniformBuffer.h"
|
||||||
#include <glad/glad.h>
|
#include <glad/glad.h>
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
class UniformBuffer {
|
class UniformBuffer {
|
||||||
public:
|
public:
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "VertexArray.h"
|
#include "VertexArray.h"
|
||||||
#include <glad/glad.h>
|
#include <glad/glad.h>
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
class VertexArray {
|
class VertexArray {
|
||||||
private:
|
private:
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "Camera.h"
|
#include "Camera.h"
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
Camera::Camera(glm::vec3 position, glm::vec3 rotation, float zoom)
|
Camera::Camera(glm::vec3 position, glm::vec3 rotation, float zoom)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
#include <glm/gtc/matrix_transform.hpp>
|
#include <glm/gtc/matrix_transform.hpp>
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "Material.h"
|
#include "Material.h"
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "Shader.h"
|
#include "Shader.h"
|
||||||
#include "spdlog/spdlog.h"
|
#include "spdlog/spdlog.h"
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <glad/glad.h>
|
#include <glad/glad.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "Texture.h"
|
#include "Texture.h"
|
||||||
#include <glad/glad.h>
|
#include <glad/glad.h>
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "RenderSurface.h"
|
#include "RenderSurface.h"
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
RenderSurface::RenderSurface() {
|
RenderSurface::RenderSurface() {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "../BarinkEngine.h"
|
|
||||||
#include "../Graphics/Memory/Buffer.h"
|
#include "../Graphics/Memory/Buffer.h"
|
||||||
#include "../Graphics/Memory/VertexArray.h"
|
#include "../Graphics/Memory/VertexArray.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "Renderer.h"
|
#include "Renderer.h"
|
||||||
#include "../Scene/Components.h"
|
#include "../Scene/Components.h"
|
||||||
#include "../Graphics/Memory/VertexArray.h"
|
#include "../Graphics/Memory/VertexArray.h"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "InputManager.h"
|
#include "InputManager.h"
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
InputManager InputSystem;
|
InputManager InputSystem;
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "../BarinkEngine.h"
|
|
||||||
|
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "PerfCounter.h"
|
#include "PerfCounter.h"
|
||||||
#include <imgui.h>
|
#include <imgui.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#include "YoggieEngine.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "Window.h"
|
#include "Window.h"
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
bool BarinkWindow::InitGLFW() {
|
bool BarinkWindow::InitGLFW() {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define GLFW_STATIC
|
#define GLFW_STATIC
|
||||||
|
|
||||||
#include <glad/glad.h>
|
#include <glad/glad.h>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
#include "../Graphics/Primitives/Shader.h"
|
#include "../Graphics/Primitives/Shader.h"
|
||||||
#include "../Graphics/Primitives/Mesh.h"
|
#include "../Graphics/Primitives/Mesh.h"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "Entity.h"
|
#include "Entity.h"
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <entt/entt.hpp>
|
#include <entt/entt.hpp>
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
class Scene;
|
class Scene;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "Scene.h"
|
#include "Scene.h"
|
||||||
#include "Entity.h"
|
#include "Entity.h"
|
||||||
#include "Components.h"
|
#include "Components.h"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <entt/entt.hpp>
|
#include <entt/entt.hpp>
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "Node.h"
|
#include "Node.h"
|
||||||
|
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "SceneNodeTypes.h"
|
#include "SceneNodeTypes.h"
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
SceneCamera::SceneCamera()
|
SceneCamera::SceneCamera()
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../../Graphics/Primitives/Camera.h"
|
#include "../../Graphics/Primitives/Camera.h"
|
||||||
#include "../../Graphics/Renderable.h"
|
#include "../../Graphics/Renderable.h"
|
||||||
#include "Node.h"
|
#include "Node.h"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "LuaScript.h"
|
#include "LuaScript.h"
|
||||||
/*
|
/*
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <YoggieEngine.h>
|
||||||
#include "LuaScriptingManager.h"
|
#include "LuaScriptingManager.h"
|
||||||
/*
|
/*
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
|
1
YoggieEngine/src/YoggieEngine.cpp
Normal file
1
YoggieEngine/src/YoggieEngine.cpp
Normal file
@ -0,0 +1 @@
|
|||||||
|
#include <YoggieEngine.h>
|
@ -1,7 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <glad/glad.h>
|
#include <glad/glad.h>
|
||||||
|
|
||||||
|
|
||||||
#include "glm/glm.hpp"
|
#include "glm/glm.hpp"
|
||||||
|
|
||||||
#include "Platform/Window.h"
|
#include "Platform/Window.h"
|
@ -27,6 +27,7 @@ workspace "Yoggie GameEngine"
|
|||||||
optimize "On"
|
optimize "On"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
include("./YoggieEngine")
|
include("./YoggieEngine")
|
||||||
include ("./Editor")
|
include ("./Editor")
|
||||||
|
|
||||||
@ -41,3 +42,5 @@ group("Libraries")
|
|||||||
include('../ImGui')
|
include('../ImGui')
|
||||||
include("../ImGuizmo")
|
include("../ImGuizmo")
|
||||||
include("../yaml-cpp")
|
include("../yaml-cpp")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user