Removed redundant Point struct and SceneViewport improvements

- Keyboard shortcuts for Gizmo control
- Improved mousepick-blocking
This commit is contained in:
Simon Lübeß
2022-06-02 12:17:57 +02:00
parent e41645e12a
commit a80018e80c
10 changed files with 136 additions and 214 deletions
@@ -66,13 +66,13 @@ namespace GlitchyEngine
//
// Size
//
public override Point Size
public override Int2 Size
{
get => *(Point*)&_clientRect.Width;
get => *(Int2*)&_clientRect.Width;
set
{
*(Point*)&_clientRect.Width = value;
*(Int2*)&_clientRect.Width = value;
ApplyRectangle();
}
}
@@ -102,13 +102,13 @@ namespace GlitchyEngine
//
// Position
//
public override Point Position
public override Int2 Position
{
get => *(Point*)&_clientRect;
get => *(Int2*)&_clientRect;
set
{
*(Point*)&_clientRect = value;
*(Int2*)&_clientRect = value;
ApplyRectangle();
}
}