mirror of
https://github.com/UOH-CS-Level5/551455-graphics-programming-2526-the-repo-Zyb3rWolfi.git
synced 2025-11-29 08:53:07 +00:00
25 lines
710 B
C#
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();
|
|
}
|
|
}
|
|
}
|
|
} |