/* put all of the following inside a header file */// opengl header files
#include <gl\gl.h>
#include <gl\glu.h>
#include <gl\glext.h>
// wgl function pointer for vsync
typedef bool (APIENTRY *PFNWGLSWAPINTERVALEXTPROC) (int interval);
extern PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT;
/* put all of the following inside the cpp file */
// extension function pointers
PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT = NULL;
void loadallpointers()
{
wglSwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC) wglGetProcAddress ("wglSwapIntervalEXT");
}