Better Gizmos

Gizmos now display half opacity when occluded, same for lines
Improved editor camera, should keep updating even if not controlled
Viewport should not grab input when another imgui element is over it
This commit is contained in:
Antoine Pilote
2023-10-09 15:22:39 -04:00
parent 828f46713b
commit d3ec4e1c02
14 changed files with 122849 additions and 73485 deletions
+7
View File
@@ -154,6 +154,13 @@ namespace Nuake
return Vector2(xpos, ypos);
}
void Input::SetMousePosition(const Vector2& position)
{
auto window = Window::Get()->GetHandle();
glfwSetCursorPos(window, position.x, position.y);
}
#pragma endregion
bool Input::Init()
+1
View File
@@ -156,6 +156,7 @@ namespace Nuake
static float GetMouseX();
static float GetMouseY();
static Vector2 GetMousePosition();
static void SetMousePosition(const Vector2& position);
static bool Init();
static void Update();