Results 1 to 5 of 5

Thread: using dglOpenGL on linux

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    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.
    Last edited by Sascha Willems; 14-07-2013 at 08:44 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •