OpenGL 3.2 functions loading on Win32

14.09.2009 11:55 in OpenGL

I've made simple headers to be able to use OpenGL 3.2 core functions. Here they are:

Usage is quite simple. First, download gl3.h. Then, in your context creation source file insert

#include <gl3.h>
#define EXTERNFLAG 
#include "gl3header.h"

in headers, and after the context has been created, do something like this (this one is for SDL)

#define GERPROCADDRESSPROC SDL_GL_GetProcAddress
#include "gl3loading.h"

Everywhere else, just include this:

#include <gl3.h>
#define EXTERNFLAG extern 
#include "gl3header.h"

I think you get the idea. Enjoy.

Comments:

  1. s0d

    s0d:

    thx a lot ;)

    27.11.2009 13:03:22

Leave comment: