Removing big memory hog from renderer
This commit is contained in:
@ -125,25 +125,11 @@ public:
|
||||
|
||||
class Viewport : EditorWindow {
|
||||
public:
|
||||
Viewport (Scene& scene) : EditorWindow("SceneView") {
|
||||
Framebuffer framebuffer = Framebuffer((int)ImGui::GetWindowWidth(),(int)ImGui::GetWindowHeight());
|
||||
|
||||
|
||||
Renderer renderer = Renderer();
|
||||
renderer.Prepare(scene);
|
||||
renderer.Render(&framebuffer, scene);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Viewport (Framebuffer& fb) : EditorWindow("SceneView") {
|
||||
ImGui::Image(
|
||||
(void*)(intptr_t)framebuffer.GetColourAttachment(),
|
||||
(void*)(intptr_t)fb.GetColourAttachment(),
|
||||
ImVec2{ (float)ImGui::GetWindowWidth(),(float)ImGui::GetWindowHeight() }
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
//ImGuizmo::SetDrawlist();
|
||||
//ImGuizmo::SetRect(ImGui::GetWindowPos().x, ImGui::GetWindowPos().y, ImGui::GetWindowWidth(), ImGui::GetWindowHeight());
|
||||
|
Reference in New Issue
Block a user