now displaying viewport texture

This commit is contained in:
antopilo
2024-12-07 00:59:58 -05:00
parent b2d749244f
commit 39a0273595
20 changed files with 555 additions and 386 deletions

View File

@@ -335,7 +335,7 @@ void PrefabEditorWindow::DrawViewportWindow()
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0, 0));\
viewportFramebuffer->QueueResize(viewportPanelSize);
ImGui::Image((void*)viewportFramebuffer->GetTexture(GL_COLOR_ATTACHMENT0)->GetID(), regionAvail, ImVec2(0, 1), ImVec2(1, 0));
//ImGui::Image((void*)viewportFramebuffer->GetTexture(GL_COLOR_ATTACHMENT0)->GetID(), regionAvail, ImVec2(0, 1), ImVec2(1, 0));
ImGui::PopStyleVar();
const Vector2& mousePos = Input::GetMousePosition();