diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-08-17 00:12:48 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-07-11 20:03:30 +0100 |
commit | 491269beadaff6c6685ec238e1b1ac78d5820de0 (patch) | |
tree | 9de8652a1547d589d9597c63a87c104235fd3d20 | |
parent | 70f33039dfdb29bcb823c44b6c34e12fef56b75c (diff) | |
download | glut-491269beadaff6c6685ec238e1b1ac78d5820de0.tar.gz |
added glutGetProcAddress()
-rw-r--r-- | include/GL/glut.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/GL/glut.h b/include/GL/glut.h index 3b5cbb2..87fd6ce 100644 --- a/include/GL/glut.h +++ b/include/GL/glut.h @@ -223,9 +223,11 @@ WGLAPI int GLAPIENTRY SetPixelFormat(HDC,int,const PIXELFORMATDESCRIPTOR *); video resize subAPI, glutPostWindowRedisplay, glutKeyboardUpFunc, glutSpecialUpFunc, glutIgnoreKeyRepeat, glutSetKeyRepeat, glutJoystickFunc, glutForceJoystickFunc (NOT FINALIZED!). + + GLUT_API_VERSION=5 glutGetProcAddress (added by BrianP) **/ #ifndef GLUT_API_VERSION /* allow this to be overriden */ -#define GLUT_API_VERSION 3 +#define GLUT_API_VERSION 5 #endif /** @@ -661,6 +663,9 @@ GLUTAPI int GLUTAPIENTRY glutExtensionSupported(const char *name); GLUTAPI int GLUTAPIENTRY glutGetModifiers(void); GLUTAPI int GLUTAPIENTRY glutLayerGet(GLenum type); #endif +#if (GLUT_API_VERSION >= 5) +GLUTAPI void * GLUTAPIENTRY glutGetProcAddress(const char *procName); +#endif /* GLUT font sub-API */ GLUTAPI void GLUTAPIENTRY glutBitmapCharacter(void *font, int character); |