Identify more precisly where GLdouble->GLfloat is needed in freeglut header

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1188 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
beuc 2012-03-17 22:13:58 +00:00
parent ef9c4e1361
commit 95d74d15c0
2 changed files with 14 additions and 1 deletions

View File

@ -163,10 +163,18 @@ FGAPI void FGAPIENTRY glutStrokeString( void* font, const unsigned char *stri
*/
FGAPI void FGAPIENTRY glutWireRhombicDodecahedron( void );
FGAPI void FGAPIENTRY glutSolidRhombicDodecahedron( void );
#ifdef EGL_VERSION_1_0
/* TODO: temporary work-around for missing GLdouble in GLES */
# define GLdouble GLfloat
#endif
FGAPI void FGAPIENTRY glutWireSierpinskiSponge ( int num_levels, GLdouble offset[3], GLdouble scale );
FGAPI void FGAPIENTRY glutSolidSierpinskiSponge ( int num_levels, GLdouble offset[3], GLdouble scale );
FGAPI void FGAPIENTRY glutWireCylinder( GLdouble radius, GLdouble height, GLint slices, GLint stacks);
FGAPI void FGAPIENTRY glutSolidCylinder( GLdouble radius, GLdouble height, GLint slices, GLint stacks);
#ifdef EGL_VERSION_1_0
# undef GLdouble
#endif
/*
* Extension functions, see freeglut_ext.c

View File

@ -553,6 +553,11 @@ FGAPI void FGAPIENTRY glutSolidIcosahedron( void );
FGAPI void FGAPIENTRY glutWireTeapot( GLdouble size );
FGAPI void FGAPIENTRY glutSolidTeapot( GLdouble size );
#ifdef EGL_VERSION_1_0
/* TODO: temporary work-around for missing GLdouble in GLES */
# undef GLdouble
#endif
/*
* Game mode functions, see freeglut_gamemode.c
*/