Biggle

Saturday January 23, 2010

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:

#include “biggle.h”

Then:

biggleInit();

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.

biggle-1.01.zip [194.74KB] - Biggle 1.01 library and header
biggle-src-1.01.zip [257.32KB] - Biggle 1.01 source generator

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)

— Kayamon
---

Saturday January 23, 2010

  1. Show me the code.

    — Neo
    ---

    · Feb 8, 01:59 AM · #

  2. Code is shown.

    — Kayamon
    ---

    · Feb 8, 02:10 AM · #

  3. Great work

    — Robin Stjerndorff
    ---

    · Feb 8, 11:40 AM · #

  4. ‘biggleSupported’ reports wgl extensions as not supported.

    example:
    biggleSupported(“WGL_ARB_create_context”) returns 0

    — Anonymous
    ---

    · Feb 25, 02:01 AM · #

  5. Just found out about that myself, I’d like to have it fixed.

    — Robin Stjerndorff
    ---

    · Feb 27, 04:51 PM · #

  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.

    — Kayamon
    ---

    · Feb 27, 09:28 PM · #

  7. Tremendously splendid.

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

    — Robin Stjerndorff
    ---

    · Mar 2, 10:27 AM · #

(optional, only used to notify you of replies)
(optional)
 
---