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
+3 -1
View File
@@ -1,6 +1,7 @@
using System;
using GlitchLog;
using System.Diagnostics;
using GlitchyEngine.Platform.Windows;
namespace GlitchyEngine
{
@@ -13,13 +14,14 @@ namespace GlitchyEngine
{
Log.EngineLogger.Info("Initializing Application...");
Stopwatch initWatch = .StartNew();
Stopwatch initWatch = scope Stopwatch();
var app = CreateApplication();
initWatch.Stop();
Log.EngineLogger.Info("Application initialized ({}ms).", initWatch.ElapsedMilliseconds);
Log.EngineLogger.Info("Running App...");
app.Run();