X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2FCommon%2Ffreeglut_state.c;h=434b41f3e70e4e751f36fbdf4de7c1f919401596;hb=83a7f1444d1388983a7b756dde26b0cc74101b13;hp=20221bb636c37dcd72d9f6d7876a96b8e1d3ae40;hpb=903e153b05350714b64556913c241f56d641a282;p=freeglut diff --git a/src/Common/freeglut_state.c b/src/Common/freeglut_state.c index 20221bb..434b41f 100644 --- a/src/Common/freeglut_state.c +++ b/src/Common/freeglut_state.c @@ -45,6 +45,12 @@ extern int fgPlatformGlutGet ( GLenum eWhat ); extern int fgPlatformGlutDeviceGet ( GLenum eWhat ); extern int fgPlatformGlutLayerGet ( GLenum eWhat ); +/* A helper function to check if a display mode is possible to use */ +#if TARGET_HOST_POSIX_X11 +GLXFBConfig* fgChooseFBConfig( int* numcfgs ); +#endif + + /* -- LOCAL DEFINITIONS ---------------------------------------------------- */ /* -- PRIVATE FUNCTIONS ---------------------------------------------------- */ @@ -67,7 +73,7 @@ static int fghGetConfig( int attribute ) return returnValue; } -static int fgPlatformGlutGet ( GLenum eWhat ) +int fgPlatformGlutGet ( GLenum eWhat ) { int nsamples = 0; @@ -227,7 +233,7 @@ static int fgPlatformGlutGet ( GLenum eWhat ) } -static int fgPlatformGlutDeviceGet ( GLenum eWhat ) +int fgPlatformGlutDeviceGet ( GLenum eWhat ) { switch( eWhat ) {