feat: wire game window, render loop, and fly-camera input
This commit is contained in:
23
Program.cs
23
Program.cs
@@ -1,11 +1,16 @@
|
||||
using OpenTK;
|
||||
using OpenTK.Mathematics;
|
||||
using OpenTK.Windowing.Common;
|
||||
using OpenTK.Windowing.Desktop;
|
||||
using VoxelEngine.Core;
|
||||
|
||||
namespace VoxelEngine;
|
||||
|
||||
class Program
|
||||
var nativeSettings = new NativeWindowSettings
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Hello, World!");
|
||||
}
|
||||
}
|
||||
ClientSize = new Vector2i(1280, 720),
|
||||
Title = "VoxelEngine",
|
||||
APIVersion = new Version(3, 3),
|
||||
Profile = ContextProfile.Core,
|
||||
Flags = ContextFlags.ForwardCompatible
|
||||
};
|
||||
|
||||
using var game = new Game(GameWindowSettings.Default, nativeSettings);
|
||||
game.Run();
|
||||
|
||||
Reference in New Issue
Block a user