feat: wire infinite chunk streaming into Game with loading screen
This commit is contained in:
@@ -20,16 +20,18 @@ Log.Logger = new LoggerConfiguration()
|
||||
|
||||
try
|
||||
{
|
||||
var cfg = new Configuration();
|
||||
|
||||
NativeWindowSettings nativeSettings = new()
|
||||
{
|
||||
ClientSize = new Vector2i(1280, 720),
|
||||
ClientSize = new Vector2i(cfg.WindowWidth, cfg.WindowHeight),
|
||||
Title = "VoxelEngine",
|
||||
APIVersion = new Version(3, 3),
|
||||
Profile = ContextProfile.Core,
|
||||
Flags = ContextFlags.ForwardCompatible
|
||||
};
|
||||
|
||||
using Game game = new(GameWindowSettings.Default, nativeSettings);
|
||||
using Game game = new(cfg, GameWindowSettings.Default, nativeSettings);
|
||||
game.Run();
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user