diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-08-17 00:12:48 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-08-17 00:12:48 +0000 |
commit | 7ae671446a64fde913474de4e3c6314b5ecd195f (patch) | |
tree | 24703389bdc4b425efe8abb30795f45875af8c00 /include/GL/glut.h | |
parent | 46a035f76d3b7a2355f7655c9dd7e519d4238cdc (diff) |
added glutGetProcAddress()
Diffstat (limited to 'include/GL/glut.h')
-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 3b5cbb2f4..87fd6cee6 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); |