diff --git a/gui/src/main.cpp b/gui/src/main.cpp index a0ae730e7a3e449523c2368f800e1deb32875a20..5e86b987b2f79cb3d2c7258197fdf31af261d52f 100644 --- a/gui/src/main.cpp +++ b/gui/src/main.cpp @@ -218,6 +218,16 @@ int main(int argc, char** argv) { } } } + ImGui::NewLine(); + ImGui::Separator(); + ImGui::NewLine(); + glm::vec2 m_real_world = camera.GetWorldXyFromMouse(InputState::mpos_x, InputState::mpos_y); + std::ostringstream xstr; + xstr << std::fixed << m_real_world.x; + std::ostringstream ystr; + ystr << std::fixed << m_real_world.y; + text = "Mouse Position: (" + xstr.str() + ", " + ystr.str() + ")"; + ImGui::Text(text.c_str()); ImGui::End(); //Layer Window