X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=include%2FGL%2Ffreeglut_std.h;h=f77497ea4cb9cb0c4968e18d213b68a73fe63d25;hb=091b26aaa1610f8762beffd84e1e5ae2062b6289;hp=768157f82264aaf0ae9ae4fcd179ea33a6a9b2c2;hpb=b1857eba8932ff5da6c7bf01fac8da8ebf3687c1;p=freeglut diff --git a/include/GL/freeglut_std.h b/include/GL/freeglut_std.h index 768157f..f77497e 100644 --- a/include/GL/freeglut_std.h +++ b/include/GL/freeglut_std.h @@ -43,7 +43,7 @@ */ /* Define FREEGLUT_LIB_PRAGMAS to 1 to include library - * pragmas or to 1 to exclude library pragmas. + * pragmas or to 0 to exclude library pragmas. * The default behavior depends on the compiler/platform. */ # ifndef FREEGLUT_LIB_PRAGMAS @@ -57,8 +57,10 @@ # ifndef WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN 1 # endif -# define NOMINMAX -# include +# ifndef NOMINMAX +# define NOMINMAX +# endif +# include /* Windows static library */ # ifdef FREEGLUT_STATIC @@ -117,8 +119,16 @@ /* * Always include OpenGL and GLU headers */ -#include -#include +#ifdef FREEGLUT_GLES2 +# include +# include +#elif FREEGLUT_GLES1 +# include +# include +#else +# include +# include +#endif /* * GLUT API macro definitions -- the special key codes: @@ -171,8 +181,6 @@ #define GLUT_MULTISAMPLE 0x0080 #define GLUT_STEREO 0x0100 #define GLUT_LUMINANCE 0x0200 -#define GLUT_CAPTIONLESS 0x0400 -#define GLUT_BORDERLESS 0x0800 /* * GLUT API macro definitions -- windows and menu related definitions @@ -513,6 +521,11 @@ FGAPI int FGAPIENTRY glutStrokeLength( void* font, const unsigned char* stri /* * Geometry functions, see freeglut_geometry.c */ +#ifdef EGL_VERSION_1_0 +/* TODO: temporary work-around for missing GLdouble in GLES */ +# define GLdouble GLfloat +#endif + FGAPI void FGAPIENTRY glutWireCube( GLdouble size ); FGAPI void FGAPIENTRY glutSolidCube( GLdouble size ); FGAPI void FGAPIENTRY glutWireSphere( GLdouble radius, GLint slices, GLint stacks ); @@ -599,7 +612,7 @@ FGAPI void FGAPIENTRY glutReportErrors( void ); /* to get the prototype for exit() */ #include -#if defined(_WIN32) && !defined(GLUT_DISABLE_ATEXIT_HACK) +#if defined(_WIN32) && !defined(GLUT_DISABLE_ATEXIT_HACK) && !defined(__WATCOMC__) FGAPI void FGAPIENTRY __glutInitWithExit(int *argcp, char **argv, void (__cdecl *exitfunc)(int)); FGAPI int FGAPIENTRY __glutCreateWindowWithExit(const char *title, void (__cdecl *exitfunc)(int)); FGAPI int FGAPIENTRY __glutCreateMenuWithExit(void (* func)(int), void (__cdecl *exitfunc)(int));