- OpenGL support in your environment
- GLFW compiled for your environment, source here
Install stable and development releases via Nuget;
Package Name | Release (NuGet) | Dev (NuGet) |
---|---|---|
NetCoreGlow |
-
First you need to make sure the GLFW library is available from the program's working directory
-
Then you need to decide on what version of OpenGL you want to target, and what size your window should be then call
GL.Initialise(OpenGLMajorVersion, OpenGLMinorVersion, WindowWidth, WindowHeight)
- Then you can access the bindings for that version of OpenGL via:
GL.GL<OpenGLMajorVersion><OpenGLMinorVersion>
For example using OpenGL 3.2 with a window of 800x600
var window = GL.Initialise(3,2,800,600);
var gl = GL.GL32;