#pragma warning disable CS8602
using System.Drawing;
using Silk.NET.Maths;
using Silk.NET.Windowing;
using Silk.NET.OpenGL;
GL? gl = null;
WindowOptions options = WindowOptions.Default;
options.Size = new Vector2D<int>(800,600);
options.Title = "Hello, world";
IWindow w = Window.Create(options);
w.Load += onLoad;
w.Update += onUpdate;
w.Render += onRender;
w.Run();
void onLoad(){
gl = GL.GetApi(w.GLContext);
gl.ClearColor(Color.Blue);
}
void onUpdate(double deltaTime){
}
void onRender(double deltaTime){
gl.ClearColor(Color.Blue);
}
#pragma warning disable CS8602
using System.Drawing;
using Silk.NET.Maths;
using Silk.NET.Windowing;
using Silk.NET.OpenGL;
GL? gl = null;
WindowOptions options = WindowOptions.Default;
options.Size = new Vector2D<int>(800,600);
options.Title = "Hello, world";
IWindow w = Window.Create(options);
w.Load += onLoad;
w.Update += onUpdate;
w.Render += onRender;
w.Run();
void onLoad(){
gl = GL.GetApi(w.GLContext);
gl.ClearColor(Color.Blue);
}
void onUpdate(double deltaTime){
}
void onRender(double deltaTime){
gl.ClearColor(Color.Blue);
}