X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_ext.c;h=04b3b6e5be6de139e63b0872e630178dddd1ba69;hb=a630da4d7b24b4147120facf3f7a6a6839d31fb5;hp=2c98d4b4a983307f5e98ce49d5d44e9f15870f8e;hpb=7d0fc844c337b9c8901317d6935c3462b59ceda5;p=freeglut diff --git a/src/freeglut_ext.c b/src/freeglut_ext.c index 2c98d4b..04b3b6e 100644 --- a/src/freeglut_ext.c +++ b/src/freeglut_ext.c @@ -31,7 +31,7 @@ #define GLX_GLXEXT_PROTOTYPES -#include "../include/GL/freeglut.h" +#include #include "freeglut_internal.h" @@ -111,7 +111,9 @@ static struct name_address_pair glut_functions[] = { "glutWindowStatusFunc", (void *) glutWindowStatusFunc }, { "glutKeyboardUpFunc", (void *) glutKeyboardUpFunc }, { "glutSpecialUpFunc", (void *) glutSpecialUpFunc }, +#if !TARGET_HOST_WINCE { "glutJoystickFunc", (void *) glutJoystickFunc }, +#endif /* !TARGET_HOST_WINCE */ { "glutSetColor", (void *) glutSetColor }, { "glutGetColor", (void *) glutGetColor }, { "glutCopyColormap", (void *) glutCopyColormap }, @@ -152,11 +154,13 @@ static struct name_address_pair glut_functions[] = { "glutReportErrors", (void *) glutReportErrors }, { "glutIgnoreKeyRepeat", (void *) glutIgnoreKeyRepeat }, { "glutSetKeyRepeat", (void *) glutSetKeyRepeat }, +#if !TARGET_HOST_WINCE { "glutForceJoystickFunc", (void *) glutForceJoystickFunc }, { "glutGameModeString", (void *) glutGameModeString }, { "glutEnterGameMode", (void *) glutEnterGameMode }, { "glutLeaveGameMode", (void *) glutLeaveGameMode }, { "glutGameModeGet", (void *) glutGameModeGet }, +#endif /* !TARGET_HOST_WINCE */ /* freeglut extensions */ { "glutMainLoopEvent", (void *) glutMainLoopEvent }, { "glutLeaveMainLoop", (void *) glutLeaveMainLoop }, @@ -179,7 +183,7 @@ static struct name_address_pair glut_functions[] = { "glutGetProcAddress", (void *) glutGetProcAddress }, { "glutMouseWheelFunc", (void *) glutMouseWheelFunc }, { NULL, NULL } -}; +}; void *FGAPIENTRY glutGetProcAddress( const char *procName ) @@ -191,7 +195,7 @@ void *FGAPIENTRY glutGetProcAddress( const char *procName ) return glut_functions[ i ].address; /* Try core GL functions */ -#if TARGET_HOST_WIN32 +#if TARGET_HOST_WIN32 || TARGET_HOST_WINCE return( void * )wglGetProcAddress( ( LPCSTR )procName ); #elif TARGET_HOST_UNIX_X11 && defined( GLX_ARB_get_proc_address ) return(void * )glXGetProcAddressARB( ( const GLubyte * )procName );