Moving source files to a src folder
This commit is contained in:
parent
e31fd036ea
commit
5a06b068f3
@ -3,12 +3,13 @@
|
|||||||
#include "Scene/SceneNodeTypes.h"
|
#include "Scene/SceneNodeTypes.h"
|
||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
#include "../../src/Scene/SceneNodeTypes.cpp"
|
||||||
/*
|
/*
|
||||||
* Define a helper class to more easily build a proper scene
|
* Define a helper class to more easily build a proper scene
|
||||||
*/
|
*/
|
||||||
static class SceneBuilder {
|
static class SceneBuilder {
|
||||||
|
|
||||||
static Group* AddGroup(std::string name);
|
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 {
|
files {
|
||||||
"../libs/glad/src/glad.c",
|
"../libs/glad/src/glad.c",
|
||||||
|
|
||||||
"./*.cpp",
|
"./src/*.cpp",
|
||||||
"./*.h",
|
"./Include/*.h",
|
||||||
"./**/*.cpp",
|
"./src/**/*.cpp",
|
||||||
"./**/*.h"
|
"./Include/**/*.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,30 +1,33 @@
|
|||||||
#include "GUI.h"
|
#include "GUI.h"
|
||||||
|
|
||||||
void SceneExplorer(Scene& scene, std::string PanelName) {
|
void SceneExplorer(Scene& scene, std::string PanelName) {
|
||||||
ImGui::Begin(PanelName.c_str());
|
if (ImGui::Begin(PanelName.c_str())) {
|
||||||
|
ImGui::ListBoxHeader("##ObjectList");
|
||||||
|
|
||||||
ImGui::ListBoxHeader("##ObjectList");
|
Node& current = scene.GetRoot();
|
||||||
|
|
||||||
Node& current = scene.GetRoot();
|
Node* next = ¤t;
|
||||||
|
|
||||||
Node* next = ¤t;
|
// Show first node
|
||||||
|
ImGui::Selectable(next->name.c_str(), true);
|
||||||
|
|
||||||
// Show first node
|
ImGui::Indent();
|
||||||
ImGui::Selectable(next->name.c_str(), true);
|
|
||||||
|
|
||||||
ImGui::Indent();
|
if (next->children.size() != 0) {
|
||||||
|
for (auto child : next->children)
|
||||||
if (next->children.size() != 0) {
|
{
|
||||||
for (auto child : next->children)
|
std::string& name = child->name;
|
||||||
{
|
ImGui::Selectable(name.c_str(), false);
|
||||||
std::string& name = child->name;
|
}
|
||||||
ImGui::Selectable(name.c_str(), false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImGui::ListBoxFooter();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::ListBoxFooter();
|
|
||||||
|
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CameraTool(Camera* cam) {
|
void CameraTool(Camera* cam) {
|
||||||
|
Loading…
Reference in New Issue
Block a user