2025-09-23 10:50:53 +01:00

25 lines
710 B
C#

using OpenTK.Mathematics;
using OpenTK.Windowing.Desktop;
using System;
namespace TheLabs
{
public static class Program
{
public static void Main()
{
var nativeWindowSettings = new NativeWindowSettings
{
Size = new Vector2i(800, 600),
Title = "My OpenTK Example Program"
};
MyVector myVector = new MyVector(30, 40, 0);
Console.WriteLine(myVector.Magnitude());
using (var window = new MyExampleWindow(GameWindowSettings.Default,
nativeWindowSettings))
{
window.Run();
}
}
}
}