Hi hi !
I'm using SFML.NET
I try to get the GPU Vendor name, using the examples on the github of the SFML.NET, i did this:
MenuType choice = MenuType.Menu;
Console.WriteLine("FullScreen Mode ? y/n");
var answere = Console.ReadLine()?.ToLower();
bool windowed = !(answere == "yes" || answere == "y");
// Request a 24-bits depth buffer when creating the window
ContextSettings contextSettings = new ContextSettings();
contextSettings.DepthBits = 24;
//Change true for window, false for fullscreen
RenderWindow window;
if (windowed)
{
window = new RenderWindow(VideoMode.FullscreenModes[2], "Vestige", Styles.Titlebar | Styles.Close);
}
else
{
window = new RenderWindow(VideoMode.FullscreenModes[0], "Vestige", Styles.Fullscreen);
}
Toolkit.Init();
var context = new GraphicsContext(new ContextHandle(IntPtr.Zero), null);
window.SetActive(true);
Console.WriteLine("Vendor: " + GL.GetString(StringName.Version));
It throw: System.AccessViolationException on the GL.GetString, but i tried to do the same init that the one in the example.
Thanks !
EDIT: Only found now, he can't load the SDL2.dll , there was no SDL2.dll in the precompiled package Oo.