X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_internal.h;h=c48d79b48e393fa1a6723b09003df3053aed31eb;hb=841aead075c529c89853de6f25f97b61d0b3f1ef;hp=90d1a377e3cb468234a54b3569eb3eb3c7be7be8;hpb=5c474d8ffac86c752125239b5b637c66177efa64;p=freeglut diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index 90d1a37..c48d79b 100644 --- a/src/freeglut_internal.h +++ b/src/freeglut_internal.h @@ -101,6 +101,14 @@ # 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 @@ -303,6 +311,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 */ @@ -909,6 +921,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 ***/