Skip to content

Biggle

23-Jan-10

Biggle – The least-big OpenGL extension wrapper library

Biggle is a small extension wrapper library for OpenGL. It’s designed to be much smaller than most of the other ones, so that you only pay for the the extensions you actually use. It’d probably work well for 64K intros and other such.

Usage:

Then:

That’s it! And just link against biggle.lib

It should support the full range of current GL extensions, as listed at the OpenGL registry. If you find any problems with it, let me know and I’ll update it.

Edit: Due to having been inundated with a comment, here’s the source code. Well, I say source, but seeing as it’s all just generated stub functions, it is in fact just a Perl script. It probably won’t run as-is on your machine straight off, due to hardcoded paths and such.

Version 1.01 now supports querying WGL extensions as well, because I love you all so much. (even you)

Attachments

facebooktwittergoogle_plusreddit

Written by Richard Mitton

Software engineer and travelling wizard.
Follow me on twitter: http://twitter.com/grumpygiant

7 Comments

  1. Neo

    Show me the code.

    Posted on 08-Feb-10 at 1:59 am | Permalink
  2. Code is shown.

    Posted on 08-Feb-10 at 2:10 am | Permalink
  3. Great work

    Posted on 08-Feb-10 at 11:40 am | Permalink
  4. Anonymous

    ‘biggleSupported’ reports wgl extensions as not supported.

    example:
    biggleSupported(“WGL_ARB_create_context”) returns 0

    Posted on 25-Feb-10 at 2:01 am | Permalink
  5. Just found out about that myself, I’d like to have it fixed.

    Posted on 27-Feb-10 at 4:51 pm | Permalink
  6. I’ve posted v1.01, which should fix most WGL extensions.

    You might still find a problem with WGL_ARB_create_context, as that’s probably one of the extensions you’d want to test for before calling biggleInit. I’m not sure if there’s a good solution to that. Of course, you can always just do that one yourself manually, like so:

    wglCreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC)wglGetProcAddress(“wglCreateContextAttribsARB”);

    Then either test if the pointer is NULL, if you care about that, or otherwise just go ahead and start calling it.

    Posted on 27-Feb-10 at 9:28 pm | Permalink
  7. Tremendously splendid.

    All that I can ask for right now would be a 64-bit .lib as well. ;)

    Posted on 02-Mar-10 at 10:27 am | Permalink

Leave a Reply