mirror of
https://github.com/BluestormDNA/ProjectPSX.git
synced 2025-04-02 10:52:34 -04:00
27 lines
909 B
C#
27 lines
909 B
C#
using OpenTK.Mathematics;
|
|
using OpenTK.Windowing.Desktop;
|
|
using OpenTK.Windowing.Common;
|
|
using System;
|
|
|
|
namespace ProjectPSX.OpenTK {
|
|
static class Program {
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main() {
|
|
GameWindowSettings settings = new GameWindowSettings();
|
|
settings.RenderFrequency = 60;
|
|
settings.UpdateFrequency = 60;
|
|
NativeWindowSettings nativeWindow = new NativeWindowSettings();
|
|
nativeWindow.API = ContextAPI.OpenGL;
|
|
nativeWindow.Size = new Vector2i(1024, 512);
|
|
nativeWindow.Title = "ProjectPSX";
|
|
nativeWindow.Profile = ContextProfile.Compatability;
|
|
|
|
Window window = new Window(settings, nativeWindow);
|
|
window.VSync = VSyncMode.On;
|
|
window.Run();
|
|
}
|
|
}
|
|
}
|