The context creation functions in our headers for windows are just helper functions, and the header can be used as long as you have a render context, no matter how you created. If you're using lazarus I'd suggest using the TOpenGLControl. It abstracts creating the render context.
With the OpenGLControl it's pretty straightforward using our headers :
Code:
InitOpenGL;
GLControl.MakeCurrent;
ReadImplementationProperties;
ReadExtensions;
If you don't want to use it you'll have to create your render context with the OS-specific functions like glXCreateContext on linux and aglCreateContext on Mac OSX. Maybe I'll put some helper functions for abstracting that into our headers, but right now you either have to use the TOpenGLControl or call the aforementioned functions to create a valid rendercontext yourself.
Bookmarks