4 * The freeglut library private include file.
6 * Copyright (c) 1999-2000 Pawel W. Olszta. All Rights Reserved.
7 * Written by Pawel W. Olszta, <olszta@sourceforge.net>
8 * Creation date: Thu Dec 2 1999
10 * Permission is hereby granted, free of charge, to any person obtaining a
11 * copy of this software and associated documentation files (the "Software"),
12 * to deal in the Software without restriction, including without limitation
13 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 * and/or sell copies of the Software, and to permit persons to whom the
15 * Software is furnished to do so, subject to the following conditions:
17 * The above copyright notice and this permission notice shall be included
18 * in all copies or substantial portions of the Software.
20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23 * PAWEL W. OLSZTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
24 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 #ifndef FREEGLUT_INTERNAL_H
29 #define FREEGLUT_INTERNAL_H
31 /* XXX Update these for each release! */
32 #define VERSION_MAJOR 2
33 #define VERSION_MINOR 2
34 #define VERSION_PATCH 0
37 * Freeglut is meant to be available under all Unix/X11 and Win32 platforms.
39 #if defined(_WIN32_WCE)
40 # define TARGET_HOST_UNIX_X11 0
41 # define TARGET_HOST_WIN32 0
42 # define TARGET_HOST_WINCE 1
43 #elif defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__)
44 # define TARGET_HOST_UNIX_X11 0
45 # define TARGET_HOST_WIN32 1
46 # define TARGET_HOST_WINCE 0
48 # define TARGET_HOST_UNIX_X11 1
49 # define TARGET_HOST_WIN32 0
50 # define TARGET_HOST_WINCE 0
53 #define FREEGLUT_MAX_MENUS 3
54 #define FREEGLUT_DEBUG 1
57 #undef G_DISABLE_ASSERT
58 #undef G_DISABLE_CHECKS
60 #define G_DISABLE_ASSERT
61 #define G_DISABLE_CHECKS
65 * Somehow all Win32 include headers depend on this one:
75 #define strdup _strdup
79 * Those files should be available on every platform.
89 #if TARGET_HOST_UNIX_X11
95 * The system-dependant include files should go here:
97 #if TARGET_HOST_UNIX_X11
100 #include <X11/Xatom.h>
101 #include <X11/keysym.h>
103 #ifdef HAVE_X11_EXTENSIONS_XF86VMODE_H
104 #include <X11/extensions/xf86vmode.h>
109 * Microsoft VisualC++ 5.0's <math.h> does not define the PI
112 # define M_PI 3.14159265358979323846
123 /* -- GLOBAL TYPE DEFINITIONS ---------------------------------------------- */
126 * Freeglut callbacks type definitions
128 typedef void (* FGCBDisplay )( void );
129 typedef void (* FGCBReshape )( int, int );
130 typedef void (* FGCBVisibility )( int );
131 typedef void (* FGCBKeyboard )( unsigned char, int, int );
132 typedef void (* FGCBSpecial )( int, int, int );
133 typedef void (* FGCBMouse )( int, int, int, int );
134 typedef void (* FGCBMouseWheel )( int, int, int, int );
135 typedef void (* FGCBMotion )( int, int );
136 typedef void (* FGCBPassive )( int, int );
137 typedef void (* FGCBEntry )( int );
138 typedef void (* FGCBWindowStatus )( int );
139 typedef void (* FGCBSelect )( int, int, int );
140 typedef void (* FGCBJoystick )( unsigned int, int, int, int );
141 typedef void (* FGCBKeyboardUp )( unsigned char, int, int );
142 typedef void (* FGCBSpecialUp )( int, int, int );
143 typedef void (* FGCBOverlayDisplay)( void );
144 typedef void (* FGCBSpaceMotion )( int, int, int );
145 typedef void (* FGCBSpaceRotation )( int, int, int );
146 typedef void (* FGCBSpaceButton )( int, int );
147 typedef void (* FGCBDials )( int, int );
148 typedef void (* FGCBButtonBox )( int, int );
149 typedef void (* FGCBTabletMotion )( int, int );
150 typedef void (* FGCBTabletButton )( int, int, int, int );
151 typedef void (* FGCBDestroy )( void );
154 * The global callbacks type definitions
156 typedef void (* FGCBIdle )( void );
157 typedef void (* FGCBTimer )( int );
158 typedef void (* FGCBMenuState )( int );
159 typedef void (* FGCBMenuStatus )( int, int, int );
162 * The callback used when creating/using menus
164 typedef void (* FGCBMenu )( int );
170 typedef struct tagSFG_List SFG_List;
178 * A list node structure
180 typedef struct tagSFG_Node SFG_Node;
188 * A helper structure holding two ints and a boolean
190 typedef struct tagSFG_XYUse SFG_XYUse;
193 GLint X, Y; /* The two integers... */
194 GLboolean Use; /* ...and a single boolean. */
198 * A helper structure holding a timeval and a boolean
200 typedef struct tagSFG_Time SFG_Time;
206 struct timeval Value;
212 * An enumeration containing the state of the GLUT execution:
213 * initializing, running, or stopping
217 GLUT_EXEC_STATE_INIT,
218 GLUT_EXEC_STATE_RUNNING,
223 * This structure holds different freeglut settings
225 typedef struct tagSFG_State SFG_State;
228 SFG_XYUse Position; /* The default windows' position */
229 SFG_XYUse Size; /* The default windows' size */
230 unsigned int DisplayMode; /* Display mode for new windows */
232 GLboolean Initialised; /* freeglut has been initialised */
234 GLboolean ForceDirectContext; /* Force direct rendering? */
235 GLboolean TryDirectContext; /* What about giving a try to? */
237 GLboolean ForceIconic; /* New top windows are iconified */
238 GLboolean UseCurrentContext; /* New windows share with current */
240 GLboolean GLDebugSwitch; /* OpenGL state debugging switch */
241 GLboolean XSyncSwitch; /* X11 sync protocol switch */
243 int KeyRepeat; /* Global key repeat mode. */
244 int Modifiers; /* Current ALT/SHIFT/CTRL state */
246 GLuint FPSInterval; /* Interval between FPS printfs */
247 GLuint SwapCount; /* Count of glutSwapBuffer calls */
248 GLuint SwapTime; /* Time of last SwapBuffers */
250 SFG_Time Time; /* Time that glutInit was called */
251 SFG_List Timers; /* The freeglut timer hooks */
252 SFG_List FreeTimers; /* The unused timer hooks */
254 FGCBIdle IdleCallback; /* The global idle callback */
256 int ActiveMenus; /* Num. of currently active menus */
257 FGCBMenuState MenuStateCallback; /* Menu callbacks are global */
258 FGCBMenuStatus MenuStatusCallback;
260 SFG_XYUse GameModeSize; /* Game mode screen's dimensions */
261 int GameModeDepth; /* The pixel depth for game mode */
262 int GameModeRefresh; /* The refresh rate for game mode */
264 int ActionOnWindowClose; /* Action when user closes window */
266 fgExecutionState ExecState; /* Used for GLUT termination */
267 char *ProgramName; /* Name of the invoking program */
271 * The structure used by display initialization in freeglut_init.c
273 typedef struct tagSFG_Display SFG_Display;
274 struct tagSFG_Display
276 #if TARGET_HOST_UNIX_X11
277 Display* Display; /* The display we are being run in. */
278 int Screen; /* The screen we are about to use. */
279 Window RootWindow; /* The screen's root window. */
280 int Connection; /* The display's connection number */
281 Atom DeleteWindow; /* The window deletion atom */
283 #ifdef X_XF86VidModeGetModeLine
285 * XF86VidMode may be compilable even if it fails at runtime. Therefore,
286 * the validity of the VidMode has to be tracked
288 int DisplayModeValid; /* Flag that indicates runtime status*/
289 XF86VidModeModeLine DisplayMode; /* Current screen's display settings */
290 int DisplayModeClock; /* The display mode's refresh rate */
291 int DisplayViewPortX; /* saved X location of the viewport */
292 int DisplayViewPortY; /* saved Y location of the viewport */
293 int DisplayPointerX; /* saved X location of the pointer */
294 int DisplayPointerY; /* saved Y location of the pointer */
298 #elif TARGET_HOST_WIN32 || TARGET_HOST_WINCE
299 HINSTANCE Instance; /* The application's instance */
300 DEVMODE DisplayMode; /* Desktop's display settings */
304 int ScreenWidth; /* The screen's width in pixels */
305 int ScreenHeight; /* The screen's height in pixels */
306 int ScreenWidthMM; /* The screen's width in milimeters */
307 int ScreenHeightMM; /* The screen's height in milimeters */
312 * The user can create any number of timer hooks
314 typedef struct tagSFG_Timer SFG_Timer;
318 int ID; /* The timer ID integer */
319 FGCBTimer Callback; /* The timer callback */
320 long TriggerTime; /* The timer trigger time */
324 * Make "freeglut" window handle and context types so that we don't need so
325 * much conditionally-compiled code later in the library.
327 #if TARGET_HOST_UNIX_X11
329 typedef Window SFG_WindowHandleType ;
330 typedef GLXContext SFG_WindowContextType ;
332 #elif TARGET_HOST_WIN32 || TARGET_HOST_WINCE
334 typedef HWND SFG_WindowHandleType ;
335 typedef HGLRC SFG_WindowContextType ;
340 * A window and its OpenGL context. The contents of this structure
341 * are highly dependant on the target operating system we aim at...
343 typedef struct tagSFG_Context SFG_Context;
344 struct tagSFG_Context
346 SFG_WindowHandleType Handle; /* The window's handle */
347 SFG_WindowContextType Context; /* The window's OpenGL/WGL context */
349 #if TARGET_HOST_UNIX_X11
350 XVisualInfo* VisualInfo; /* The window's visual information */
351 Pixmap Pixmap; /* Used for offscreen rendering */
352 /* GLXPixmap GLXPixMap; */ /* Used for offscreen rendering */
353 #elif TARGET_HOST_WIN32 || TARGET_HOST_WINCE
354 HDC Device; /* The window's device context */
357 int DoubleBuffered; /* Treat the window as double-buffered */
361 * Window's state description. This structure should be kept portable.
363 typedef struct tagSFG_WindowState SFG_WindowState;
364 struct tagSFG_WindowState
366 int Width; /* Window's width in pixels */
367 int Height; /* The same about the height */
368 int OldWidth; /* Window width from before a resize */
369 int OldHeight; /* " height " " " " */
371 GLboolean Redisplay; /* Do we have to redisplay? */
372 GLboolean Visible; /* Is the window visible now */
374 int Cursor; /* The currently selected cursor */
376 long JoystickPollRate; /* The joystick polling rate */
377 long JoystickLastPoll; /* When the last poll happened */
379 int MouseX, MouseY; /* The most recent mouse position */
381 GLboolean IgnoreKeyRepeat; /* Whether to ignore key repeat. */
382 GLboolean KeyRepeating; /* Currently in repeat mode */
384 GLboolean IsGameMode; /* Is this the game mode window? */
385 GLboolean NeedToResize; /* Do we need to resize the window? */
390 * SET_WCB() is used as:
392 * SET_WCB( window, Visibility, func );
394 * ...where {window} is the freeglut window to set the callback,
395 * {Visibility} is the window-specific callback to set,
396 * {func} is a function-pointer.
398 * Originally, {FETCH_WCB( ... ) = func} was rather sloppily used,
399 * but this can cause warnings because the FETCH_WCB() macro type-
400 * casts its result, and a type-cast value shouldn't be an lvalue.
402 * The {if( FETCH_WCB( ... ) != func )} test is to do type-checking
403 * and for no other reason. Since it's hidden in the macro, the
404 * ugliness is felt to be rather benign.
406 #define SET_WCB(window,cbname,func) \
409 if( FETCH_WCB( window, cbname ) != func ) \
410 (((window).CallBacks[CB_ ## cbname]) = (void *) func); \
414 * FETCH_WCB() is used as:
416 * FETCH_WCB( window, Visibility );
418 * ...where {window} is the freeglut window to fetch the callback from,
419 * {Visibility} is the window-specific callback to fetch.
421 * The result is correctly type-cast to the callback function pointer
424 #define FETCH_WCB(window,cbname) \
425 ((FGCB ## cbname)((window).CallBacks[CB_ ## cbname]))
428 * INVOKE_WCB() is used as:
430 * INVOKE_WCB( window, Visibility, ( status ) );
432 * ...where {window} is the freeglut window,
433 * {Visibility} is the window-specific callback,
434 * {(status)} is the parameter list.
436 * The callback is invoked as:
438 * callback( status );
440 * ...so the parentheses are REQUIRED in the {arg_list}.
442 * NOTE that it does a sanity-check and also sets the
446 #define INVOKE_WCB(window,cbname,arg_list) \
449 if( FETCH_WCB( window, cbname ) ) \
451 fgSetWindow( &window ); \
452 FETCH_WCB( window, cbname ) arg_list; \
457 * The window callbacks the user can supply us with. Should be kept portable.
459 * This enumeration provides the freeglut CallBack numbers.
460 * The symbolic constants are indices into a window's array of
461 * function callbacks. The names are formed by splicing a common
462 * prefix onto the callback's base name. (This was originally
463 * done so that an early stage of development could live side-by-
464 * side with the old callback code. The old callback code used
465 * the bare callback's name as a structure member, so I used a
466 * prefix for the array index name.)
468 * XXX For consistancy, perhaps the prefix should match the
469 * XXX FETCH* and INVOKE* macro suffices. I.e., WCB_, rather than
490 /* Presently ignored */
501 /* Always make this the LAST one */
507 * This structure holds the OpenGL rendering context for all the menu windows
509 typedef struct tagSFG_MenuContext SFG_MenuContext;
510 struct tagSFG_MenuContext
512 #if TARGET_HOST_UNIX_X11
513 XVisualInfo* VisualInfo; /* The window's visual information */
516 SFG_WindowContextType Context; /* The menu window's WGL context */
520 * This structure describes a menu
522 typedef struct tagSFG_Window SFG_Window;
523 typedef struct tagSFG_MenuEntry SFG_MenuEntry;
524 typedef struct tagSFG_Menu SFG_Menu;
528 void *UserData; /* User data passed back at callback */
529 int ID; /* The global menu ID */
530 SFG_List Entries; /* The menu entries list */
531 FGCBMenu Callback; /* The menu callback */
532 FGCBDestroy Destroy; /* Destruction callback */
533 GLboolean IsActive; /* Is the menu selected? */
534 int Width; /* Menu box width in pixels */
535 int Height; /* Menu box height in pixels */
536 int X, Y; /* Menu box raster position */
538 SFG_MenuEntry *ActiveEntry; /* Currently active entry in the menu */
539 SFG_Window *Window; /* Window for menu */
540 SFG_Window *ParentWindow; /* Window in which the menu is defined */
544 * This is a menu entry
546 struct tagSFG_MenuEntry
549 int ID; /* The menu entry ID (local) */
550 int Ordinal; /* The menu's ordinal number */
551 char* Text; /* The text to be displayed */
552 SFG_Menu* SubMenu; /* Optional sub-menu tree */
553 GLboolean IsActive; /* Is the entry highlighted? */
554 int Width; /* Label's width in pixels */
558 * A window, making part of freeglut windows hierarchy.
559 * Should be kept portable.
564 int ID; /* Window's ID number */
566 SFG_Context Window; /* Window and OpenGL context */
567 SFG_WindowState State; /* The window state */
568 void *CallBacks[ TOTAL_CALLBACKS ]; /* Array of window callbacks */
569 void *UserData ; /* For use by user */
571 SFG_Menu* Menu[ FREEGLUT_MAX_MENUS ]; /* Menus appended to window */
572 SFG_Menu* ActiveMenu; /* The window's active menu */
574 SFG_Window* Parent; /* The parent to this window */
575 SFG_List Children; /* The subwindows d.l. list */
577 GLboolean IsMenu; /* Set to 1 if we are a menu */
582 * A linked list structure of windows
584 typedef struct tagSFG_WindowList SFG_WindowList ;
585 struct tagSFG_WindowList
592 * This holds information about all the windows, menus etc.
594 typedef struct tagSFG_Structure SFG_Structure;
595 struct tagSFG_Structure
597 SFG_List Windows; /* The global windows list */
598 SFG_List Menus; /* The global menus list */
599 SFG_List WindowsToDestroy;
601 SFG_Window* Window; /* The currently active win. */
602 SFG_Menu* Menu; /* Same, but menu... */
604 SFG_MenuContext* MenuContext; /* OpenGL rendering context for menus */
606 SFG_Window* GameMode; /* The game mode window */
608 int WindowID; /* The new current window ID */
609 int MenuID; /* The new current menu ID */
613 * This structure is used for the enumeration purposes.
614 * You can easily extend its functionalities by declaring
615 * a structure containing enumerator's contents and custom
616 * data, then casting its pointer to (SFG_Enumerator *).
618 typedef struct tagSFG_Enumerator SFG_Enumerator;
619 struct tagSFG_Enumerator
621 GLboolean found; /* Used to terminate search */
622 void* data; /* Custom data pointer */
624 typedef void (* FGCBenumerator )( SFG_Window *, SFG_Enumerator * );
627 * The bitmap font structure
629 typedef struct tagSFG_Font SFG_Font;
632 char* Name; /* The source font name */
633 int Quantity; /* Number of chars in font */
634 int Height; /* Height of the characters */
635 const GLubyte** Characters; /* The characters mapping */
637 float xorig, yorig; /* Relative origin of the character */
641 * The stroke font structures
644 typedef struct tagSFG_StrokeVertex SFG_StrokeVertex;
645 struct tagSFG_StrokeVertex
650 typedef struct tagSFG_StrokeStrip SFG_StrokeStrip;
651 struct tagSFG_StrokeStrip
654 const SFG_StrokeVertex* Vertices;
657 typedef struct tagSFG_StrokeChar SFG_StrokeChar;
658 struct tagSFG_StrokeChar
662 const SFG_StrokeStrip* Strips;
665 typedef struct tagSFG_StrokeFont SFG_StrokeFont;
666 struct tagSFG_StrokeFont
668 char* Name; /* The source font name */
669 int Quantity; /* Number of chars in font */
670 GLfloat Height; /* Height of the characters */
671 const SFG_StrokeChar** Characters; /* The characters mapping */
674 /* -- GLOBAL VARIABLES EXPORTS --------------------------------------------- */
677 * Freeglut display related stuff (initialized once per session)
679 extern SFG_Display fgDisplay;
682 * Freeglut internal structure
684 extern SFG_Structure fgStructure;
687 * The current freeglut settings
689 extern SFG_State fgState;
692 /* -- PRIVATE FUNCTION DECLARATIONS ---------------------------------------- */
695 * A call to this function makes us sure that the Display and Structure
696 * subsystems have been properly initialized and are ready to be used
698 #define freeglut_assert_ready assert( fgState.Initialised );
701 * Following definitions are somewhat similiar to GLib's,
702 * but do not generate any log messages:
704 #define freeglut_return_if_fail( expr ) \
707 #define freeglut_return_val_if_fail( expr, val ) \
712 * A call to those macros assures us that there is a current
713 * window and menu set, respectively:
715 #define freeglut_assert_window assert( fgStructure.Window != NULL );
716 #define freeglut_assert_menu assert( fgStructure.Menu != NULL );
719 * The initialize and deinitialize functions get called on glutInit()
720 * and glutMainLoop() end respectively. They should create/clean up
721 * everything inside of the freeglut
723 void fgInitialize( const char* displayName );
724 void fgDeinitialize( void );
727 * Those two functions are used to create/destroy the freeglut internal
728 * structures. This actually happens when calling glutInit() and when
729 * quitting the glutMainLoop() (which actually happens, when all windows
732 void fgCreateStructure( void );
733 void fgDestroyStructure( void );
736 * A helper function to check if a display mode is possible to use
738 #if TARGET_HOST_UNIX_X11
739 XVisualInfo* fgChooseVisual( void );
743 * The window procedure for Win32 events handling
745 #if TARGET_HOST_WIN32 || TARGET_HOST_WINCE
746 LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg,
747 WPARAM wParam, LPARAM lParam );
748 GLboolean fgSetupPixelFormat( SFG_Window* window, GLboolean checkOnly,
749 unsigned char layer_type );
753 * Window creation, opening, closing and destruction.
754 * Also CallBack clearing/initialization.
755 * Defined in freeglut_structure.c, freeglut_window.c.
757 SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title,
758 int x, int y, int w, int h,
759 GLboolean gameMode, GLboolean isMenu );
760 void fgSetWindow ( SFG_Window *window );
761 void fgOpenWindow( SFG_Window* window, const char* title,
762 int x, int y, int w, int h, GLboolean gameMode,
763 GLboolean isSubWindow );
764 void fgCloseWindow( SFG_Window* window );
765 void fgAddToWindowDestroyList ( SFG_Window* window );
766 void fgCloseWindows ();
767 void fgDestroyWindow( SFG_Window* window );
768 void fgClearCallBacks( SFG_Window *window );
771 * Menu creation and destruction. Defined in freeglut_structure.c
773 SFG_Menu* fgCreateMenu( FGCBMenu menuCallback );
774 void fgDestroyMenu( SFG_Menu* menu );
777 * Joystick device management functions, defined in freeglut_joystick.c
779 void fgJoystickInit( int ident );
780 void fgJoystickClose( void );
781 void fgJoystickPollWindow( SFG_Window* window );
784 * Helper function to enumerate through all registered windows
785 * and one to enumerate all of a window's subwindows...
787 * The GFunc callback for those functions will be defined as:
789 * void enumCallback( gpointer window, gpointer enumerator );
791 * where window is the enumerated (sub)window pointer (SFG_Window *),
792 * and userData is the a custom user-supplied pointer. Functions
793 * are defined and exported from freeglut_structure.c file.
795 void fgEnumWindows( FGCBenumerator enumCallback, SFG_Enumerator* enumerator );
796 void fgEnumSubWindows( SFG_Window* window, FGCBenumerator enumCallback,
797 SFG_Enumerator* enumerator );
800 * fgWindowByHandle returns a (SFG_Window *) value pointing to the
801 * first window in the queue matching the specified window handle.
802 * The function is defined in freeglut_structure.c file.
804 SFG_Window* fgWindowByHandle( SFG_WindowHandleType hWindow );
807 * This function is similiar to the previous one, except it is
808 * looking for a specified (sub)window identifier. The function
809 * is defined in freeglut_structure.c file.
811 SFG_Window* fgWindowByID( int windowID );
814 * Looks up a menu given its ID. This is easier than fgWindowByXXX
815 * as all menus are placed in a single doubly linked list...
817 SFG_Menu* fgMenuByID( int menuID );
820 * The menu activation and deactivation the code. This is the meat
821 * of the menu user interface handling code...
823 void fgActivateMenu( SFG_Window* window, int button );
824 void fgExecuteMenuCallback( SFG_Menu* menu );
825 GLboolean fgCheckActiveMenu ( SFG_Window *window, SFG_Menu *menu );
826 void fgDeactivateMenu( SFG_Window *window );
827 void fgDeactivateSubMenu( SFG_MenuEntry *menuEntry );
830 * This function gets called just before the buffers swap, so that
831 * freeglut can display the pull-down menus via OpenGL. The function
832 * is defined in freeglut_menu.c file.
834 void fgDisplayMenu( void );
837 * Display the mouse cursor using OpenGL calls. The function
838 * is defined in freeglut_cursor.c file.
840 void fgDisplayCursor( void );
843 * Elapsed time as per glutGet(GLUT_ELAPSED_TIME).
845 long fgElapsedTime( void );
850 void fgListInit(SFG_List *list);
851 void fgListAppend(SFG_List *list, SFG_Node *node);
852 void fgListRemove(SFG_List *list, SFG_Node *node);
853 int fgListLength(SFG_List *list);
854 void fgListInsert(SFG_List *list, SFG_Node *next, SFG_Node *node);
857 * Error Messages functions
859 void fgError( const char *fmt, ... );
860 void fgWarning( const char *fmt, ... );
862 #endif /* FREEGLUT_INTERNAL_H */
864 /*** END OF FILE ***/