From: Brian Paul Date: Sat, 17 Aug 2002 00:12:48 +0000 (+0000) Subject: added glutGetProcAddress() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ae671446a64fde913474de4e3c6314b5ecd195f;p=mesa.git added glutGetProcAddress() --- diff --git a/include/GL/glut.h b/include/GL/glut.h index 3b5cbb2f4cb..87fd6cee6c9 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);