Added new ComponentWidget and ViewWidget

A Render3DComponent can now be edited, A game view is available in the editor for game runtime rendering
This commit is contained in:
2022-11-05 20:50:35 +01:00
parent 210d535c41
commit 9a9db279a5
5 changed files with 32 additions and 16 deletions

View File

@ -1,12 +1,13 @@
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <imgui.h>
#include <backends/imgui_impl_opengl3.h>
#include <backends/imgui_impl_glfw.h>
#include <imgui_internal.h>
#include <ImGuizmo.h>
#include <nfd.h>
#include "../../libs/guizmo/ImGuizmo.h"
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "UI/Widgets.h"
#include "Project.h"
@ -230,6 +231,7 @@ public:
//ShowStats();
Viewport(*activeRuntime.framebuffer);
GamePort(*activeRuntime.framebuffer);
SceneExplorer(activeRuntime.Selected, activeRuntime.MainScene);
Inspector(activeRuntime.Selected, activeRuntime.MainScene);
@ -245,7 +247,7 @@ public:
private:
EditorContext context;
SceneRuntime activeRuntime ;
EditorRuntime activeRuntime ;
char* path = nullptr;
char* savePath = nullptr;
char* scenePath = nullptr;