Replaced IntX by intX, Basic AssetViewer (can view Textures, kind of)

This commit is contained in:
Simon Lübeß
2023-07-01 00:15:01 +02:00
parent e12fcaacff
commit 77c45db122
37 changed files with 1299 additions and 1688 deletions
@@ -67,13 +67,13 @@ namespace GlitchyEngine
//
// Size
//
public override Int2 Size
public override int2 Size
{
get => *(Int2*)&_clientRect.Width;
get => *(int2*)&_clientRect.Width;
set
{
*(Int2*)&_clientRect.Width = value;
*(int2*)&_clientRect.Width = value;
ApplyRectangle();
}
}
@@ -103,13 +103,13 @@ namespace GlitchyEngine
//
// Position
//
public override Int2 Position
public override int2 Position
{
get => *(Int2*)&_clientRect;
get => *(int2*)&_clientRect;
set
{
*(Int2*)&_clientRect = value;
*(int2*)&_clientRect = value;
ApplyRectangle();
}
}
@@ -263,7 +263,7 @@ namespace GlitchyEngine
return .Ok;
}
internal Int2 _rawMouseMovementAccumulator;
internal int2 _rawMouseMovementAccumulator;
private static LRESULT MessageHandler(HWND hwnd, uint32 uMsg, WPARAM wParam, LPARAM lParam)
{
@@ -478,7 +478,7 @@ namespace GlitchyEngine
window._eventCallback(event);
// We accumulate the raw movements an collect them once each frame in WindowsInput.Impl_NewFrame()
window._rawMouseMovementAccumulator += Int2(raw.Data.Mouse.lLastX, raw.Data.Mouse.lLastY);
window._rawMouseMovementAccumulator += int2(raw.Data.Mouse.lLastX, raw.Data.Mouse.lLastY);
}
}
}