diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2000-12-06 15:45:13 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2000-12-06 15:45:13 +0000 |
| commit | d244d063ffef2b208bc0659909f0cf31feff795a (patch) | |
| tree | a3fbf0e7166bddc37c6c1ecdd20e75324c38bd8e /FL | |
| parent | a7826cdc80f888fd9d647ce41b590f57098e37fd (diff) | |
APIENTRY doesn't need to be used for the font pointers in glut.H
APIENTRY should appear between the return type and function name.
WIN32 is defined by MSVC++, not _WIN32. Updated the sources to work
with both.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/glut.H | 52 |
1 files changed, 26 insertions, 26 deletions
@@ -1,5 +1,5 @@ // -// "$Id: glut.H,v 1.6.2.6 2000/11/28 15:32:07 spitzak Exp $" +// "$Id: glut.H,v 1.6.2.7 2000/12/06 15:45:12 easysw Exp $" // // GLUT emulation header file for the Fast Light Tool Kit (FLTK). // @@ -428,14 +428,14 @@ FL_EXPORT int glutBitmapWidth(void *font, int character); extern "C" { -extern APIENTRY int glutExtensionSupported(char *name); +extern int APIENTRY glutExtensionSupported(char *name); /* Stroke font opaque addresses (use constants instead in source code). */ -extern APIENTRY void *glutStrokeRoman; -extern APIENTRY void *glutStrokeMonoRoman; +extern void *glutStrokeRoman; +extern void *glutStrokeMonoRoman; /* Stroke font constants (use these in GLUT program). */ -#ifdef _WIN32 +#if defined(_WIN32) || defined(WIN32) # define GLUT_STROKE_ROMAN ((void*)0) # define GLUT_STROKE_MONO_ROMAN ((void*)1) #else @@ -444,33 +444,33 @@ extern APIENTRY void *glutStrokeMonoRoman; #endif /* GLUT font sub-API */ -extern APIENTRY void glutStrokeCharacter(void *font, int character); -extern APIENTRY int glutStrokeWidth(void *font, int character); +extern void APIENTRY glutStrokeCharacter(void *font, int character); +extern int APIENTRY glutStrokeWidth(void *font, int character); /* GLUT pre-built models sub-API */ -extern APIENTRY void glutWireSphere(GLdouble radius, GLint slices, GLint stacks); -extern APIENTRY void glutSolidSphere(GLdouble radius, GLint slices, GLint stacks); -extern APIENTRY void glutWireCone(GLdouble base, GLdouble height, GLint slices, GLint stacks); -extern APIENTRY void glutSolidCone(GLdouble base, GLdouble height, GLint slices, GLint stacks); -extern APIENTRY void glutWireCube(GLdouble size); -extern APIENTRY void glutSolidCube(GLdouble size); -extern APIENTRY void glutWireTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings); -extern APIENTRY void glutSolidTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings); -extern APIENTRY void glutWireDodecahedron(); -extern APIENTRY void glutSolidDodecahedron(); -extern APIENTRY void glutWireTeapot(GLdouble size); -extern APIENTRY void glutSolidTeapot(GLdouble size); -extern APIENTRY void glutWireOctahedron(); -extern APIENTRY void glutSolidOctahedron(); -extern APIENTRY void glutWireTetrahedron(); -extern APIENTRY void glutSolidTetrahedron(); -extern APIENTRY void glutWireIcosahedron(); -extern APIENTRY void glutSolidIcosahedron(); +extern void APIENTRY glutWireSphere(GLdouble radius, GLint slices, GLint stacks); +extern void APIENTRY glutSolidSphere(GLdouble radius, GLint slices, GLint stacks); +extern void APIENTRY glutWireCone(GLdouble base, GLdouble height, GLint slices, GLint stacks); +extern void APIENTRY glutSolidCone(GLdouble base, GLdouble height, GLint slices, GLint stacks); +extern void APIENTRY glutWireCube(GLdouble size); +extern void APIENTRY glutSolidCube(GLdouble size); +extern void APIENTRY glutWireTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings); +extern void APIENTRY glutSolidTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings); +extern void APIENTRY glutWireDodecahedron(); +extern void APIENTRY glutSolidDodecahedron(); +extern void APIENTRY glutWireTeapot(GLdouble size); +extern void APIENTRY glutSolidTeapot(GLdouble size); +extern void APIENTRY glutWireOctahedron(); +extern void APIENTRY glutSolidOctahedron(); +extern void APIENTRY glutWireTetrahedron(); +extern void APIENTRY glutSolidTetrahedron(); +extern void APIENTRY glutWireIcosahedron(); +extern void APIENTRY glutSolidIcosahedron(); } #endif /* __glut_h__ */ // -// End of "$Id: glut.H,v 1.6.2.6 2000/11/28 15:32:07 spitzak Exp $". +// End of "$Id: glut.H,v 1.6.2.7 2000/12/06 15:45:12 easysw Exp $". // |
