Compare commits
3 Commits
e31fd036ea
...
ab5599f1fc
Author | SHA1 | Date | |
---|---|---|---|
ab5599f1fc | |||
3639f967e1 | |||
5a06b068f3 |
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -4,12 +4,14 @@
|
||||
[submodule "glm"]
|
||||
path = libs/glm
|
||||
url = https://github.com/nigelbarink/glm.git
|
||||
ignore = untracked
|
||||
[submodule "spdlog"]
|
||||
path = libs/spdlog
|
||||
url = https://github.com/nigelbarink/spdlog.git
|
||||
[submodule "tinygltf"]
|
||||
path = libs/tinygltf
|
||||
url = https://github.com/syoyo/tinygltf.git
|
||||
ignore = untracked
|
||||
[submodule "GorrillaAudio"]
|
||||
path = libs/GorillaAudio
|
||||
url = https://github.com/mewspring/gorilla-audio.git
|
||||
@ -22,6 +24,7 @@
|
||||
[submodule "libs/steam-audio"]
|
||||
path = libs/steam-audio
|
||||
url = https://github.com/ValveSoftware/steam-audio.git
|
||||
ignore = untracked
|
||||
[submodule "libs/physx"]
|
||||
path = libs/physx
|
||||
url = https://git.barink.dev/Nigel/PhysX.git
|
||||
|
7
BarinkEngine/Include/ECS/Component.h
Normal file
7
BarinkEngine/Include/ECS/Component.h
Normal file
@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
namespace BECS {
|
||||
|
||||
struct Component {
|
||||
|
||||
};
|
||||
}
|
13
BarinkEngine/Include/ECS/Entity.h
Normal file
13
BarinkEngine/Include/ECS/Entity.h
Normal file
@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
#include <vector>
|
||||
#include "Component.h"
|
||||
|
||||
|
||||
namespace BECS {
|
||||
|
||||
typedef unsigned long int Entity;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
7
BarinkEngine/Include/ECS/System.h
Normal file
7
BarinkEngine/Include/ECS/System.h
Normal file
@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
namespace BECS {
|
||||
|
||||
struct System {
|
||||
|
||||
};
|
||||
}
|
17
BarinkEngine/Include/ECS/World.h
Normal file
17
BarinkEngine/Include/ECS/World.h
Normal file
@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
#include "System.h"
|
||||
#include <vector>
|
||||
#include "Component.h"
|
||||
#include "Entity.h"
|
||||
|
||||
|
||||
namespace BECS {
|
||||
struct World {
|
||||
|
||||
private:
|
||||
std::vector<System> systems;
|
||||
std::vector<Component> components;
|
||||
std::vector<Entity> entities;
|
||||
|
||||
};
|
||||
}
|
@ -3,12 +3,13 @@
|
||||
#include "Scene/SceneNodeTypes.h"
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include "../../src/Scene/SceneNodeTypes.cpp"
|
||||
/*
|
||||
* Define a helper class to more easily build a proper scene
|
||||
*/
|
||||
static class SceneBuilder {
|
||||
|
||||
static Group* AddGroup(std::string name);
|
||||
static SceneObject* AddVisual(std::string name, Renderable& object, glm::vec3 position );
|
||||
static BarinkEngine::SceneObject* AddVisual(std::string name, BarinkEngine::Renderable& object, glm::vec3 position );
|
||||
|
||||
};
|
@ -52,10 +52,10 @@ project "BarinkEngine"
|
||||
files {
|
||||
"../libs/glad/src/glad.c",
|
||||
|
||||
"./*.cpp",
|
||||
"./*.h",
|
||||
"./**/*.cpp",
|
||||
"./**/*.h"
|
||||
"./src/*.cpp",
|
||||
"./Include/*.h",
|
||||
"./src/**/*.cpp",
|
||||
"./Include/**/*.h"
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,8 +1,7 @@
|
||||
#include "GUI.h"
|
||||
|
||||
void SceneExplorer(Scene& scene, std::string PanelName) {
|
||||
ImGui::Begin(PanelName.c_str());
|
||||
|
||||
if (ImGui::Begin(PanelName.c_str())) {
|
||||
ImGui::ListBoxHeader("##ObjectList");
|
||||
|
||||
Node& current = scene.GetRoot();
|
||||
@ -24,7 +23,11 @@ void SceneExplorer(Scene& scene, std::string PanelName) {
|
||||
|
||||
ImGui::ListBoxFooter();
|
||||
|
||||
|
||||
}
|
||||
ImGui::End();
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CameraTool(Camera* cam) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user