Added basic window implementation and modified Application loop

This commit is contained in:
Simon Lübeß
2020-11-08 14:17:48 +01:00
parent 17acc3a253
commit 6de44d40b3
4 changed files with 271 additions and 2 deletions
+19 -1
View File
@@ -1,10 +1,28 @@
using GlitchyEngine.Platform.Windows;
namespace GlitchyEngine
{
public class Application
{
private Window _window ~ delete _;
private bool _running;
public bool IsRunning => _running;
public this()
{
// Todo: make Platform independent
_window = new WindowsWindow(WindowDescription());
}
public void Run()
{
while(true) {}
_running = true;
while(_running)
{
_window.Update();
}
}
}
}