Main MRPT website > C++ reference
MRPT logo

freeglut_std.h

Go to the documentation of this file.
00001 #ifndef  __FREEGLUT_STD_H__
00002 #define  __FREEGLUT_STD_H__
00003 
00004 /*
00005  * freeglut_std.h
00006  *
00007  * The GLUT-compatible part of the freeglut library include file
00008  *
00009  * Copyright (c) 1999-2000 Pawel W. Olszta. All Rights Reserved.
00010  * Written by Pawel W. Olszta, <olszta@sourceforge.net>
00011  * Creation date: Thu Dec 2 1999
00012  *
00013  * Permission is hereby granted, free of charge, to any person obtaining a
00014  * copy of this software and associated documentation files (the "Software"),
00015  * to deal in the Software without restriction, including without limitation
00016  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
00017  * and/or sell copies of the Software, and to permit persons to whom the
00018  * Software is furnished to do so, subject to the following conditions:
00019  *
00020  * The above copyright notice and this permission notice shall be included
00021  * in all copies or substantial portions of the Software.
00022  *
00023  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00024  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00025  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
00026  * PAWEL W. OLSZTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
00027  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00028  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00029  */
00030 
00031 #ifdef __cplusplus
00032     extern "C" {
00033 #endif
00034 
00035 /*
00036  * Under windows, we have to differentiate between static and dynamic libraries
00037  */
00038 #if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__)
00039 
00040 /* #pragma may not be supported by some compilers.
00041  * Discussion by FreeGLUT developers suggests that
00042  * Visual C++ specific code involving pragmas may
00043  * need to move to a separate header.  24th Dec 2003
00044  */
00045 
00046 #   define WIN32_LEAN_AND_MEAN
00047 #   define NO_MIN_MAX
00048 #    include <windows.h>
00049 #   undef min
00050 #   undef max
00051 
00052 /* MOD JLBC FOR MRPT */
00053 #include <mrpt/config.h>
00054 #ifndef MRPT_BUILT_AS_DLL
00055 #       define FREEGLUT_STATIC
00056 #endif
00057 
00058 /* Windows static library */
00059 #   ifdef FREEGLUT_STATIC
00060 
00061 #    define FGAPI
00062 #    define FGAPIENTRY
00063 
00064         /* Link with Win32 static freeglut lib */
00065 #       if defined(_MSC_VER)
00066 /* MODIFIED FOR MRPT,  JLBC
00067 #           pragma comment (lib, "freeglut_static.lib") */
00068 #       endif
00069 
00070 /* Windows shared library (DLL) */
00071 #   else
00072 
00073 #        if defined(FREEGLUT_EXPORTS)
00074 #                define FGAPI __declspec(dllexport)
00075 #        else
00076 #                define FGAPI __declspec(dllimport)
00077 
00078             /* link with Win32 shared freeglut lib */
00079 #           if defined(_MSC_VER)
00080 /* MODIFIED FOR MRPT,  JLBC
00081 #               ifndef _WIN32_WCE
00082 #                   pragma comment (lib, "freeglut.lib")
00083 #               endif*/
00084 #        endif
00085 
00086 #       endif
00087 
00088 #       define FGAPIENTRY __stdcall
00089 
00090 #   endif
00091 
00092 /* Drag in other Windows libraries as required by FreeGLUT */
00093 #   if defined(_MSC_VER)
00094 #       ifndef _WIN32_WCE
00095 #           pragma comment (lib, "winmm.lib")    /* link Windows MultiMedia lib */
00096 #           pragma comment (lib, "user32.lib")   /* link Windows user lib       */
00097 #           pragma comment (lib, "gdi32.lib")    /* link Windows GDI lib        */
00098 #           pragma comment (lib, "opengl32.lib") /* link Microsoft OpenGL lib   */
00099 #           pragma comment (lib, "glu32.lib")    /* link OpenGL Utility lib     */
00100 #       endif /* _WIN32_WCE */
00101 #   endif
00102 
00103 #else
00104 
00105 /* Non-Windows definition of FGAPI and FGAPIENTRY  */
00106 #        define FGAPI
00107 #        define FGAPIENTRY
00108 
00109 #endif
00110 
00111 /*
00112  * The freeglut and GLUT API versions
00113  */
00114 #define  FREEGLUT             1
00115 #define  GLUT_API_VERSION     4
00116 #define  FREEGLUT_VERSION_2_0 1
00117 #define  GLUT_XLIB_IMPLEMENTATION 13
00118 
00119 /*
00120  * Always include OpenGL and GLU headers
00121  */
00122 #include <GL/gl.h>
00123 #include <GL/glu.h>
00124 
00125 /*
00126  * GLUT API macro definitions -- the special key codes:
00127  */
00128 #define  GLUT_KEY_F1                        0x0001
00129 #define  GLUT_KEY_F2                        0x0002
00130 #define  GLUT_KEY_F3                        0x0003
00131 #define  GLUT_KEY_F4                        0x0004
00132 #define  GLUT_KEY_F5                        0x0005
00133 #define  GLUT_KEY_F6                        0x0006
00134 #define  GLUT_KEY_F7                        0x0007
00135 #define  GLUT_KEY_F8                        0x0008
00136 #define  GLUT_KEY_F9                        0x0009
00137 #define  GLUT_KEY_F10                       0x000A
00138 #define  GLUT_KEY_F11                       0x000B
00139 #define  GLUT_KEY_F12                       0x000C
00140 #define  GLUT_KEY_LEFT                      0x0064
00141 #define  GLUT_KEY_UP                        0x0065
00142 #define  GLUT_KEY_RIGHT                     0x0066
00143 #define  GLUT_KEY_DOWN                      0x0067
00144 #define  GLUT_KEY_PAGE_UP                   0x0068
00145 #define  GLUT_KEY_PAGE_DOWN                 0x0069
00146 #define  GLUT_KEY_HOME                      0x006A
00147 #define  GLUT_KEY_END                       0x006B
00148 #define  GLUT_KEY_INSERT                    0x006C
00149 
00150 /*
00151  * GLUT API macro definitions -- mouse state definitions
00152  */
00153 #define  GLUT_LEFT_BUTTON                   0x0000
00154 #define  GLUT_MIDDLE_BUTTON                 0x0001
00155 #define  GLUT_RIGHT_BUTTON                  0x0002
00156 #define  GLUT_DOWN                          0x0000
00157 #define  GLUT_UP                            0x0001
00158 #define  GLUT_LEFT                          0x0000
00159 #define  GLUT_ENTERED                       0x0001
00160 
00161 /*
00162  * GLUT API macro definitions -- the display mode definitions
00163  */
00164 #define  GLUT_RGB                           0x0000
00165 #define  GLUT_RGBA                          0x0000
00166 #define  GLUT_INDEX                         0x0001
00167 #define  GLUT_SINGLE                        0x0000
00168 #define  GLUT_DOUBLE                        0x0002
00169 #define  GLUT_ACCUM                         0x0004
00170 #define  GLUT_ALPHA                         0x0008
00171 #define  GLUT_DEPTH                         0x0010
00172 #define  GLUT_STENCIL                       0x0020
00173 #define  GLUT_MULTISAMPLE                   0x0080
00174 #define  GLUT_STEREO                        0x0100
00175 #define  GLUT_LUMINANCE                     0x0200
00176 
00177 /*
00178  * GLUT API macro definitions -- windows and menu related definitions
00179  */
00180 #define  GLUT_MENU_NOT_IN_USE               0x0000
00181 #define  GLUT_MENU_IN_USE                   0x0001
00182 #define  GLUT_NOT_VISIBLE                   0x0000
00183 #define  GLUT_VISIBLE                       0x0001
00184 #define  GLUT_HIDDEN                        0x0000
00185 #define  GLUT_FULLY_RETAINED                0x0001
00186 #define  GLUT_PARTIALLY_RETAINED            0x0002
00187 #define  GLUT_FULLY_COVERED                 0x0003
00188 
00189 /*
00190  * GLUT API macro definitions -- fonts definitions
00191  *
00192  * Steve Baker suggested to make it binary compatible with GLUT:
00193  */
00194 #if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__)
00195 #   define  GLUT_STROKE_ROMAN               ((void *)0x0000)
00196 #   define  GLUT_STROKE_MONO_ROMAN          ((void *)0x0001)
00197 #   define  GLUT_BITMAP_9_BY_15             ((void *)0x0002)
00198 #   define  GLUT_BITMAP_8_BY_13             ((void *)0x0003)
00199 #   define  GLUT_BITMAP_TIMES_ROMAN_10      ((void *)0x0004)
00200 #   define  GLUT_BITMAP_TIMES_ROMAN_24      ((void *)0x0005)
00201 #   define  GLUT_BITMAP_HELVETICA_10        ((void *)0x0006)
00202 #   define  GLUT_BITMAP_HELVETICA_12        ((void *)0x0007)
00203 #   define  GLUT_BITMAP_HELVETICA_18        ((void *)0x0008)
00204 #else
00205     /*
00206      * I don't really know if it's a good idea... But here it goes:
00207      */
00208     extern void* glutStrokeRoman;
00209     extern void* glutStrokeMonoRoman;
00210     extern void* glutBitmap9By15;
00211     extern void* glutBitmap8By13;
00212     extern void* glutBitmapTimesRoman10;
00213     extern void* glutBitmapTimesRoman24;
00214     extern void* glutBitmapHelvetica10;
00215     extern void* glutBitmapHelvetica12;
00216     extern void* glutBitmapHelvetica18;
00217 
00218     /*
00219      * Those pointers will be used by following definitions:
00220      */
00221 #   define  GLUT_STROKE_ROMAN               ((void *) &glutStrokeRoman)
00222 #   define  GLUT_STROKE_MONO_ROMAN          ((void *) &glutStrokeMonoRoman)
00223 #   define  GLUT_BITMAP_9_BY_15             ((void *) &glutBitmap9By15)
00224 #   define  GLUT_BITMAP_8_BY_13             ((void *) &glutBitmap8By13)
00225 #   define  GLUT_BITMAP_TIMES_ROMAN_10      ((void *) &glutBitmapTimesRoman10)
00226 #   define  GLUT_BITMAP_TIMES_ROMAN_24      ((void *) &glutBitmapTimesRoman24)
00227 #   define  GLUT_BITMAP_HELVETICA_10        ((void *) &glutBitmapHelvetica10)
00228 #   define  GLUT_BITMAP_HELVETICA_12        ((void *) &glutBitmapHelvetica12)
00229 #   define  GLUT_BITMAP_HELVETICA_18        ((void *) &glutBitmapHelvetica18)
00230 #endif
00231 
00232 /*
00233  * GLUT API macro definitions -- the glutGet parameters
00234  */
00235 #define  GLUT_WINDOW_X                      0x0064
00236 #define  GLUT_WINDOW_Y                      0x0065
00237 #define  GLUT_WINDOW_WIDTH                  0x0066
00238 #define  GLUT_WINDOW_HEIGHT                 0x0067
00239 #define  GLUT_WINDOW_BUFFER_SIZE            0x0068
00240 #define  GLUT_WINDOW_STENCIL_SIZE           0x0069
00241 #define  GLUT_WINDOW_DEPTH_SIZE             0x006A
00242 #define  GLUT_WINDOW_RED_SIZE               0x006B
00243 #define  GLUT_WINDOW_GREEN_SIZE             0x006C
00244 #define  GLUT_WINDOW_BLUE_SIZE              0x006D
00245 #define  GLUT_WINDOW_ALPHA_SIZE             0x006E
00246 #define  GLUT_WINDOW_ACCUM_RED_SIZE         0x006F
00247 #define  GLUT_WINDOW_ACCUM_GREEN_SIZE       0x0070
00248 #define  GLUT_WINDOW_ACCUM_BLUE_SIZE        0x0071
00249 #define  GLUT_WINDOW_ACCUM_ALPHA_SIZE       0x0072
00250 #define  GLUT_WINDOW_DOUBLEBUFFER           0x0073
00251 #define  GLUT_WINDOW_RGBA                   0x0074
00252 #define  GLUT_WINDOW_PARENT                 0x0075
00253 #define  GLUT_WINDOW_NUM_CHILDREN           0x0076
00254 #define  GLUT_WINDOW_COLORMAP_SIZE          0x0077
00255 #define  GLUT_WINDOW_NUM_SAMPLES            0x0078
00256 #define  GLUT_WINDOW_STEREO                 0x0079
00257 #define  GLUT_WINDOW_CURSOR                 0x007A
00258 
00259 #define  GLUT_SCREEN_WIDTH                  0x00C8
00260 #define  GLUT_SCREEN_HEIGHT                 0x00C9
00261 #define  GLUT_SCREEN_WIDTH_MM               0x00CA
00262 #define  GLUT_SCREEN_HEIGHT_MM              0x00CB
00263 #define  GLUT_MENU_NUM_ITEMS                0x012C
00264 #define  GLUT_DISPLAY_MODE_POSSIBLE         0x0190
00265 #define  GLUT_INIT_WINDOW_X                 0x01F4
00266 #define  GLUT_INIT_WINDOW_Y                 0x01F5
00267 #define  GLUT_INIT_WINDOW_WIDTH             0x01F6
00268 #define  GLUT_INIT_WINDOW_HEIGHT            0x01F7
00269 #define  GLUT_INIT_DISPLAY_MODE             0x01F8
00270 #define  GLUT_ELAPSED_TIME                  0x02BC
00271 #define  GLUT_WINDOW_FORMAT_ID              0x007B
00272 #define  GLUT_INIT_STATE                    0x007C
00273 
00274 /*
00275  * GLUT API macro definitions -- the glutDeviceGet parameters
00276  */
00277 #define  GLUT_HAS_KEYBOARD                  0x0258
00278 #define  GLUT_HAS_MOUSE                     0x0259
00279 #define  GLUT_HAS_SPACEBALL                 0x025A
00280 #define  GLUT_HAS_DIAL_AND_BUTTON_BOX       0x025B
00281 #define  GLUT_HAS_TABLET                    0x025C
00282 #define  GLUT_NUM_MOUSE_BUTTONS             0x025D
00283 #define  GLUT_NUM_SPACEBALL_BUTTONS         0x025E
00284 #define  GLUT_NUM_BUTTON_BOX_BUTTONS        0x025F
00285 #define  GLUT_NUM_DIALS                     0x0260
00286 #define  GLUT_NUM_TABLET_BUTTONS            0x0261
00287 #define  GLUT_DEVICE_IGNORE_KEY_REPEAT      0x0262
00288 #define  GLUT_DEVICE_KEY_REPEAT             0x0263
00289 #define  GLUT_HAS_JOYSTICK                  0x0264
00290 #define  GLUT_OWNS_JOYSTICK                 0x0265
00291 #define  GLUT_JOYSTICK_BUTTONS              0x0266
00292 #define  GLUT_JOYSTICK_AXES                 0x0267
00293 #define  GLUT_JOYSTICK_POLL_RATE            0x0268
00294 
00295 /*
00296  * GLUT API macro definitions -- the glutLayerGet parameters
00297  */
00298 #define  GLUT_OVERLAY_POSSIBLE              0x0320
00299 #define  GLUT_LAYER_IN_USE                  0x0321
00300 #define  GLUT_HAS_OVERLAY                   0x0322
00301 #define  GLUT_TRANSPARENT_INDEX             0x0323
00302 #define  GLUT_NORMAL_DAMAGED                0x0324
00303 #define  GLUT_OVERLAY_DAMAGED               0x0325
00304 
00305 /*
00306  * GLUT API macro definitions -- the glutVideoResizeGet parameters
00307  */
00308 #define  GLUT_VIDEO_RESIZE_POSSIBLE         0x0384
00309 #define  GLUT_VIDEO_RESIZE_IN_USE           0x0385
00310 #define  GLUT_VIDEO_RESIZE_X_DELTA          0x0386
00311 #define  GLUT_VIDEO_RESIZE_Y_DELTA          0x0387
00312 #define  GLUT_VIDEO_RESIZE_WIDTH_DELTA      0x0388
00313 #define  GLUT_VIDEO_RESIZE_HEIGHT_DELTA     0x0389
00314 #define  GLUT_VIDEO_RESIZE_X                0x038A
00315 #define  GLUT_VIDEO_RESIZE_Y                0x038B
00316 #define  GLUT_VIDEO_RESIZE_WIDTH            0x038C
00317 #define  GLUT_VIDEO_RESIZE_HEIGHT           0x038D
00318 
00319 /*
00320  * GLUT API macro definitions -- the glutUseLayer parameters
00321  */
00322 #define  GLUT_NORMAL                        0x0000
00323 #define  GLUT_OVERLAY                       0x0001
00324 
00325 /*
00326  * GLUT API macro definitions -- the glutGetModifiers parameters
00327  */
00328 #define  GLUT_ACTIVE_SHIFT                  0x0001
00329 #define  GLUT_ACTIVE_CTRL                   0x0002
00330 #define  GLUT_ACTIVE_ALT                    0x0004
00331 
00332 /*
00333  * GLUT API macro definitions -- the glutSetCursor parameters
00334  */
00335 #define  GLUT_CURSOR_RIGHT_ARROW            0x0000
00336 #define  GLUT_CURSOR_LEFT_ARROW             0x0001
00337 #define  GLUT_CURSOR_INFO                   0x0002
00338 #define  GLUT_CURSOR_DESTROY                0x0003
00339 #define  GLUT_CURSOR_HELP                   0x0004
00340 #define  GLUT_CURSOR_CYCLE                  0x0005
00341 #define  GLUT_CURSOR_SPRAY                  0x0006
00342 #define  GLUT_CURSOR_WAIT                   0x0007
00343 #define  GLUT_CURSOR_TEXT                   0x0008
00344 #define  GLUT_CURSOR_CROSSHAIR              0x0009
00345 #define  GLUT_CURSOR_UP_DOWN                0x000A
00346 #define  GLUT_CURSOR_LEFT_RIGHT             0x000B
00347 #define  GLUT_CURSOR_TOP_SIDE               0x000C
00348 #define  GLUT_CURSOR_BOTTOM_SIDE            0x000D
00349 #define  GLUT_CURSOR_LEFT_SIDE              0x000E
00350 #define  GLUT_CURSOR_RIGHT_SIDE             0x000F
00351 #define  GLUT_CURSOR_TOP_LEFT_CORNER        0x0010
00352 #define  GLUT_CURSOR_TOP_RIGHT_CORNER       0x0011
00353 #define  GLUT_CURSOR_BOTTOM_RIGHT_CORNER    0x0012
00354 #define  GLUT_CURSOR_BOTTOM_LEFT_CORNER     0x0013
00355 #define  GLUT_CURSOR_INHERIT                0x0064
00356 #define  GLUT_CURSOR_NONE                   0x0065
00357 #define  GLUT_CURSOR_FULL_CROSSHAIR         0x0066
00358 
00359 /*
00360  * GLUT API macro definitions -- RGB color component specification definitions
00361  */
00362 #define  GLUT_RED                           0x0000
00363 #define  GLUT_GREEN                         0x0001
00364 #define  GLUT_BLUE                          0x0002
00365 
00366 /*
00367  * GLUT API macro definitions -- additional keyboard and joystick definitions
00368  */
00369 #define  GLUT_KEY_REPEAT_OFF                0x0000
00370 #define  GLUT_KEY_REPEAT_ON                 0x0001
00371 #define  GLUT_KEY_REPEAT_DEFAULT            0x0002
00372 
00373 #define  GLUT_JOYSTICK_BUTTON_A             0x0001
00374 #define  GLUT_JOYSTICK_BUTTON_B             0x0002
00375 #define  GLUT_JOYSTICK_BUTTON_C             0x0004
00376 #define  GLUT_JOYSTICK_BUTTON_D             0x0008
00377 
00378 /*
00379  * GLUT API macro definitions -- game mode definitions
00380  */
00381 #define  GLUT_GAME_MODE_ACTIVE              0x0000
00382 #define  GLUT_GAME_MODE_POSSIBLE            0x0001
00383 #define  GLUT_GAME_MODE_WIDTH               0x0002
00384 #define  GLUT_GAME_MODE_HEIGHT              0x0003
00385 #define  GLUT_GAME_MODE_PIXEL_DEPTH         0x0004
00386 #define  GLUT_GAME_MODE_REFRESH_RATE        0x0005
00387 #define  GLUT_GAME_MODE_DISPLAY_CHANGED     0x0006
00388 
00389 /*
00390  * Initialization functions, see fglut_init.c
00391  */
00392 FGAPI void    FGAPIENTRY glutInit( int* pargc, char** argv );
00393 FGAPI void    FGAPIENTRY glutInitWindowPosition( int x, int y );
00394 FGAPI void    FGAPIENTRY glutInitWindowSize( int width, int height );
00395 FGAPI void    FGAPIENTRY glutInitDisplayMode( unsigned int displayMode );
00396 FGAPI void    FGAPIENTRY glutInitDisplayString( const char* displayMode );
00397 
00398 /*
00399  * Process loop function, see freeglut_main.c
00400  */
00401 FGAPI void    FGAPIENTRY glutMainLoop( void );
00402 
00403 /*
00404  * Window management functions, see freeglut_window.c
00405  */
00406 FGAPI int     FGAPIENTRY glutCreateWindow( const char* title );
00407 FGAPI int     FGAPIENTRY glutCreateSubWindow( int window, int x, int y, int width, int height );
00408 FGAPI void    FGAPIENTRY glutDestroyWindow( int window );
00409 FGAPI void    FGAPIENTRY glutSetWindow( int window );
00410 FGAPI int     FGAPIENTRY glutGetWindow( void );
00411 FGAPI void    FGAPIENTRY glutSetWindowTitle( const char* title );
00412 FGAPI void    FGAPIENTRY glutSetIconTitle( const char* title );
00413 FGAPI void    FGAPIENTRY glutReshapeWindow( int width, int height );
00414 FGAPI void    FGAPIENTRY glutPositionWindow( int x, int y );
00415 FGAPI void    FGAPIENTRY glutShowWindow( void );
00416 FGAPI void    FGAPIENTRY glutHideWindow( void );
00417 FGAPI void    FGAPIENTRY glutIconifyWindow( void );
00418 FGAPI void    FGAPIENTRY glutPushWindow( void );
00419 FGAPI void    FGAPIENTRY glutPopWindow( void );
00420 FGAPI void    FGAPIENTRY glutFullScreen( void );
00421 
00422 /*
00423  * Display-connected functions, see freeglut_display.c
00424  */
00425 FGAPI void    FGAPIENTRY glutPostWindowRedisplay( int window );
00426 FGAPI void    FGAPIENTRY glutPostRedisplay( void );
00427 FGAPI void    FGAPIENTRY glutSwapBuffers( void );
00428 
00429 /*
00430  * Mouse cursor functions, see freeglut_cursor.c
00431  */
00432 FGAPI void    FGAPIENTRY glutWarpPointer( int x, int y );
00433 FGAPI void    FGAPIENTRY glutSetCursor( int cursor );
00434 
00435 /*
00436  * Overlay stuff, see freeglut_overlay.c
00437  */
00438 FGAPI void    FGAPIENTRY glutEstablishOverlay( void );
00439 FGAPI void    FGAPIENTRY glutRemoveOverlay( void );
00440 FGAPI void    FGAPIENTRY glutUseLayer( GLenum layer );
00441 FGAPI void    FGAPIENTRY glutPostOverlayRedisplay( void );
00442 FGAPI void    FGAPIENTRY glutPostWindowOverlayRedisplay( int window );
00443 FGAPI void    FGAPIENTRY glutShowOverlay( void );
00444 FGAPI void    FGAPIENTRY glutHideOverlay( void );
00445 
00446 /*
00447  * Menu stuff, see freeglut_menu.c
00448  */
00449 FGAPI int     FGAPIENTRY glutCreateMenu( void (* callback)( int menu ) );
00450 FGAPI void    FGAPIENTRY glutDestroyMenu( int menu );
00451 FGAPI int     FGAPIENTRY glutGetMenu( void );
00452 FGAPI void    FGAPIENTRY glutSetMenu( int menu );
00453 FGAPI void    FGAPIENTRY glutAddMenuEntry( const char* label, int value );
00454 FGAPI void    FGAPIENTRY glutAddSubMenu( const char* label, int subMenu );
00455 FGAPI void    FGAPIENTRY glutChangeToMenuEntry( int item, const char* label, int value );
00456 FGAPI void    FGAPIENTRY glutChangeToSubMenu( int item, const char* label, int value );
00457 FGAPI void    FGAPIENTRY glutRemoveMenuItem( int item );
00458 FGAPI void    FGAPIENTRY glutAttachMenu( int button );
00459 FGAPI void    FGAPIENTRY glutDetachMenu( int button );
00460 
00461 /*
00462  * Global callback functions, see freeglut_callbacks.c
00463  */
00464 FGAPI void    FGAPIENTRY glutTimerFunc( unsigned int time, void (* callback)( int ), int value );
00465 FGAPI void    FGAPIENTRY glutIdleFunc( void (* callback)( void ) );
00466 
00467 /*
00468  * Window-specific callback functions, see freeglut_callbacks.c
00469  */
00470 FGAPI void    FGAPIENTRY glutKeyboardFunc( void (* callback)( unsigned char, int, int ) );
00471 FGAPI void    FGAPIENTRY glutSpecialFunc( void (* callback)( int, int, int ) );
00472 FGAPI void    FGAPIENTRY glutReshapeFunc( void (* callback)( int, int ) );
00473 FGAPI void    FGAPIENTRY glutVisibilityFunc( void (* callback)( int ) );
00474 FGAPI void    FGAPIENTRY glutDisplayFunc( void (* callback)( void ) );
00475 FGAPI void    FGAPIENTRY glutMouseFunc( void (* callback)( int, int, int, int ) );
00476 FGAPI void    FGAPIENTRY glutMotionFunc( void (* callback)( int, int ) );
00477 FGAPI void    FGAPIENTRY glutPassiveMotionFunc( void (* callback)( int, int ) );
00478 FGAPI void    FGAPIENTRY glutEntryFunc( void (* callback)( int ) );
00479 
00480 FGAPI void    FGAPIENTRY glutKeyboardUpFunc( void (* callback)( unsigned char, int, int ) );
00481 FGAPI void    FGAPIENTRY glutSpecialUpFunc( void (* callback)( int, int, int ) );
00482 FGAPI void    FGAPIENTRY glutJoystickFunc( void (* callback)( unsigned int, int, int, int ), int pollInterval );
00483 FGAPI void    FGAPIENTRY glutMenuStateFunc( void (* callback)( int ) );
00484 FGAPI void    FGAPIENTRY glutMenuStatusFunc( void (* callback)( int, int, int ) );
00485 FGAPI void    FGAPIENTRY glutOverlayDisplayFunc( void (* callback)( void ) );
00486 FGAPI void    FGAPIENTRY glutWindowStatusFunc( void (* callback)( int ) );
00487 
00488 FGAPI void    FGAPIENTRY glutSpaceballMotionFunc( void (* callback)( int, int, int ) );
00489 FGAPI void    FGAPIENTRY glutSpaceballRotateFunc( void (* callback)( int, int, int ) );
00490 FGAPI void    FGAPIENTRY glutSpaceballButtonFunc( void (* callback)( int, int ) );
00491 FGAPI void    FGAPIENTRY glutButtonBoxFunc( void (* callback)( int, int ) );
00492 FGAPI void    FGAPIENTRY glutDialsFunc( void (* callback)( int, int ) );
00493 FGAPI void    FGAPIENTRY glutTabletMotionFunc( void (* callback)( int, int ) );
00494 FGAPI void    FGAPIENTRY glutTabletButtonFunc( void (* callback)( int, int, int, int ) );
00495 
00496 /*
00497  * State setting and retrieval functions, see freeglut_state.c
00498  */
00499 FGAPI int     FGAPIENTRY glutGet( GLenum query );
00500 FGAPI int     FGAPIENTRY glutDeviceGet( GLenum query );
00501 FGAPI int     FGAPIENTRY glutGetModifiers( void );
00502 FGAPI int     FGAPIENTRY glutLayerGet( GLenum query );
00503 
00504 /*
00505  * Font stuff, see freeglut_font.c
00506  */
00507 FGAPI void    FGAPIENTRY glutBitmapCharacter( void* font, int character );
00508 FGAPI int     FGAPIENTRY glutBitmapWidth( void* font, int character );
00509 FGAPI void    FGAPIENTRY glutStrokeCharacter( void* font, int character );
00510 FGAPI int     FGAPIENTRY glutStrokeWidth( void* font, int character );
00511 FGAPI int     FGAPIENTRY glutBitmapLength( void* font, const unsigned char* string );
00512 FGAPI int     FGAPIENTRY glutStrokeLength( void* font, const unsigned char* string );
00513 
00514 /*
00515  * Geometry functions, see freeglut_geometry.c
00516  */
00517 FGAPI void    FGAPIENTRY glutWireCube( GLdouble size );
00518 FGAPI void    FGAPIENTRY glutSolidCube( GLdouble size );
00519 FGAPI void    FGAPIENTRY glutWireSphere( GLdouble radius, GLint slices, GLint stacks );
00520 FGAPI void    FGAPIENTRY glutSolidSphere( GLdouble radius, GLint slices, GLint stacks );
00521 FGAPI void    FGAPIENTRY glutWireCone( GLdouble base, GLdouble height, GLint slices, GLint stacks );
00522 FGAPI void    FGAPIENTRY glutSolidCone( GLdouble base, GLdouble height, GLint slices, GLint stacks );
00523 
00524 FGAPI void    FGAPIENTRY glutWireTorus( GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings );
00525 FGAPI void    FGAPIENTRY glutSolidTorus( GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings );
00526 FGAPI void    FGAPIENTRY glutWireDodecahedron( void );
00527 FGAPI void    FGAPIENTRY glutSolidDodecahedron( void );
00528 FGAPI void    FGAPIENTRY glutWireOctahedron( void );
00529 FGAPI void    FGAPIENTRY glutSolidOctahedron( void );
00530 FGAPI void    FGAPIENTRY glutWireTetrahedron( void );
00531 FGAPI void    FGAPIENTRY glutSolidTetrahedron( void );
00532 FGAPI void    FGAPIENTRY glutWireIcosahedron( void );
00533 FGAPI void    FGAPIENTRY glutSolidIcosahedron( void );
00534 
00535 /*
00536  * Teapot rendering functions, found in freeglut_teapot.c
00537  */
00538 FGAPI void    FGAPIENTRY glutWireTeapot( GLdouble size );
00539 FGAPI void    FGAPIENTRY glutSolidTeapot( GLdouble size );
00540 
00541 /*
00542  * Game mode functions, see freeglut_gamemode.c
00543  */
00544 FGAPI void    FGAPIENTRY glutGameModeString( const char* string );
00545 FGAPI int     FGAPIENTRY glutEnterGameMode( void );
00546 FGAPI void    FGAPIENTRY glutLeaveGameMode( void );
00547 FGAPI int     FGAPIENTRY glutGameModeGet( GLenum query );
00548 
00549 /*
00550  * Video resize functions, see freeglut_videoresize.c
00551  */
00552 FGAPI int     FGAPIENTRY glutVideoResizeGet( GLenum query );
00553 FGAPI void    FGAPIENTRY glutSetupVideoResizing( void );
00554 FGAPI void    FGAPIENTRY glutStopVideoResizing( void );
00555 FGAPI void    FGAPIENTRY glutVideoResize( int x, int y, int width, int height );
00556 FGAPI void    FGAPIENTRY glutVideoPan( int x, int y, int width, int height );
00557 
00558 /*
00559  * Colormap functions, see freeglut_misc.c
00560  */
00561 FGAPI void    FGAPIENTRY glutSetColor( int color, GLfloat red, GLfloat green, GLfloat blue );
00562 FGAPI GLfloat FGAPIENTRY glutGetColor( int color, int component );
00563 FGAPI void    FGAPIENTRY glutCopyColormap( int window );
00564 
00565 /*
00566  * Misc keyboard and joystick functions, see freeglut_misc.c
00567  */
00568 FGAPI void    FGAPIENTRY glutIgnoreKeyRepeat( int ignore );
00569 FGAPI void    FGAPIENTRY glutSetKeyRepeat( int repeatMode );
00570 FGAPI void    FGAPIENTRY glutForceJoystickFunc( void );
00571 
00572 /*
00573  * Misc functions, see freeglut_misc.c
00574  */
00575 FGAPI int     FGAPIENTRY glutExtensionSupported( const char* extension );
00576 FGAPI void    FGAPIENTRY glutReportErrors( void );
00577 
00578 #ifdef __cplusplus
00579     }
00580 #endif
00581 
00582 /*** END OF FILE ***/
00583 
00584 #endif /* __FREEGLUT_STD_H__ */
00585 



Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN:exported at Tue Jan 25 21:56:31 UTC 2011