using System;using SFML.Window;using OpenTK;using OpenTK.Graphics;using OpenTK.Graphics.OpenGL;namespace MinimalTests
{ internal static class SFMLTK
{ /// <summary> /// The main entry point for the application. /// </summary> private static void Main
() { // Request a 24-bits depth buffer when creating the window ContextSettings contextSettings
= new ContextSettings
(); contextSettings
.DepthBits = 24; // Create the main window Window window
= new Window
(new VideoMode
(640,
480),
"SFML window with OpenGL", Styles
.Default, contextSettings
); // Make it the active window for OpenGL calls window
.SetActive(); // Initialize OpenTK Toolkit
.Init(); GraphicsContext context
= new GraphicsContext
(new ContextHandle
(IntPtr
.Zero),
null); // Try to get the vendor name and crash Console
.WriteLine(GL
.GetString(StringName
.Vendor)); } }}