made the editor work by debugging on windows

This commit is contained in:
2026-01-18 16:49:45 +01:00
parent b73d09f09f
commit 23e7707122
11 changed files with 41 additions and 32 deletions

View File

@@ -2,10 +2,10 @@
#include "BehaviourScriptRegistry.hpp"
TSE::EDITOR::EditorSubsystem::EditorSubsystem() : sv(nullptr), rt({10,10}), editorLayer("")
TSE::EDITOR::EditorSubsystem::EditorSubsystem() : sv(nullptr), editorLayer("")
{
rt = TSE::GLFW::RenderTexture({100,100});
sv = SceneView(&rt);
rt = new TSE::GLFW::RenderTexture({100,100});
sv = SceneView(rt);
controller.AddGuiElement("Scene", &sv);
controller.AddGuiElement("Consol", &cv);
@@ -27,7 +27,7 @@ TSE::EDITOR::EditorSubsystem::EditorSubsystem() : sv(nullptr), rt({10,10}), edit
Transformable* editorCamera = new Transformable(".EditorCamera");
Camera* editorCam = new Camera();
editorCam->SetRenderTarget(&rt);
editorCam->SetRenderTarget(rt);
editorCamera->AddBehaviourScript(editorCam);
// basicCameraControls controls = basicCameraControls();