X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_internal.h;h=9b3b2d288a7c27c53416bd4c286b5f6e069e5633;hb=88ae79be22c2c5610024775f3561f671ae9d8859;hp=081ae9ce541958590e8c61c769afbd611e33ac9d;hpb=027fcf9e66356b06563140740f8d1c7bc05c9987;p=freeglut diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index 081ae9c..9b3b2d2 100644 --- a/src/freeglut_internal.h +++ b/src/freeglut_internal.h @@ -57,6 +57,11 @@ */ #endif +/* Detect both SunPro and gcc compilers on Sun Solaris */ +#if defined (__SVR4) && defined (__sun) +# define TARGET_HOST_SOLARIS 1 +#endif + #ifndef TARGET_HOST_MS_WINDOWS # define TARGET_HOST_MS_WINDOWS 0 #endif @@ -69,6 +74,10 @@ # define TARGET_HOST_MAC_OSX 0 #endif +#ifndef TARGET_HOST_SOLARIS +# define TARGET_HOST_SOLARIS 0 +#endif + /* -- FIXED CONFIGURATION LIMITS ------------------------------------------- */ #define FREEGLUT_MAX_MENUS 3 @@ -101,12 +110,18 @@ # ifdef HAVE_X11_EXTENSIONS_XF86VMODE_H # include # endif +/* If GLX is too old, we will fail during runtime when multisampling + is requested, but at least freeglut compiles. */ +# ifndef GLX_SAMPLE_BUFFERS +# define GLX_SAMPLE_BUFFERS 0x80A8 +# endif +# ifndef GLX_SAMPLES +# define GLX_SAMPLES 0x80A9 +# endif #endif /* These files should be available on every platform. */ -#include -#include #include #include #include @@ -305,6 +320,10 @@ struct tagSFG_State int AuxiliaryBufferNumber; /* Number of auxiliary buffers */ int SampleNumber; /* Number of samples per pixel */ + + int MajorVersion; /* Major OpenGL context version */ + int MinorVersion; /* Minor OpenGL context version */ + int ContextFlags; /* OpenGL context flags */ }; /* The structure used by display initialization in freeglut_init.c */ @@ -911,6 +930,8 @@ void fgWarning( const char *fmt, ... ); int fgHintPresent(Window window, Atom property, Atom hint); #endif +SFG_Proc fghGetProcAddress( const char *procName ); + #endif /* FREEGLUT_INTERNAL_H */ /*** END OF FILE ***/