FLTK 1.3.2

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

glut.H

    00001 //
    00002 // "$Id: glut.H 9373 2012-04-22 02:45:09Z fabien $"
    00003 //
    00004 // GLUT emulation header file for the Fast Light Tool Kit (FLTK).
    00005 //
    00006 // Copyright 1998-2011 by Bill Spitzak and others.
    00007 //
    00008 // This library is free software. Distribution and use rights are outlined in
    00009 // the file "COPYING" which should have been included with this file.  If this
    00010 // file is missing or damaged, see the license at:
    00011 //
    00012 //     http://www.fltk.org/COPYING.php
    00013 //
    00014 // Please report all bugs and problems on the following page:
    00015 //
    00016 //     http://www.fltk.org/str.php
    00017 //
    00018
    00019 // Emulation of GLUT using fltk.
    00020
    00021 // GLUT is Copyright (c) Mark J. Kilgard, 1994, 1995, 1996:
    00022 // "This program is freely distributable without licensing fees  and is
    00023 // provided without guarantee or warrantee expressed or  implied. This
    00024 // program is -not- in the public domain."
    00025
    00026 // Although I have copied the GLUT API, none of my code is based on
    00027 // any GLUT implementation details and is therefore covered by the LGPL.
    00028
    00029 // Commented out lines indicate parts of GLUT that are not emulated.
    00030
    00031 #ifndef Fl_glut_H
    00032 #  define Fl_glut_H
    00033
    00034 #  include "gl.h"
    00035
    00036
    00037 #  include "Fl.H"
    00038 #  include "Fl_Gl_Window.H"
    00039
    00044 class FL_EXPORT Fl_Glut_Window : public Fl_Gl_Window {
    00045   void _init();
    00046   int mouse_down;
    00047 protected:
    00048   void draw();
    00049   void draw_overlay();
    00050   int handle(int);
    00051 public: // so the inline functions work
    00052   int number;
    00053   int menu[3];
    00054   void make_current();
    00055   void (*display)();
    00056   void (*overlaydisplay)();
    00057   void (*reshape)(int w, int h);
    00058   void (*keyboard)(uchar, int x, int y);
    00059   void (*mouse)(int b, int state, int x, int y);
    00060   void (*motion)(int x, int y);
    00061   void (*passivemotion)(int x, int y);
    00062   void (*entry)(int);
    00063   void (*visibility)(int);
    00064   void (*special)(int, int x, int y);
    00065   Fl_Glut_Window(int w, int h, const char *);
    00066   Fl_Glut_Window(int x, int y, int w, int h, const char *);
    00067   ~Fl_Glut_Window();
    00068 };
    00069
    00070 extern FL_EXPORT Fl_Glut_Window *glut_window;   // the current window
    00071 extern FL_EXPORT int glut_menu;                 // the current menu
    00072
    00073 // function pointers that are not per-window:
    00074 extern FL_EXPORT void (*glut_idle_function)();
    00075 extern FL_EXPORT void (*glut_menustate_function)(int);
    00076 extern FL_EXPORT void (*glut_menustatus_function)(int,int,int);
    00077
    00079
    00080 //#  define GLUT_API_VERSION This does not match any version of GLUT exactly...
    00081
    00082 FL_EXPORT void glutInit(int *argcp, char **argv); // creates first window
    00083
    00084 FL_EXPORT void glutInitDisplayMode(unsigned int mode);
    00085 // the FL_ symbols have the same value as the GLUT ones:
    00086 #  define GLUT_RGB      FL_RGB
    00087 #  define GLUT_RGBA     FL_RGB
    00088 #  define GLUT_INDEX    FL_INDEX
    00089 #  define GLUT_SINGLE   FL_SINGLE
    00090 #  define GLUT_DOUBLE   FL_DOUBLE
    00091 #  define GLUT_ACCUM    FL_ACCUM
    00092 #  define GLUT_ALPHA    FL_ALPHA
    00093 #  define GLUT_DEPTH    FL_DEPTH
    00094 #  define GLUT_STENCIL  FL_STENCIL
    00095 #  define GLUT_MULTISAMPLE FL_MULTISAMPLE
    00096 #  define GLUT_STEREO   FL_STEREO
    00097 // #  define GLUT_LUMINANCE             512
    00098
    00099 FL_EXPORT void glutInitWindowPosition(int x, int y);
    00100
    00101 FL_EXPORT void glutInitWindowSize(int w, int h);
    00102
    00103 FL_EXPORT void glutMainLoop();
    00104
    00105 FL_EXPORT int glutCreateWindow(char *title);
    00106 FL_EXPORT int glutCreateWindow(const char *title);
    00107
    00108 FL_EXPORT int glutCreateSubWindow(int win, int x, int y, int width, int height);
    00109
    00110 FL_EXPORT void glutDestroyWindow(int win);
    00111
    00112 inline void glutPostRedisplay() {glut_window->redraw();}
    00113
    00114 FL_EXPORT void glutPostWindowRedisplay(int win);
    00115
    00116 FL_EXPORT void glutSwapBuffers();
    00117
    00118 inline int glutGetWindow() {return glut_window->number;}
    00119
    00120 FL_EXPORT void glutSetWindow(int win);
    00121
    00122 inline void glutSetWindowTitle(char *t) {glut_window->label(t);}
    00123
    00124 inline void glutSetIconTitle(char *t) {glut_window->iconlabel(t);}
    00125
    00126 inline void glutPositionWindow(int x, int y) {glut_window->position(x,y);}
    00127
    00128 inline void glutReshapeWindow(int w, int h) {glut_window->size(w,h);}
    00129
    00130 inline void glutPopWindow() {glut_window->show();}
    00131
    00132 inline void glutPushWindow() { /* do nothing */ }
    00133
    00134 inline void glutIconifyWindow() {glut_window->iconize();}
    00135
    00136 inline void glutShowWindow() {glut_window->show();}
    00137
    00138 inline void glutHideWindow() {glut_window->hide();}
    00139
    00140 inline void glutFullScreen() {glut_window->fullscreen();}
    00141
    00142 inline void glutSetCursor(Fl_Cursor cursor) {glut_window->cursor(cursor);}
    00143 // notice that the numeric values are different than glut:
    00144 #  define GLUT_CURSOR_RIGHT_ARROW               ((Fl_Cursor)2)
    00145 #  define GLUT_CURSOR_LEFT_ARROW                ((Fl_Cursor)67)
    00146 #  define GLUT_CURSOR_INFO                      FL_CURSOR_HAND
    00147 #  define GLUT_CURSOR_DESTROY                   ((Fl_Cursor)45)
    00148 #  define GLUT_CURSOR_HELP                      FL_CURSOR_HELP
    00149 #  define GLUT_CURSOR_CYCLE                     ((Fl_Cursor)26)
    00150 #  define GLUT_CURSOR_SPRAY                     ((Fl_Cursor)63)
    00151 #  define GLUT_CURSOR_WAIT                      FL_CURSOR_WAIT
    00152 #  define GLUT_CURSOR_TEXT                      FL_CURSOR_INSERT
    00153 #  define GLUT_CURSOR_CROSSHAIR                 FL_CURSOR_CROSS
    00154 #  define GLUT_CURSOR_UP_DOWN                   FL_CURSOR_NS
    00155 #  define GLUT_CURSOR_LEFT_RIGHT                FL_CURSOR_WE
    00156 #  define GLUT_CURSOR_TOP_SIDE                  FL_CURSOR_N
    00157 #  define GLUT_CURSOR_BOTTOM_SIDE               FL_CURSOR_S
    00158 #  define GLUT_CURSOR_LEFT_SIDE                 FL_CURSOR_W
    00159 #  define GLUT_CURSOR_RIGHT_SIDE                FL_CURSOR_E
    00160 #  define GLUT_CURSOR_TOP_LEFT_CORNER           FL_CURSOR_NW
    00161 #  define GLUT_CURSOR_TOP_RIGHT_CORNER          FL_CURSOR_NE
    00162 #  define GLUT_CURSOR_BOTTOM_RIGHT_CORNER       FL_CURSOR_SE
    00163 #  define GLUT_CURSOR_BOTTOM_LEFT_CORNER        FL_CURSOR_SW
    00164 #  define GLUT_CURSOR_INHERIT                   FL_CURSOR_DEFAULT
    00165 #  define GLUT_CURSOR_NONE                      FL_CURSOR_NONE
    00166 #  define GLUT_CURSOR_FULL_CROSSHAIR            FL_CURSOR_CROSS
    00167
    00168 inline void glutWarpPointer(int, int) { /* do nothing */ }
    00169
    00170 inline void glutEstablishOverlay() {glut_window->make_overlay_current();}
    00171
    00172 inline void glutRemoveOverlay() {glut_window->hide_overlay();}
    00173
    00174 inline void glutUseLayer(GLenum layer) {
    00175   layer ? glut_window->make_overlay_current() : glut_window->make_current();}
    00176 enum {GLUT_NORMAL, GLUT_OVERLAY};
    00177
    00178 inline void glutPostOverlayRedisplay() {glut_window->redraw_overlay();}
    00179
    00180 inline void glutShowOverlay() {glut_window->redraw_overlay();}
    00181
    00182 inline void glutHideOverlay() {glut_window->hide_overlay();}
    00183
    00184 FL_EXPORT int glutCreateMenu(void (*)(int));
    00185
    00186 FL_EXPORT void glutDestroyMenu(int menu);
    00187
    00188 inline int glutGetMenu() {return glut_menu;}
    00189
    00190 inline void glutSetMenu(int m) {glut_menu = m;}
    00191
    00192 FL_EXPORT void glutAddMenuEntry(char *label, int value);
    00193
    00194 FL_EXPORT void glutAddSubMenu(char *label, int submenu);
    00195
    00196 FL_EXPORT void glutChangeToMenuEntry(int item, char *labela, int value);
    00197
    00198 FL_EXPORT void glutChangeToSubMenu(int item, char *label, int submenu);
    00199
    00200 FL_EXPORT void glutRemoveMenuItem(int item);
    00201
    00202 inline void glutAttachMenu(int b) {glut_window->menu[b] = glut_menu;}
    00203
    00204 inline void glutDetachMenu(int b) {glut_window->menu[b] = 0;}
    00205
    00206 inline void glutDisplayFunc(void (*f)()) {glut_window->display = f;}
    00207
    00208 inline void glutReshapeFunc(void (*f)(int w, int h)) {glut_window->reshape=f;}
    00209
    00210 inline void glutKeyboardFunc(void (*f)(uchar key, int x, int y)) {
    00211   glut_window->keyboard = f;}
    00212
    00213 inline void glutMouseFunc(void (*f)(int b, int state, int x, int y)) {
    00214   glut_window->mouse = f;}
    00215 #  define GLUT_LEFT_BUTTON              0
    00216 #  define GLUT_MIDDLE_BUTTON            1
    00217 #  define GLUT_RIGHT_BUTTON             2
    00218 #  define GLUT_DOWN                     0
    00219 #  define GLUT_UP                       1
    00220
    00221 inline void glutMotionFunc(void (*f)(int x, int y)) {glut_window->motion= f;}
    00222
    00223 inline void glutPassiveMotionFunc(void (*f)(int x, int y)) {
    00224   glut_window->passivemotion= f;}
    00225
    00226 inline void glutEntryFunc(void (*f)(int s)) {glut_window->entry = f;}
    00227 enum {GLUT_LEFT, GLUT_ENTERED};
    00228
    00229 inline void glutVisibilityFunc(void (*f)(int s)) {glut_window->visibility=f;}
    00230 enum {GLUT_NOT_VISIBLE, GLUT_VISIBLE};
    00231
    00232 FL_EXPORT void glutIdleFunc(void (*f)());
    00233
    00234 // Warning: this cast may not work on all machines:
    00235 inline void glutTimerFunc(unsigned int msec, void (*f)(int), int value) {
    00236 #if defined(__LP64__)
    00237   Fl::add_timeout(msec*.001, (void (*)(void *))f, (void *) (long long) value);
    00238 #else
    00239   Fl::add_timeout(msec*.001, (void (*)(void *))f, (void *)value);
    00240 #endif
    00241 }
    00242
    00243 inline void glutMenuStateFunc(void (*f)(int state)) {
    00244   glut_menustate_function = f;}
    00245
    00246 inline void glutMenuStatusFunc(void (*f)(int status, int x, int y)) {
    00247   glut_menustatus_function = f;}
    00248 enum {GLUT_MENU_NOT_IN_USE, GLUT_MENU_IN_USE};
    00249
    00250 inline void glutSpecialFunc(void (*f)(int key, int x, int y)) {
    00251   glut_window->special = f;}
    00252 #  define GLUT_KEY_F1                   1
    00253 #  define GLUT_KEY_F2                   2
    00254 #  define GLUT_KEY_F3                   3
    00255 #  define GLUT_KEY_F4                   4
    00256 #  define GLUT_KEY_F5                   5
    00257 #  define GLUT_KEY_F6                   6
    00258 #  define GLUT_KEY_F7                   7
    00259 #  define GLUT_KEY_F8                   8
    00260 #  define GLUT_KEY_F9                   9
    00261 #  define GLUT_KEY_F10                  10
    00262 #  define GLUT_KEY_F11                  11
    00263 #  define GLUT_KEY_F12                  12
    00264 // WARNING: Different values than GLUT uses:
    00265 #  define GLUT_KEY_LEFT                 FL_Left
    00266 #  define GLUT_KEY_UP                   FL_Up
    00267 #  define GLUT_KEY_RIGHT                FL_Right
    00268 #  define GLUT_KEY_DOWN                 FL_Down
    00269 #  define GLUT_KEY_PAGE_UP              FL_Page_Up
    00270 #  define GLUT_KEY_PAGE_DOWN            FL_Page_Down
    00271 #  define GLUT_KEY_HOME                 FL_Home
    00272 #  define GLUT_KEY_END                  FL_End
    00273 #  define GLUT_KEY_INSERT               FL_Insert
    00274
    00275 //inline void glutSpaceballMotionFunc(void (*)(int x, int y, int z));
    00276
    00277 //inline void glutSpaceballRotateFunc(void (*)(int x, int y, int z));
    00278
    00279 //inline void glutSpaceballButtonFunc(void (*)(int button, int state));
    00280
    00281 //inline void glutButtonBoxFunc(void (*)(int button, int state));
    00282
    00283 //inline void glutDialsFunc(void (*)(int dial, int value));
    00284
    00285 //inline void glutTabletMotionFunc(void (*)(int x, int y));
    00286
    00287 //inline void glutTabletButtonFunc(void (*)(int button, int state, int x, int y));
    00288
    00289 inline void glutOverlayDisplayFunc(void (*f)()) {
    00290   glut_window->overlaydisplay = f;}
    00291
    00292 //inline void glutWindowStatusFunc(void (*)(int state));
    00293 //enum {GLUT_HIDDEN, GLUT_FULLY_RETAINED, GLUT_PARTIALLY_RETAINED,
    00294 //      GLUT_FULLY_COVERED};
    00295
    00296 //inline void glutSetColor(int, GLfloat red, GLfloat green, GLfloat blue);
    00297
    00298 //inline GLfloat glutGetColor(int ndx, int component);
    00299 //#define GLUT_RED                      0
    00300 //#define GLUT_GREEN                    1
    00301 //#define GLUT_BLUE                     2
    00302
    00303 //inline void glutCopyColormap(int win);
    00304
    00305 // Warning: values are changed from GLUT!
    00306 // Also relies on the GL_ symbols having values greater than 100
    00307 FL_EXPORT int glutGet(GLenum type);
    00308 enum {
    00309   GLUT_RETURN_ZERO = 0,
    00310   GLUT_WINDOW_X,
    00311   GLUT_WINDOW_Y,
    00312   GLUT_WINDOW_WIDTH,
    00313   GLUT_WINDOW_HEIGHT,
    00314   GLUT_WINDOW_PARENT,
    00315   GLUT_SCREEN_WIDTH,
    00316   GLUT_SCREEN_HEIGHT,
    00317   GLUT_MENU_NUM_ITEMS,
    00318   GLUT_DISPLAY_MODE_POSSIBLE,
    00319   GLUT_INIT_WINDOW_X,
    00320   GLUT_INIT_WINDOW_Y,
    00321   GLUT_INIT_WINDOW_WIDTH,
    00322   GLUT_INIT_WINDOW_HEIGHT,
    00323   GLUT_INIT_DISPLAY_MODE,
    00324   GLUT_WINDOW_BUFFER_SIZE,
    00325   GLUT_VERSION
    00326 //GLUT_WINDOW_NUM_CHILDREN,
    00327 //GLUT_WINDOW_CURSOR,
    00328 //GLUT_SCREEN_WIDTH_MM,
    00329 //GLUT_SCREEN_HEIGHT_MM,
    00330 //GLUT_ELAPSED_TIME,
    00331 };
    00332
    00333 #  define GLUT_WINDOW_STENCIL_SIZE      GL_STENCIL_BITS
    00334 #  define GLUT_WINDOW_DEPTH_SIZE        GL_DEPTH_BITS
    00335 #  define GLUT_WINDOW_RED_SIZE          GL_RED_BITS
    00336 #  define GLUT_WINDOW_GREEN_SIZE        GL_GREEN_BITS
    00337 #  define GLUT_WINDOW_BLUE_SIZE         GL_BLUE_BITS
    00338 #  define GLUT_WINDOW_ALPHA_SIZE        GL_ALPHA_BITS
    00339 #  define GLUT_WINDOW_ACCUM_RED_SIZE    GL_ACCUM_RED_BITS
    00340 #  define GLUT_WINDOW_ACCUM_GREEN_SIZE  GL_ACCUM_GREEN_BITS
    00341 #  define GLUT_WINDOW_ACCUM_BLUE_SIZE   GL_ACCUM_BLUE_BITS
    00342 #  define GLUT_WINDOW_ACCUM_ALPHA_SIZE  GL_ACCUM_ALPHA_BITS
    00343 #  define GLUT_WINDOW_DOUBLEBUFFER      GL_DOUBLEBUFFER
    00344 #  define GLUT_WINDOW_RGBA              GL_RGBA
    00345 #  define GLUT_WINDOW_COLORMAP_SIZE     GL_INDEX_BITS
    00346 #  ifdef GL_SAMPLES_SGIS
    00347 #    define GLUT_WINDOW_NUM_SAMPLES     GL_SAMPLES_SGIS
    00348 #  else
    00349 #    define GLUT_WINDOW_NUM_SAMPLES     GLUT_RETURN_ZERO
    00350 #  endif
    00351 #  define GLUT_WINDOW_STEREO            GL_STEREO
    00352
    00353 #  define GLUT_HAS_KEYBOARD             600
    00354 #  define GLUT_HAS_MOUSE                601
    00355 #  define GLUT_HAS_SPACEBALL            602
    00356 #  define GLUT_HAS_DIAL_AND_BUTTON_BOX  603
    00357 #  define GLUT_HAS_TABLET               604
    00358 #  define GLUT_NUM_MOUSE_BUTTONS        605
    00359 #  define GLUT_NUM_SPACEBALL_BUTTONS    606
    00360 #  define GLUT_NUM_BUTTON_BOX_BUTTONS   607
    00361 #  define GLUT_NUM_DIALS                608
    00362 #  define GLUT_NUM_TABLET_BUTTONS       609
    00363 FL_EXPORT int glutDeviceGet(GLenum type);
    00364
    00365 // WARNING: these values are different than GLUT uses:
    00366 #  define GLUT_ACTIVE_SHIFT               FL_SHIFT
    00367 #  define GLUT_ACTIVE_CTRL                FL_CTRL
    00368 #  define GLUT_ACTIVE_ALT                 FL_ALT
    00369 inline int glutGetModifiers() {return Fl::event_state() & (GLUT_ACTIVE_SHIFT | GLUT_ACTIVE_CTRL | GLUT_ACTIVE_ALT);}
    00370
    00371 FL_EXPORT int glutLayerGet(GLenum);
    00372 #  define GLUT_OVERLAY_POSSIBLE         800
    00373 //#define GLUT_LAYER_IN_USE             801
    00374 //#define GLUT_HAS_OVERLAY              802
    00375 #  define GLUT_TRANSPARENT_INDEX                803
    00376 #  define GLUT_NORMAL_DAMAGED           804
    00377 #  define GLUT_OVERLAY_DAMAGED          805
    00378
    00379 extern "C" {
    00380 typedef void (*GLUTproc)();
    00381 }
    00382
    00383 FL_EXPORT GLUTproc glutGetProcAddress(const char *procName);
    00384
    00385 //inline int glutVideoResizeGet(GLenum param);
    00386 //#define GLUT_VIDEO_RESIZE_POSSIBLE    900
    00387 //#define GLUT_VIDEO_RESIZE_IN_USE      901
    00388 //#define GLUT_VIDEO_RESIZE_X_DELTA     902
    00389 //#define GLUT_VIDEO_RESIZE_Y_DELTA     903
    00390 //#define GLUT_VIDEO_RESIZE_WIDTH_DELTA 904
    00391 //#define GLUT_VIDEO_RESIZE_HEIGHT_DELTA 905
    00392 //#define GLUT_VIDEO_RESIZE_X           906
    00393 //#define GLUT_VIDEO_RESIZE_Y           907
    00394 //#define GLUT_VIDEO_RESIZE_WIDTH       908
    00395 //#define GLUT_VIDEO_RESIZE_HEIGHT      909
    00396
    00397 //inline void glutSetupVideoResizing();
    00398
    00399 //inline void glutStopVideoResizing();
    00400
    00401 //inline void glutVideoResize(int x, int y, int width, int height);
    00402
    00403 //inline void glutVideoPan(int x, int y, int width, int height);
    00404
    00405 // Font argument must be a void* for compatibility, so...
    00407 struct Fl_Glut_Bitmap_Font {Fl_Font font; Fl_Fontsize size;};
    00408
    00409 extern FL_EXPORT struct Fl_Glut_Bitmap_Font
    00410   glutBitmap9By15, glutBitmap8By13, glutBitmapTimesRoman10,
    00411   glutBitmapTimesRoman24, glutBitmapHelvetica10, glutBitmapHelvetica12,
    00412   glutBitmapHelvetica18;
    00413 #  define GLUT_BITMAP_9_BY_15             (&glutBitmap9By15)
    00414 #  define GLUT_BITMAP_8_BY_13             (&glutBitmap8By13)
    00415 #  define GLUT_BITMAP_TIMES_ROMAN_10      (&glutBitmapTimesRoman10)
    00416 #  define GLUT_BITMAP_TIMES_ROMAN_24      (&glutBitmapTimesRoman24)
    00417 #  define GLUT_BITMAP_HELVETICA_10        (&glutBitmapHelvetica10)
    00418 #  define GLUT_BITMAP_HELVETICA_12        (&glutBitmapHelvetica12)
    00419 #  define GLUT_BITMAP_HELVETICA_18        (&glutBitmapHelvetica18)
    00420
    00421 FL_EXPORT void glutBitmapCharacter(void *font, int character);
    00422 FL_EXPORT int glutBitmapHeight(void *font);
    00423 FL_EXPORT int glutBitmapLength(void *font, const unsigned char *string);
    00424 FL_EXPORT void glutBitmapString(void *font, const unsigned char *string);
    00425 FL_EXPORT int glutBitmapWidth(void *font, int character);
    00426
    00427 FL_EXPORT int glutExtensionSupported(char *name);
    00428
    00429 /* GLUT stroked font sub-API */
    00430 struct Fl_Glut_StrokeVertex {
    00431   GLfloat X, Y;
    00432 };
    00433
    00434 struct Fl_Glut_StrokeStrip {
    00435   int Number;
    00436   const Fl_Glut_StrokeVertex* Vertices;
    00437 };
    00438
    00439 struct Fl_Glut_StrokeChar {
    00440   GLfloat Right;
    00441   int Number;
    00442   const Fl_Glut_StrokeStrip* Strips;
    00443 };
    00444
    00445 struct Fl_Glut_StrokeFont {
    00446   char* Name;                           // The source font name
    00447   int Quantity;                         // Number of chars in font
    00448   GLfloat Height;                       // Height of the characters
    00449   const Fl_Glut_StrokeChar** Characters;// The characters mapping
    00450 };
    00451 extern FL_EXPORT Fl_Glut_StrokeFont glutStrokeRoman;
    00452 extern FL_EXPORT Fl_Glut_StrokeFont glutStrokeMonoRoman;
    00453 #  define GLUT_STROKE_ROMAN             (&glutStrokeRoman)
    00454 #  define GLUT_STROKE_MONO_ROMAN        (&glutStrokeMonoRoman)
    00455
    00456 FL_EXPORT void glutStrokeCharacter(void *font, int character);
    00457 FL_EXPORT GLfloat glutStrokeHeight(void *font);
    00458 FL_EXPORT int glutStrokeLength(void *font, const unsigned char *string);
    00459 FL_EXPORT void glutStrokeString(void *font, const unsigned char *string);
    00460 FL_EXPORT int glutStrokeWidth(void *font, int character);
    00461
    00462 /* GLUT pre-built models sub-API */
    00463 FL_EXPORT void glutWireSphere(GLdouble radius, GLint slices, GLint stacks);
    00464 FL_EXPORT void glutSolidSphere(GLdouble radius, GLint slices, GLint stacks);
    00465 FL_EXPORT void glutWireCone(GLdouble base, GLdouble height, GLint slices, GLint stacks);
    00466 FL_EXPORT void glutSolidCone(GLdouble base, GLdouble height, GLint slices, GLint stacks);
    00467 FL_EXPORT void glutWireCube(GLdouble size);
    00468 FL_EXPORT void glutSolidCube(GLdouble size);
    00469 FL_EXPORT void glutWireTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings);
    00470 FL_EXPORT void glutSolidTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings);
    00471 FL_EXPORT void glutWireDodecahedron();
    00472 FL_EXPORT void glutSolidDodecahedron();
    00473 FL_EXPORT void glutWireTeapot(GLdouble size);
    00474 FL_EXPORT void glutSolidTeapot(GLdouble size);
    00475 FL_EXPORT void glutWireOctahedron();
    00476 FL_EXPORT void glutSolidOctahedron();
    00477 FL_EXPORT void glutWireTetrahedron();
    00478 FL_EXPORT void glutSolidTetrahedron();
    00479 FL_EXPORT void glutWireIcosahedron();
    00480 FL_EXPORT void glutSolidIcosahedron();
    00481
    00482 #endif // !Fl_glut_H
    00483
    00484 //
    00485 // End of "$Id: glut.H 9373 2012-04-22 02:45:09Z fabien $".
    00486 //