mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 12:38:24 +01:00
first of the sessons
This commit is contained in:
parent
4ac91e105e
commit
792c97a23e
1 changed files with 2523 additions and 0 deletions
17
construct/Sploink/Program.cs
Normal file
17
construct/Sploink/Program.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using Brutal.GlfwApi;
|
||||
using Brutal.Numerics;
|
||||
|
||||
if (!Glfw.Init())
|
||||
throw new Exception("Failed to initialize GLFW");
|
||||
|
||||
Glfw.WindowHint(GlfwWindowHint.ClientApi, 0);
|
||||
var window = Glfw.CreateWindow(new GlfwWindow.CreateInfo
|
||||
{
|
||||
Title = "ShiftFour, Bitch Please!",
|
||||
Size = new int2(1280, 720),
|
||||
});
|
||||
|
||||
while (!window.ShouldClose)
|
||||
Glfw.PollEvents();
|
||||
|
||||
Glfw.Terminate();
|
||||
Loading…
Reference in a new issue