Precompiled header for the engine core library
This commit is contained in:
parent
28c64b43ba
commit
b2688e843c
@ -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"
|
||||
}
|
||||
|
@ -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"
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
#pragma once
|
||||
#include "../../YoggieEngine/src/BarinkEngine.h"
|
||||
#include <yaml-cpp/yaml.h>
|
||||
#include <string>
|
||||
#include <filesystem>
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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") {}
|
||||
|
@ -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")
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "Application.h"
|
||||
|
||||
|
||||
|
||||
namespace YoggieEngine {
|
||||
Application::Application(const std::string& name )
|
||||
: m_AppName(name)
|
||||
|
@ -1,4 +1,6 @@
|
||||
#pragma once
|
||||
#include "YoggieEngine.h"
|
||||
|
||||
#include "Input/InputManager.h"
|
||||
#include "Graphics/Renderer.h"
|
||||
#include <string>
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "ModelImporter.h"
|
||||
#include "spdlog/spdlog.h"
|
||||
namespace YoggieEngine {
|
||||
|
@ -1 +0,0 @@
|
||||
#include "BarinkEngine.h"
|
@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace YoggieEngine {
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "EventEmitter.h"
|
||||
|
||||
namespace YoggieEngine {
|
||||
|
@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "Event.h"
|
||||
#include "EventListener.h"
|
||||
namespace YoggieEngine{
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "Buffer.h"
|
||||
|
||||
namespace YoggieEngine {
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "Framebuffer.h"
|
||||
#include <iostream>
|
||||
namespace YoggieEngine {
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "UniformBuffer.h"
|
||||
#include <glad/glad.h>
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
namespace YoggieEngine {
|
||||
class UniformBuffer {
|
||||
public:
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "VertexArray.h"
|
||||
#include <glad/glad.h>
|
||||
namespace YoggieEngine {
|
||||
|
@ -1,5 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
namespace YoggieEngine {
|
||||
class VertexArray {
|
||||
private:
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "Camera.h"
|
||||
namespace YoggieEngine {
|
||||
Camera::Camera(glm::vec3 position, glm::vec3 rotation, float zoom)
|
||||
|
@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "Material.h"
|
||||
|
||||
namespace YoggieEngine {
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "Shader.h"
|
||||
#include "spdlog/spdlog.h"
|
||||
namespace YoggieEngine {
|
||||
|
@ -1,5 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#include <glad/glad.h>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "Texture.h"
|
||||
#include <glad/glad.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "RenderSurface.h"
|
||||
namespace YoggieEngine {
|
||||
RenderSurface::RenderSurface() {
|
||||
|
@ -1,5 +1,4 @@
|
||||
#pragma once
|
||||
#include "../BarinkEngine.h"
|
||||
#include "../Graphics/Memory/Buffer.h"
|
||||
#include "../Graphics/Memory/VertexArray.h"
|
||||
#include <vector>
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "Renderer.h"
|
||||
#include "../Scene/Components.h"
|
||||
#include "../Graphics/Memory/VertexArray.h"
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "InputManager.h"
|
||||
namespace YoggieEngine {
|
||||
InputManager InputSystem;
|
||||
|
@ -1,6 +1,4 @@
|
||||
#pragma once
|
||||
#include "../BarinkEngine.h"
|
||||
|
||||
|
||||
namespace YoggieEngine {
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "PerfCounter.h"
|
||||
#include <imgui.h>
|
||||
#include <iostream>
|
||||
|
@ -1,4 +1,6 @@
|
||||
#pragma once
|
||||
#include "YoggieEngine.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <chrono>
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "Window.h"
|
||||
namespace YoggieEngine {
|
||||
bool BarinkWindow::InitGLFW() {
|
||||
|
@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#define GLFW_STATIC
|
||||
|
||||
#include <glad/glad.h>
|
||||
|
@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include "../Graphics/Primitives/Shader.h"
|
||||
#include "../Graphics/Primitives/Mesh.h"
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "Entity.h"
|
||||
|
||||
namespace YoggieEngine {
|
||||
|
@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <entt/entt.hpp>
|
||||
namespace YoggieEngine {
|
||||
class Scene;
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "Scene.h"
|
||||
#include "Entity.h"
|
||||
#include "Components.h"
|
||||
|
@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <entt/entt.hpp>
|
||||
namespace YoggieEngine {
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "Node.h"
|
||||
|
||||
namespace YoggieEngine {
|
||||
|
@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
namespace YoggieEngine {
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "SceneNodeTypes.h"
|
||||
namespace YoggieEngine {
|
||||
SceneCamera::SceneCamera()
|
||||
|
@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../Graphics/Primitives/Camera.h"
|
||||
#include "../../Graphics/Renderable.h"
|
||||
#include "Node.h"
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "LuaScript.h"
|
||||
/*
|
||||
namespace YoggieEngine {
|
||||
|
@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
extern "C"
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <YoggieEngine.h>
|
||||
#include "LuaScriptingManager.h"
|
||||
/*
|
||||
namespace YoggieEngine {
|
||||
|
@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
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
|
||||
#include <glad/glad.h>
|
||||
|
||||
|
||||
#include "glm/glm.hpp"
|
||||
|
||||
#include "Platform/Window.h"
|
@ -27,9 +27,10 @@ workspace "Yoggie GameEngine"
|
||||
optimize "On"
|
||||
|
||||
|
||||
|
||||
include("./YoggieEngine")
|
||||
include ("./Editor")
|
||||
|
||||
|
||||
|
||||
group("Other")
|
||||
includeexternal("./SandboxApp")
|
||||
@ -41,3 +42,5 @@ group("Libraries")
|
||||
include('../ImGui')
|
||||
include("../ImGuizmo")
|
||||
include("../yaml-cpp")
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user