Skip to content

Commit

Permalink
Implement window system using win32
Browse files Browse the repository at this point in the history
  • Loading branch information
FaberSanZ committed Jul 4, 2024
1 parent a9d0dab commit 6195f79
Show file tree
Hide file tree
Showing 62 changed files with 2,083 additions and 3,272 deletions.
13 changes: 12 additions & 1 deletion Src/Games/FPSTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
Expand All @@ -11,7 +12,17 @@ public class FPSTest
{
public FPSTest()
{
Window window = new("Xultaik Game Engine", 800, 600);
Window window = new(new WindowSettings()
{
Border = WindowBorder.Hidden,
Position = Point.Empty,
Size = new Size(800, 600),
State = WindowState.Normal,
CursorMode = CursorMode.Normal,
Title = "Test",
UpdateFrequency = null,
Icon = WindowResourcePtr.LoadIcon("Content\\win.ico"),
});
window.Show();
window.RenderLoop(() => { });
}
Expand Down
32 changes: 0 additions & 32 deletions Src/Xultaik.Desktop/Axis.cs

This file was deleted.

41 changes: 0 additions & 41 deletions Src/Xultaik.Desktop/Button.cs

This file was deleted.

91 changes: 0 additions & 91 deletions Src/Xultaik.Desktop/ButtonName.cs

This file was deleted.

7 changes: 0 additions & 7 deletions Src/Xultaik.Desktop/Class1.cs

This file was deleted.

39 changes: 0 additions & 39 deletions Src/Xultaik.Desktop/CursorMode.cs

This file was deleted.

21 changes: 0 additions & 21 deletions Src/Xultaik.Desktop/CursorType.cs

This file was deleted.

52 changes: 0 additions & 52 deletions Src/Xultaik.Desktop/Deadzone.cs

This file was deleted.

40 changes: 0 additions & 40 deletions Src/Xultaik.Desktop/DeadzoneMethod.cs

This file was deleted.

14 changes: 14 additions & 0 deletions Src/Xultaik.Desktop/Enums/CursorMode.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Faber Leonardo. All Rights Reserved. https://github.com/FaberSanZ
// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)


namespace Xultaik.Desktop;

public enum CursorMode
{
Normal,
Hidden,
GrabbedWindow,
HiddenGrabbedWindow,
HiddenGrabbedCenter,
}
11 changes: 11 additions & 0 deletions Src/Xultaik.Desktop/Enums/InputAction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright (c) Faber Leonardo. All Rights Reserved. https://github.com/FaberSanZ
// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)


namespace Xultaik.Desktop;

public enum InputAction
{
Press,
Release,
}
Loading

0 comments on commit 6195f79

Please sign in to comment.