mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Added basic window implementation and modified Application loop
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user