-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
38 lines (34 loc) · 943 Bytes
/
Copy pathProgram.cs
File metadata and controls
38 lines (34 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using SharpEngine.Core.Interfaces;
using SharpEngine.Core.Scenes;
using SharpEngine.Core.Windowing;
namespace Minimal;
/// <summary>
/// Represents the entry point of the application.
/// </summary>
public static class Program
{
/// <summary>
/// The entry point of the application.
/// </summary>
public static void Main(string[] _)
{
var game = new Minimal(new DefaultSettings());
var scene = new Scene();
using var window = new Window(game.Camera, scene, game.Camera.Settings);
window.Run();
}
}
/// <summary>
/// Represents the game instance.
/// </summary>
public class Minimal : Game
{
/// <summary>
/// Initializes a new instance of <see cref="Minimal" />
/// </summary>
/// <param name="settings">Provides configuration options for the instance.</param>
public Minimal(ISettings settings)
{
CoreSettings = settings;
}
}