X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_internal.h;h=f7155d5288d0ca0eb03ecff97ba8456ca8dd398b;hb=38caacca2f3c1c010de0c359bc7d92b804cf3532;hp=d593a2c781b0e9c5f006f40efc3314818709e77f;hpb=64fa0f17c1c4899478f3f7f91d376feeba513858;p=freeglut diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index d593a2c..f7155d5 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 */ @@ -675,6 +687,18 @@ struct tagSFG_Font float xorig, yorig; /* Relative origin of the character */ }; +#if TARGET_HOST_POSIX_X11 + +struct freeglutBitmapFont +{ + const char *name ; + const int num_chars ; + const int first ; + const void *ch ; +}; + +#endif + /* The stroke font structures */ typedef struct tagSFG_StrokeVertex SFG_StrokeVertex;