Importing OpenGL Extensions Functions with wglGetProcAddress
There are only a small set of the core OpenGL functions that can be imported via p/invoke - the majority of OpenGL functions are actually extension functions which are supported only on specific video cards. OpenGL offers a function called wglGetProcAddress which can return the address of a named function - but how do we deal with this in the managed world?
Here's a brief description of how it's handled in SharpGL.
Read more