Reputation: 3549
I am going through tutorials from NeHe and learning OpenGL, I'm using C#, but tutorials are in C++.
Is there an alternative for function ChangeDisplaySettings
(C++ function) in C#? I need solution in lets say "pure" OpenGL, i.e. without library CsGL, because I have to use another library where isn't classes like OpenGLControl.
Upvotes: 0
Views: 493
Reputation: 10125
OpenGL itself is only a rendering api. You have to bind it with your system. Those bindings vary from system to system. In Windows it is called WGL, but most of the work is done by WinApi.
Look for some materials/tutorials about C# and OpenGL and there should be something for you.
Upvotes: 0
Reputation: 474266
ChangeDisplaySettings
is not an OpenGL function. It is a Windows function. It's part of the Win32 API. So you can just call the C# equivalent, or if there isn't one, just use PInvoke to call the C function.
Upvotes: 4