3d image now fills the window

This commit is contained in:
SweetId 2023-11-24 17:39:16 +05:30
parent e396e26a7c
commit cfafff3077
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ namespace NzEditor
if (ImGui::Begin("MainWindow"))
{
auto pos = ImGui::GetCursorPos();
ImGui::Image(GetApplication()->GetEngineTexture());
auto size = ImGui::GetContentRegionAvail();
ImGui::Image(GetApplication()->GetEngineTexture(), Nz::Vector2f{ size.x, size.y });
ImGui::SetCursorPos(pos); // everything else will be drawn on top of the texture
auto cam = GetApplication()->GetMainCamera();