fltk  1.3.5-source
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X.
  Fossies Dox: fltk-1.3.5-source.tar.bz2  ("inofficial" and yet experimental doxygen-generated source code documentation)  

glut.H
Go to the documentation of this file.
1 //
2 // "$Id$"
3 //
4 // GLUT emulation header file for the Fast Light Tool Kit (FLTK).
5 //
6 // Copyright 1998-2015 by Bill Spitzak and others.
7 //
8 // This library is free software. Distribution and use rights are outlined in
9 // the file "COPYING" which should have been included with this file. If this
10 // file is missing or damaged, see the license at:
11 //
12 // http://www.fltk.org/COPYING.php
13 //
14 // Please report all bugs and problems on the following page:
15 //
16 // http://www.fltk.org/str.php
17 //
18 
19 // Emulation of GLUT using fltk.
20 
21 // GLUT is Copyright (c) Mark J. Kilgard, 1994, 1995, 1996:
22 // "This program is freely distributable without licensing fees and is
23 // provided without guarantee or warrantee expressed or implied. This
24 // program is -not- in the public domain."
25 
26 // Although I have copied the GLUT API, none of my code is based on
27 // any GLUT implementation details and is therefore covered by the LGPL.
28 
29 // Commented out lines indicate parts of GLUT that are not emulated.
30 
31 #ifndef Fl_glut_H
32 # define Fl_glut_H
33 
34 # include "gl.h"
35 
36 
37 # include "Fl.H"
38 # include "Fl_Gl_Window.H"
39 
45  void _init();
47 protected:
48  void draw();
49  void draw_overlay();
50  int handle(int);
51 public: // so the inline functions work
52  int number;
53  int menu[3];
54  void make_current();
55  void (*display)();
56  void (*overlaydisplay)();
57  void (*reshape)(int w, int h);
58  void (*keyboard)(uchar, int x, int y);
59  void (*mouse)(int b, int state, int x, int y);
60  void (*motion)(int x, int y);
61  void (*passivemotion)(int x, int y);
62  void (*entry)(int);
63  void (*visibility)(int);
64  void (*special)(int, int x, int y);
65  Fl_Glut_Window(int w, int h, const char *);
66  Fl_Glut_Window(int x, int y, int w, int h, const char *);
67  ~Fl_Glut_Window();
68 };
69 
70 extern FL_EXPORT Fl_Glut_Window *glut_window; // the current window
71 extern FL_EXPORT int glut_menu; // the current menu
72 
73 // function pointers that are not per-window:
74 extern FL_EXPORT void (*glut_idle_function)();
75 extern FL_EXPORT void (*glut_menustate_function)(int);
76 extern FL_EXPORT void (*glut_menustatus_function)(int,int,int);
77 
79 
80 //# define GLUT_API_VERSION This does not match any version of GLUT exactly...
81 
82 FL_EXPORT void glutInit(int *argcp, char **argv); // creates first window
83 
84 FL_EXPORT void glutInitDisplayMode(unsigned int mode);
85 // the FL_ symbols have the same value as the GLUT ones:
86 # define GLUT_RGB FL_RGB
87 # define GLUT_RGBA FL_RGB
88 # define GLUT_INDEX FL_INDEX
89 # define GLUT_SINGLE FL_SINGLE
90 # define GLUT_DOUBLE FL_DOUBLE
91 # define GLUT_ACCUM FL_ACCUM
92 # define GLUT_ALPHA FL_ALPHA
93 # define GLUT_DEPTH FL_DEPTH
94 # define GLUT_STENCIL FL_STENCIL
95 # define GLUT_MULTISAMPLE FL_MULTISAMPLE
96 # define GLUT_STEREO FL_STEREO
97 // # define GLUT_LUMINANCE 512
98 
99 FL_EXPORT void glutInitWindowPosition(int x, int y);
100 
101 FL_EXPORT void glutInitWindowSize(int w, int h);
102 
103 FL_EXPORT void glutMainLoop();
104 
105 FL_EXPORT int glutCreateWindow(char *title);
106 FL_EXPORT int glutCreateWindow(const char *title);
107 
108 FL_EXPORT int glutCreateSubWindow(int win, int x, int y, int width, int height);
109 
110 FL_EXPORT void glutDestroyWindow(int win);
111 
113 
114 FL_EXPORT void glutPostWindowRedisplay(int win);
115 
117 
118 inline int glutGetWindow() {return glut_window->number;}
119 
120 FL_EXPORT void glutSetWindow(int win);
121 
122 inline void glutSetWindowTitle(char *t) {glut_window->label(t);}
123 
124 inline void glutSetIconTitle(char *t) {glut_window->iconlabel(t);}
125 
126 inline void glutPositionWindow(int x, int y) {glut_window->position(x,y);}
127 
128 inline void glutReshapeWindow(int w, int h) {glut_window->size(w,h);}
129 
130 inline void glutPopWindow() {glut_window->show();}
131 
132 inline void glutPushWindow() { /* do nothing */ }
133 
135 
136 inline void glutShowWindow() {glut_window->show();}
137 
138 inline void glutHideWindow() {glut_window->hide();}
139 
141 
142 inline void glutSetCursor(Fl_Cursor cursor) {glut_window->cursor(cursor);}
143 // notice that the numeric values are different than glut:
144 # define GLUT_CURSOR_RIGHT_ARROW ((Fl_Cursor)2)
145 # define GLUT_CURSOR_LEFT_ARROW ((Fl_Cursor)67)
146 # define GLUT_CURSOR_INFO FL_CURSOR_HAND
147 # define GLUT_CURSOR_DESTROY ((Fl_Cursor)45)
148 # define GLUT_CURSOR_HELP FL_CURSOR_HELP
149 # define GLUT_CURSOR_CYCLE ((Fl_Cursor)26)
150 # define GLUT_CURSOR_SPRAY ((Fl_Cursor)63)
151 # define GLUT_CURSOR_WAIT FL_CURSOR_WAIT
152 # define GLUT_CURSOR_TEXT FL_CURSOR_INSERT
153 # define GLUT_CURSOR_CROSSHAIR FL_CURSOR_CROSS
154 # define GLUT_CURSOR_UP_DOWN FL_CURSOR_NS
155 # define GLUT_CURSOR_LEFT_RIGHT FL_CURSOR_WE
156 # define GLUT_CURSOR_TOP_SIDE FL_CURSOR_N
157 # define GLUT_CURSOR_BOTTOM_SIDE FL_CURSOR_S
158 # define GLUT_CURSOR_LEFT_SIDE FL_CURSOR_W
159 # define GLUT_CURSOR_RIGHT_SIDE FL_CURSOR_E
160 # define GLUT_CURSOR_TOP_LEFT_CORNER FL_CURSOR_NW
161 # define GLUT_CURSOR_TOP_RIGHT_CORNER FL_CURSOR_NE
162 # define GLUT_CURSOR_BOTTOM_RIGHT_CORNER FL_CURSOR_SE
163 # define GLUT_CURSOR_BOTTOM_LEFT_CORNER FL_CURSOR_SW
164 # define GLUT_CURSOR_INHERIT FL_CURSOR_DEFAULT
165 # define GLUT_CURSOR_NONE FL_CURSOR_NONE
166 # define GLUT_CURSOR_FULL_CROSSHAIR FL_CURSOR_CROSS
167 
168 inline void glutWarpPointer(int, int) { /* do nothing */ }
169 
171 
173 
174 inline void glutUseLayer(GLenum layer) {
177 
179 
181 
183 
184 FL_EXPORT int glutCreateMenu(void (*)(int));
185 
186 FL_EXPORT void glutDestroyMenu(int menu);
187 
188 inline int glutGetMenu() {return glut_menu;}
189 
190 inline void glutSetMenu(int m) {glut_menu = m;}
191 
192 FL_EXPORT void glutAddMenuEntry(char *label, int value);
193 
194 FL_EXPORT void glutAddSubMenu(char *label, int submenu);
195 
196 FL_EXPORT void glutChangeToMenuEntry(int item, char *labela, int value);
197 
198 FL_EXPORT void glutChangeToSubMenu(int item, char *label, int submenu);
199 
200 FL_EXPORT void glutRemoveMenuItem(int item);
201 
202 inline void glutAttachMenu(int b) {glut_window->menu[b] = glut_menu;}
203 
204 inline void glutDetachMenu(int b) {glut_window->menu[b] = 0;}
205 
206 inline void glutDisplayFunc(void (*f)()) {glut_window->display = f;}
207 
208 inline void glutReshapeFunc(void (*f)(int w, int h)) {glut_window->reshape=f;}
209 
210 inline void glutKeyboardFunc(void (*f)(uchar key, int x, int y)) {
211  glut_window->keyboard = f;}
212 
213 inline void glutMouseFunc(void (*f)(int b, int state, int x, int y)) {
214  glut_window->mouse = f;}
215 # define GLUT_LEFT_BUTTON 0
216 # define GLUT_MIDDLE_BUTTON 1
217 # define GLUT_RIGHT_BUTTON 2
218 # define GLUT_DOWN 0
219 # define GLUT_UP 1
220 
221 inline void glutMotionFunc(void (*f)(int x, int y)) {glut_window->motion= f;}
222 
223 inline void glutPassiveMotionFunc(void (*f)(int x, int y)) {
225 
226 inline void glutEntryFunc(void (*f)(int s)) {glut_window->entry = f;}
228 
229 inline void glutVisibilityFunc(void (*f)(int s)) {glut_window->visibility=f;}
231 
232 FL_EXPORT void glutIdleFunc(void (*f)());
233 
234 inline void glutTimerFunc(unsigned int msec, void (*f)(int), int value) {
235  Fl::add_timeout(msec*.001, (void (*)(void *))f, (void *)(fl_intptr_t)value);
236 }
237 
238 inline void glutMenuStateFunc(void (*f)(int state)) {
240 
241 inline void glutMenuStatusFunc(void (*f)(int status, int x, int y)) {
244 
245 inline void glutSpecialFunc(void (*f)(int key, int x, int y)) {
246  glut_window->special = f;}
247 # define GLUT_KEY_F1 1
248 # define GLUT_KEY_F2 2
249 # define GLUT_KEY_F3 3
250 # define GLUT_KEY_F4 4
251 # define GLUT_KEY_F5 5
252 # define GLUT_KEY_F6 6
253 # define GLUT_KEY_F7 7
254 # define GLUT_KEY_F8 8
255 # define GLUT_KEY_F9 9
256 # define GLUT_KEY_F10 10
257 # define GLUT_KEY_F11 11
258 # define GLUT_KEY_F12 12
259 // WARNING: Different values than GLUT uses:
260 # define GLUT_KEY_LEFT FL_Left
261 # define GLUT_KEY_UP FL_Up
262 # define GLUT_KEY_RIGHT FL_Right
263 # define GLUT_KEY_DOWN FL_Down
264 # define GLUT_KEY_PAGE_UP FL_Page_Up
265 # define GLUT_KEY_PAGE_DOWN FL_Page_Down
266 # define GLUT_KEY_HOME FL_Home
267 # define GLUT_KEY_END FL_End
268 # define GLUT_KEY_INSERT FL_Insert
269 
270 //inline void glutSpaceballMotionFunc(void (*)(int x, int y, int z));
271 
272 //inline void glutSpaceballRotateFunc(void (*)(int x, int y, int z));
273 
274 //inline void glutSpaceballButtonFunc(void (*)(int button, int state));
275 
276 //inline void glutButtonBoxFunc(void (*)(int button, int state));
277 
278 //inline void glutDialsFunc(void (*)(int dial, int value));
279 
280 //inline void glutTabletMotionFunc(void (*)(int x, int y));
281 
282 //inline void glutTabletButtonFunc(void (*)(int button, int state, int x, int y));
283 
284 inline void glutOverlayDisplayFunc(void (*f)()) {
286 
287 //inline void glutWindowStatusFunc(void (*)(int state));
288 //enum {GLUT_HIDDEN, GLUT_FULLY_RETAINED, GLUT_PARTIALLY_RETAINED,
289 // GLUT_FULLY_COVERED};
290 
291 //inline void glutSetColor(int, GLfloat red, GLfloat green, GLfloat blue);
292 
293 //inline GLfloat glutGetColor(int ndx, int component);
294 //#define GLUT_RED 0
295 //#define GLUT_GREEN 1
296 //#define GLUT_BLUE 2
297 
298 //inline void glutCopyColormap(int win);
299 
300 // Warning: values are changed from GLUT!
301 // Also relies on the GL_ symbols having values greater than 100
302 FL_EXPORT int glutGet(GLenum type);
303 enum {
321 //GLUT_WINDOW_NUM_CHILDREN,
322 //GLUT_WINDOW_CURSOR,
323 //GLUT_SCREEN_WIDTH_MM,
324 //GLUT_SCREEN_HEIGHT_MM,
325 //GLUT_ELAPSED_TIME,
326 };
327 
328 # define GLUT_WINDOW_STENCIL_SIZE GL_STENCIL_BITS
329 # define GLUT_WINDOW_DEPTH_SIZE GL_DEPTH_BITS
330 # define GLUT_WINDOW_RED_SIZE GL_RED_BITS
331 # define GLUT_WINDOW_GREEN_SIZE GL_GREEN_BITS
332 # define GLUT_WINDOW_BLUE_SIZE GL_BLUE_BITS
333 # define GLUT_WINDOW_ALPHA_SIZE GL_ALPHA_BITS
334 # define GLUT_WINDOW_ACCUM_RED_SIZE GL_ACCUM_RED_BITS
335 # define GLUT_WINDOW_ACCUM_GREEN_SIZE GL_ACCUM_GREEN_BITS
336 # define GLUT_WINDOW_ACCUM_BLUE_SIZE GL_ACCUM_BLUE_BITS
337 # define GLUT_WINDOW_ACCUM_ALPHA_SIZE GL_ACCUM_ALPHA_BITS
338 # define GLUT_WINDOW_DOUBLEBUFFER GL_DOUBLEBUFFER
339 # define GLUT_WINDOW_RGBA GL_RGBA
340 # define GLUT_WINDOW_COLORMAP_SIZE GL_INDEX_BITS
341 # ifdef GL_SAMPLES_SGIS
342 # define GLUT_WINDOW_NUM_SAMPLES GL_SAMPLES_SGIS
343 # else
344 # define GLUT_WINDOW_NUM_SAMPLES GLUT_RETURN_ZERO
345 # endif
346 # define GLUT_WINDOW_STEREO GL_STEREO
347 
348 # define GLUT_HAS_KEYBOARD 600
349 # define GLUT_HAS_MOUSE 601
350 # define GLUT_HAS_SPACEBALL 602
351 # define GLUT_HAS_DIAL_AND_BUTTON_BOX 603
352 # define GLUT_HAS_TABLET 604
353 # define GLUT_NUM_MOUSE_BUTTONS 605
354 # define GLUT_NUM_SPACEBALL_BUTTONS 606
355 # define GLUT_NUM_BUTTON_BOX_BUTTONS 607
356 # define GLUT_NUM_DIALS 608
357 # define GLUT_NUM_TABLET_BUTTONS 609
358 FL_EXPORT int glutDeviceGet(GLenum type);
359 
360 // WARNING: these values are different than GLUT uses:
361 # define GLUT_ACTIVE_SHIFT FL_SHIFT
362 # define GLUT_ACTIVE_CTRL FL_CTRL
363 # define GLUT_ACTIVE_ALT FL_ALT
365 
366 FL_EXPORT int glutLayerGet(GLenum);
367 # define GLUT_OVERLAY_POSSIBLE 800
368 //#define GLUT_LAYER_IN_USE 801
369 //#define GLUT_HAS_OVERLAY 802
370 # define GLUT_TRANSPARENT_INDEX 803
371 # define GLUT_NORMAL_DAMAGED 804
372 # define GLUT_OVERLAY_DAMAGED 805
373 
374 extern "C" {
375 typedef void (*GLUTproc)();
376 }
377 
378 FL_EXPORT GLUTproc glutGetProcAddress(const char *procName);
379 
380 //inline int glutVideoResizeGet(GLenum param);
381 //#define GLUT_VIDEO_RESIZE_POSSIBLE 900
382 //#define GLUT_VIDEO_RESIZE_IN_USE 901
383 //#define GLUT_VIDEO_RESIZE_X_DELTA 902
384 //#define GLUT_VIDEO_RESIZE_Y_DELTA 903
385 //#define GLUT_VIDEO_RESIZE_WIDTH_DELTA 904
386 //#define GLUT_VIDEO_RESIZE_HEIGHT_DELTA 905
387 //#define GLUT_VIDEO_RESIZE_X 906
388 //#define GLUT_VIDEO_RESIZE_Y 907
389 //#define GLUT_VIDEO_RESIZE_WIDTH 908
390 //#define GLUT_VIDEO_RESIZE_HEIGHT 909
391 
392 //inline void glutSetupVideoResizing();
393 
394 //inline void glutStopVideoResizing();
395 
396 //inline void glutVideoResize(int x, int y, int width, int height);
397 
398 //inline void glutVideoPan(int x, int y, int width, int height);
399 
400 // Font argument must be a void* for compatibility, so...
403 
404 extern FL_EXPORT struct Fl_Glut_Bitmap_Font
405  glutBitmap9By15, glutBitmap8By13, glutBitmapTimesRoman10,
406  glutBitmapTimesRoman24, glutBitmapHelvetica10, glutBitmapHelvetica12,
408 # define GLUT_BITMAP_9_BY_15 (&glutBitmap9By15)
409 # define GLUT_BITMAP_8_BY_13 (&glutBitmap8By13)
410 # define GLUT_BITMAP_TIMES_ROMAN_10 (&glutBitmapTimesRoman10)
411 # define GLUT_BITMAP_TIMES_ROMAN_24 (&glutBitmapTimesRoman24)
412 # define GLUT_BITMAP_HELVETICA_10 (&glutBitmapHelvetica10)
413 # define GLUT_BITMAP_HELVETICA_12 (&glutBitmapHelvetica12)
414 # define GLUT_BITMAP_HELVETICA_18 (&glutBitmapHelvetica18)
415 
416 FL_EXPORT void glutBitmapCharacter(void *font, int character);
417 FL_EXPORT int glutBitmapHeight(void *font);
418 FL_EXPORT int glutBitmapLength(void *font, const unsigned char *string);
419 FL_EXPORT void glutBitmapString(void *font, const unsigned char *string);
420 FL_EXPORT int glutBitmapWidth(void *font, int character);
421 
423 
424 /* GLUT stroked font sub-API */
426  GLfloat X, Y;
427 };
428 
430  int Number;
432 };
433 
435  GLfloat Right;
436  int Number;
438 };
439 
441  char* Name; // The source font name
442  int Quantity; // Number of chars in font
443  GLfloat Height; // Height of the characters
444  const Fl_Glut_StrokeChar** Characters;// The characters mapping
445 };
448 # define GLUT_STROKE_ROMAN (&glutStrokeRoman)
449 # define GLUT_STROKE_MONO_ROMAN (&glutStrokeMonoRoman)
450 
451 FL_EXPORT void glutStrokeCharacter(void *font, int character);
452 FL_EXPORT GLfloat glutStrokeHeight(void *font);
453 FL_EXPORT int glutStrokeLength(void *font, const unsigned char *string);
454 FL_EXPORT void glutStrokeString(void *font, const unsigned char *string);
455 FL_EXPORT int glutStrokeWidth(void *font, int character);
456 
457 /* GLUT pre-built models sub-API */
458 FL_EXPORT void glutWireSphere(GLdouble radius, GLint slices, GLint stacks);
459 FL_EXPORT void glutSolidSphere(GLdouble radius, GLint slices, GLint stacks);
460 FL_EXPORT void glutWireCone(GLdouble base, GLdouble height, GLint slices, GLint stacks);
461 FL_EXPORT void glutSolidCone(GLdouble base, GLdouble height, GLint slices, GLint stacks);
462 FL_EXPORT void glutWireCube(GLdouble size);
463 FL_EXPORT void glutSolidCube(GLdouble size);
464 FL_EXPORT void glutWireTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings);
465 FL_EXPORT void glutSolidTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings);
468 FL_EXPORT void glutWireTeapot(GLdouble size);
469 FL_EXPORT void glutSolidTeapot(GLdouble size);
476 
477 #endif // !Fl_glut_H
478 
479 //
480 // End of "$Id$".
481 //
glutAddMenuEntry
void glutAddMenuEntry(char *label, int value)
Fl_Glut_StrokeChar
Definition: glut.H:434
Fl_Glut_Window::motion
void(* motion)(int x, int y)
Definition: glut.H:60
glutWireOctahedron
void glutWireOctahedron()
Definition: freeglut_geometry.cxx:846
GLUT_MENU_IN_USE
Definition: glut.H:243
glutInitWindowPosition
void glutInitWindowPosition(int x, int y)
Fl_Widget::y
int y() const
Definition: Fl_Widget.H:289
Fl_Glut_StrokeFont::Name
char * Name
Definition: glut.H:441
glutSolidDodecahedron
void glutSolidDodecahedron()
Definition: freeglut_geometry.cxx:795
GLUT_INIT_WINDOW_Y
Definition: glut.H:315
glutEntryFunc
void glutEntryFunc(void(*f)(int s))
Definition: glut.H:226
glutUseLayer
void glutUseLayer(GLenum layer)
Definition: glut.H:174
Fl_Window::fullscreen
void fullscreen()
Definition: Fl_Window_fullscreen.cxx:75
glutRemoveMenuItem
void glutRemoveMenuItem(int item)
glutHideOverlay
void glutHideOverlay()
Definition: glut.H:182
Fl.H
glutSolidTetrahedron
void glutSolidTetrahedron()
Definition: freeglut_geometry.cxx:919
glutAttachMenu
void glutAttachMenu(int b)
Definition: glut.H:202
GLUT_WINDOW_PARENT
Definition: glut.H:309
glutGetProcAddress
GLUTproc glutGetProcAddress(const char *procName)
Fl_Glut_Window::mouse_down
int mouse_down
Definition: glut.H:46
Fl_Glut_Window
Definition: glut.H:44
glutGetModifiers
int glutGetModifiers()
Definition: glut.H:364
Fl_Window::iconize
void iconize()
Definition: Fl_Window_iconize.cxx:23
GLUT_RETURN_ZERO
Definition: glut.H:304
glutStrokeWidth
int glutStrokeWidth(void *font, int character)
glutPostWindowRedisplay
void glutPostWindowRedisplay(int win)
glutDetachMenu
void glutDetachMenu(int b)
Definition: glut.H:204
Fl_Glut_StrokeFont
Definition: glut.H:440
glutEstablishOverlay
void glutEstablishOverlay()
Definition: glut.H:170
Fl_Glut_StrokeChar::Strips
const Fl_Glut_StrokeStrip * Strips
Definition: glut.H:437
glutLayerGet
int glutLayerGet(GLenum)
Fl_Glut_StrokeFont::Height
GLfloat Height
Definition: glut.H:443
glutVisibilityFunc
void glutVisibilityFunc(void(*f)(int s))
Definition: glut.H:229
Fl_Glut_Window::entry
void(* entry)(int)
Definition: glut.H:62
GLUT_WINDOW_BUFFER_SIZE
Definition: glut.H:319
Fl_Glut_Window::visibility
void(* visibility)(int)
Definition: glut.H:63
GLUT_OVERLAY
Definition: glut.H:176
GLUT_NOT_VISIBLE
Definition: glut.H:230
glutGetMenu
int glutGetMenu()
Definition: glut.H:188
glutDisplayFunc
void glutDisplayFunc(void(*f)())
Definition: glut.H:206
glutInit
void glutInit(int *argcp, char **argv)
Fl_Glut_Window::make_current
void make_current()
Fl::event_state
static int event_state()
Definition: Fl.H:704
GLUT_ACTIVE_ALT
#define GLUT_ACTIVE_ALT
Definition: glut.H:363
glutSpecialFunc
void glutSpecialFunc(void(*f)(int key, int x, int y))
Definition: glut.H:245
state
int state
Definition: Fl_Text_Editor.cxx:92
glutStrokeString
void glutStrokeString(void *font, const unsigned char *string)
glutDestroyWindow
void glutDestroyWindow(int win)
GLUTproc
void(* GLUTproc)()
Definition: glut.H:375
Fl_Glut_StrokeChar::Number
int Number
Definition: glut.H:436
glut_menu
int glut_menu
glutWireIcosahedron
void glutWireIcosahedron()
Definition: freeglut_geometry.cxx:941
glutSetMenu
void glutSetMenu(int m)
Definition: glut.H:190
glutSolidCone
void glutSolidCone(GLdouble base, GLdouble height, GLint slices, GLint stacks)
Definition: freeglut_geometry.cxx:321
Fl_Glut_Window::keyboard
void(* keyboard)(uchar, int x, int y)
Definition: glut.H:58
glutIconifyWindow
void glutIconifyWindow()
Definition: glut.H:134
glutBitmapString
void glutBitmapString(void *font, const unsigned char *string)
Fl_Widget::x
int x() const
Definition: Fl_Widget.H:284
glutIdleFunc
void glutIdleFunc(void(*f)())
glutReshapeFunc
void glutReshapeFunc(void(*f)(int w, int h))
Definition: glut.H:208
glutSolidTeapot
void glutSolidTeapot(GLdouble size)
Definition: freeglut_teapot.cxx:158
glutMainLoop
void glutMainLoop()
glutShowOverlay
void glutShowOverlay()
Definition: glut.H:180
GLUT_ACTIVE_SHIFT
#define GLUT_ACTIVE_SHIFT
Definition: glut.H:361
glutSolidCube
void glutSolidCube(GLdouble size)
Definition: freeglut_geometry.cxx:90
glutSolidSphere
void glutSolidSphere(GLdouble radius, GLint slices, GLint stacks)
Definition: freeglut_geometry.cxx:167
glutAddSubMenu
void glutAddSubMenu(char *label, int submenu)
glutWireSphere
void glutWireSphere(GLdouble radius, GLint slices, GLint stacks)
Definition: freeglut_geometry.cxx:253
glutPopWindow
void glutPopWindow()
Definition: glut.H:130
GLUT_MENU_NOT_IN_USE
Definition: glut.H:243
glutCreateMenu
int glutCreateMenu(void(*)(int))
b
long b
Definition: jpegint.h:397
glutBitmapHelvetica18
struct Fl_Glut_Bitmap_Font glutBitmap9By15 glutBitmap8By13 glutBitmapTimesRoman10 glutBitmapTimesRoman24 glutBitmapHelvetica10 glutBitmapHelvetica12 glutBitmapHelvetica18
key
int key
Definition: Fl_Text_Editor.cxx:91
FL_EXPORT
#define FL_EXPORT
Definition: Fl_Export.H:35
glutWireCube
void glutWireCube(GLdouble size)
Definition: freeglut_geometry.cxx:68
GLUT_WINDOW_X
Definition: glut.H:305
Fl_Glut_StrokeFont::Quantity
int Quantity
Definition: glut.H:442
glutPostRedisplay
void glutPostRedisplay()
Definition: glut.H:112
Fl_Glut_StrokeChar::Right
GLfloat Right
Definition: glut.H:435
glutGetWindow
int glutGetWindow()
Definition: glut.H:118
glutDeviceGet
int glutDeviceGet(GLenum type)
Fl_Glut_Window::passivemotion
void(* passivemotion)(int x, int y)
Definition: glut.H:61
glutSolidTorus
void glutSolidTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings)
Definition: freeglut_geometry.cxx:670
Fl_Widget::w
int w() const
Definition: Fl_Widget.H:294
Fl_Glut_StrokeVertex::Y
GLfloat Y
Definition: glut.H:426
glutWireTetrahedron
void glutWireTetrahedron()
Definition: freeglut_geometry.cxx:906
glutPostOverlayRedisplay
void glutPostOverlayRedisplay()
Definition: glut.H:178
Fl_Glut_Window::special
void(* special)(int, int x, int y)
Definition: glut.H:64
glutMenuStateFunc
void glutMenuStateFunc(void(*f)(int state))
Definition: glut.H:238
glutChangeToSubMenu
void glutChangeToSubMenu(int item, char *label, int submenu)
glutWireCone
void glutWireCone(GLdouble base, GLdouble height, GLint slices, GLint stacks)
Definition: freeglut_geometry.cxx:406
GLUT_NORMAL
Definition: glut.H:176
Fl_Widget::position
void position(int X, int Y)
Definition: Fl_Widget.H:332
Fl_Glut_Window::overlaydisplay
void(* overlaydisplay)()
Definition: glut.H:56
glutStrokeHeight
GLfloat glutStrokeHeight(void *font)
Fl_Glut_StrokeFont::Characters
const Fl_Glut_StrokeChar ** Characters
Definition: glut.H:444
GLUT_ACTIVE_CTRL
#define GLUT_ACTIVE_CTRL
Definition: glut.H:362
Fl_Glut_Bitmap_Font
Definition: glut.H:402
Fl_Glut_Window::number
int number
Definition: glut.H:52
glut_menustate_function
void(* glut_menustate_function)(int)
glutSwapBuffers
void glutSwapBuffers()
Fl_Gl_Window::make_overlay_current
void make_overlay_current()
Fl_Glut_Bitmap_Font::font
Fl_Font font
Definition: glut.H:402
GLUT_LEFT
Definition: glut.H:227
glutChangeToMenuEntry
void glutChangeToMenuEntry(int item, char *labela, int value)
Fl_Gl_Window.H
glutBitmapCharacter
void glutBitmapCharacter(void *font, int character)
Fl_Fontsize
int Fl_Fontsize
Definition: Enumerations.H:906
glutPositionWindow
void glutPositionWindow(int x, int y)
Definition: glut.H:126
glutPassiveMotionFunc
void glutPassiveMotionFunc(void(*f)(int x, int y))
Definition: glut.H:223
glutSetCursor
void glutSetCursor(Fl_Cursor cursor)
Definition: glut.H:142
glutExtensionSupported
int glutExtensionSupported(char *name)
Fl_Widget::redraw
void redraw()
Definition: Fl.cxx:1782
glutReshapeWindow
void glutReshapeWindow(int w, int h)
Definition: glut.H:128
glutPushWindow
void glutPushWindow()
Definition: glut.H:132
fl_intptr_t
long fl_intptr_t
Definition: Fl_Widget.H:39
glutGet
int glutGet(GLenum type)
glutShowWindow
void glutShowWindow()
Definition: glut.H:136
Fl_Glut_StrokeVertex::X
GLfloat X
Definition: glut.H:426
glutCreateSubWindow
int glutCreateSubWindow(int win, int x, int y, int width, int height)
Fl_Gl_Window::show
void show()
Fl_Widget::h
int h() const
Definition: Fl_Widget.H:299
glutWireTorus
void glutWireTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings)
Definition: freeglut_geometry.cxx:591
glutMouseFunc
void glutMouseFunc(void(*f)(int b, int state, int x, int y))
Definition: glut.H:213
GLUT_SCREEN_HEIGHT
Definition: glut.H:311
Fl_Glut_StrokeStrip
Definition: glut.H:429
GLUT_MENU_NUM_ITEMS
Definition: glut.H:312
glutBitmapHeight
int glutBitmapHeight(void *font)
GLUT_INIT_WINDOW_WIDTH
Definition: glut.H:316
glutWarpPointer
void glutWarpPointer(int, int)
Definition: glut.H:168
glutCreateWindow
int glutCreateWindow(char *title)
glutKeyboardFunc
void glutKeyboardFunc(void(*f)(uchar key, int x, int y))
Definition: glut.H:210
GLUT_INIT_WINDOW_X
Definition: glut.H:314
Fl_Window::label
const char * label() const
Definition: Fl_Window.H:450
Fl_Gl_Window
Definition: Fl_Gl_Window.H:56
glutSetWindow
void glutSetWindow(int win)
Fl_Window::iconlabel
const char * iconlabel() const
Definition: Fl_Window.H:452
glutMenuStatusFunc
void glutMenuStatusFunc(void(*f)(int status, int x, int y))
Definition: glut.H:241
GLUT_WINDOW_WIDTH
Definition: glut.H:307
Fl_Widget::size
void size(int W, int H)
Definition: Fl_Widget.H:341
Fl_Window::cursor
void cursor(Fl_Cursor)
Definition: fl_cursor.cxx:111
x
int x
Definition: test.c:73
Fl_Font
int Fl_Font
Definition: Enumerations.H:877
glutOverlayDisplayFunc
void glutOverlayDisplayFunc(void(*f)())
Definition: glut.H:284
glutBitmapWidth
int glutBitmapWidth(void *font, int character)
Fl_Glut_Window::menu
int menu[3]
Definition: glut.H:53
Fl_Glut_StrokeStrip::Number
int Number
Definition: glut.H:430
Fl::add_timeout
static void add_timeout(double t, Fl_Timeout_Handler, void *=0)
Definition: Fl.cxx:329
Fl_Glut_Window::display
void(* display)()
Definition: glut.H:55
glut_idle_function
void(* glut_idle_function)()
Fl_Glut_Window::reshape
void(* reshape)(int w, int h)
Definition: glut.H:57
glutInitDisplayMode
void glutInitDisplayMode(unsigned int mode)
Fl_Gl_Window::handle
int handle(int)
Definition: Fl_Gl_Window.cxx:551
glutSetWindowTitle
void glutSetWindowTitle(char *t)
Definition: glut.H:122
y
int y
Definition: test.c:74
glut_menustatus_function
void(* glut_menustatus_function)(int, int, int)
glut_window
Fl_Glut_Window * glut_window
glutTimerFunc
void glutTimerFunc(unsigned int msec, void(*f)(int), int value)
Definition: glut.H:234
f
Fl_Box_Draw_F * f
Definition: fl_boxtype.cxx:285
GLUT_WINDOW_HEIGHT
Definition: glut.H:308
glutDestroyMenu
void glutDestroyMenu(int menu)
Fl_Cursor
Fl_Cursor
Definition: Enumerations.H:1048
GLUT_DISPLAY_MODE_POSSIBLE
Definition: glut.H:313
gl.h
title
static const char * title
Definition: Fl_arg.cxx:55
Fl_Glut_Bitmap_Font::size
Fl_Fontsize size
Definition: glut.H:402
glutBitmapLength
int glutBitmapLength(void *font, const unsigned char *string)
Fl_Gl_Window::draw
virtual void draw()
Definition: Fl_Gl_Window.cxx:543
Fl_Glut_Window::mouse
void(* mouse)(int b, int state, int x, int y)
Definition: glut.H:59
GLUT_INIT_WINDOW_HEIGHT
Definition: glut.H:317
glutSolidOctahedron
void glutSolidOctahedron()
Definition: freeglut_geometry.cxx:865
glutFullScreen
void glutFullScreen()
Definition: glut.H:140
GLUT_SCREEN_WIDTH
Definition: glut.H:310
GLUT_INIT_DISPLAY_MODE
Definition: glut.H:318
glutStrokeCharacter
void glutStrokeCharacter(void *font, int character)
glutMotionFunc
void glutMotionFunc(void(*f)(int x, int y))
Definition: glut.H:221
GLUT_WINDOW_Y
Definition: glut.H:306
Fl_Gl_Window::hide_overlay
void hide_overlay()
glutHideWindow
void glutHideWindow()
Definition: glut.H:138
glutInitWindowSize
void glutInitWindowSize(int w, int h)
GLUT_VISIBLE
Definition: glut.H:230
glutStrokeRoman
Fl_Glut_StrokeFont glutStrokeRoman
Definition: freeglut_stroke_roman.cxx:2848
glutStrokeLength
int glutStrokeLength(void *font, const unsigned char *string)
uchar
unsigned char uchar
Definition: fl_types.h:30
name
static const char * name
Definition: Fl_arg.cxx:53
glutRemoveOverlay
void glutRemoveOverlay()
Definition: glut.H:172
glutStrokeMonoRoman
Fl_Glut_StrokeFont glutStrokeMonoRoman
Definition: freeglut_stroke_mono_roman.cxx:2848
glutSetIconTitle
void glutSetIconTitle(char *t)
Definition: glut.H:124
Fl_Gl_Window::make_current
void make_current()
Fl_Glut_StrokeStrip::Vertices
const Fl_Glut_StrokeVertex * Vertices
Definition: glut.H:431
Fl_Gl_Window::redraw_overlay
void redraw_overlay()
glutSolidIcosahedron
void glutSolidIcosahedron()
Definition: freeglut_geometry.cxx:963
GLUT_VERSION
Definition: glut.H:320
Fl_Gl_Window::hide
void hide()
Fl_Gl_Window::draw_overlay
virtual void draw_overlay()
Fl_Glut_StrokeVertex
Definition: glut.H:425
glutWireTeapot
void glutWireTeapot(GLdouble size)
Definition: freeglut_teapot.cxx:149
GLUT_ENTERED
Definition: glut.H:227
glutWireDodecahedron
void glutWireDodecahedron()
Definition: freeglut_geometry.cxx:744