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:
@@ -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()
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user