| 1 |
#ifndef __FREEGLUT_EXT_H__ |
| 2 |
#define __FREEGLUT_EXT_H__ |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
#ifdef __cplusplus |
| 32 |
extern "C" { |
| 33 |
#endif |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
#define GLUT_KEY_NUM_LOCK 0x006D |
| 39 |
#define GLUT_KEY_BEGIN 0x006E |
| 40 |
#define GLUT_KEY_DELETE 0x006F |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
#define GLUT_ACTION_EXIT 0 |
| 46 |
#define GLUT_ACTION_GLUTMAINLOOP_RETURNS 1 |
| 47 |
#define GLUT_ACTION_CONTINUE_EXECUTION 2 |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
#define GLUT_CREATE_NEW_CONTEXT 0 |
| 53 |
#define GLUT_USE_CURRENT_CONTEXT 1 |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
#define GLUT_FORCE_INDIRECT_CONTEXT 0 |
| 59 |
#define GLUT_ALLOW_DIRECT_CONTEXT 1 |
| 60 |
#define GLUT_TRY_DIRECT_CONTEXT 2 |
| 61 |
#define GLUT_FORCE_DIRECT_CONTEXT 3 |
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
#define GLUT_INIT_STATE 0x007C |
| 67 |
|
| 68 |
#define GLUT_ACTION_ON_WINDOW_CLOSE 0x01F9 |
| 69 |
|
| 70 |
#define GLUT_WINDOW_BORDER_WIDTH 0x01FA |
| 71 |
#define GLUT_WINDOW_HEADER_HEIGHT 0x01FB |
| 72 |
|
| 73 |
#define GLUT_VERSION 0x01FC |
| 74 |
|
| 75 |
#define GLUT_RENDERING_CONTEXT 0x01FD |
| 76 |
#define GLUT_DIRECT_RENDERING 0x01FE |
| 77 |
|
| 78 |
#define GLUT_FULL_SCREEN 0x01FF |
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
#define GLUT_AUX 0x1000 |
| 86 |
|
| 87 |
#define GLUT_AUX1 0x1000 |
| 88 |
#define GLUT_AUX2 0x2000 |
| 89 |
#define GLUT_AUX3 0x4000 |
| 90 |
#define GLUT_AUX4 0x8000 |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
#define GLUT_INIT_MAJOR_VERSION 0x0200 |
| 96 |
#define GLUT_INIT_MINOR_VERSION 0x0201 |
| 97 |
#define GLUT_INIT_FLAGS 0x0202 |
| 98 |
#define GLUT_INIT_PROFILE 0x0203 |
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
#define GLUT_DEBUG 0x0001 |
| 104 |
#define GLUT_FORWARD_COMPATIBLE 0x0002 |
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
#define GLUT_CORE_PROFILE 0x0001 |
| 111 |
#define GLUT_COMPATIBILITY_PROFILE 0x0002 |
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
FGAPI void FGAPIENTRY glutMainLoopEvent( void ); |
| 117 |
FGAPI void FGAPIENTRY glutLeaveMainLoop( void ); |
| 118 |
FGAPI void FGAPIENTRY glutExit ( void ); |
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
FGAPI void FGAPIENTRY glutFullScreenToggle( void ); |
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
FGAPI void FGAPIENTRY glutMouseWheelFunc( void (* callback)( int, int, int, int ) ); |
| 129 |
FGAPI void FGAPIENTRY glutCloseFunc( void (* callback)( void ) ); |
| 130 |
FGAPI void FGAPIENTRY glutWMCloseFunc( void (* callback)( void ) ); |
| 131 |
|
| 132 |
FGAPI void FGAPIENTRY glutMenuDestroyFunc( void (* callback)( void ) ); |
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
FGAPI void FGAPIENTRY glutSetOption ( GLenum option_flag, int value ); |
| 138 |
FGAPI int * FGAPIENTRY glutGetModeValues(GLenum mode, int * size); |
| 139 |
|
| 140 |
FGAPI void* FGAPIENTRY glutGetWindowData( void ); |
| 141 |
FGAPI void FGAPIENTRY glutSetWindowData(void* data); |
| 142 |
FGAPI void* FGAPIENTRY glutGetMenuData( void ); |
| 143 |
FGAPI void FGAPIENTRY glutSetMenuData(void* data); |
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
FGAPI int FGAPIENTRY glutBitmapHeight( void* font ); |
| 149 |
FGAPI GLfloat FGAPIENTRY glutStrokeHeight( void* font ); |
| 150 |
FGAPI void FGAPIENTRY glutBitmapString( void* font, const unsigned char *string ); |
| 151 |
FGAPI void FGAPIENTRY glutStrokeString( void* font, const unsigned char *string ); |
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
FGAPI void FGAPIENTRY glutWireRhombicDodecahedron( void ); |
| 157 |
FGAPI void FGAPIENTRY glutSolidRhombicDodecahedron( void ); |
| 158 |
FGAPI void FGAPIENTRY glutWireSierpinskiSponge ( int num_levels, GLdouble offset[3], GLdouble scale ); |
| 159 |
FGAPI void FGAPIENTRY glutSolidSierpinskiSponge ( int num_levels, GLdouble offset[3], GLdouble scale ); |
| 160 |
FGAPI void FGAPIENTRY glutWireCylinder( GLdouble radius, GLdouble height, GLint slices, GLint stacks); |
| 161 |
FGAPI void FGAPIENTRY glutSolidCylinder( GLdouble radius, GLdouble height, GLint slices, GLint stacks); |
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
typedef void (*GLUTproc)(); |
| 167 |
FGAPI GLUTproc FGAPIENTRY glutGetProcAddress( const char *procName ); |
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
|
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
int glutJoystickGetNumAxes( int ident ); |
| 179 |
int glutJoystickGetNumButtons( int ident ); |
| 180 |
int glutJoystickNotWorking( int ident ); |
| 181 |
float glutJoystickGetDeadBand( int ident, int axis ); |
| 182 |
void glutJoystickSetDeadBand( int ident, int axis, float db ); |
| 183 |
float glutJoystickGetSaturation( int ident, int axis ); |
| 184 |
void glutJoystickSetSaturation( int ident, int axis, float st ); |
| 185 |
void glutJoystickSetMinRange( int ident, float *axes ); |
| 186 |
void glutJoystickSetMaxRange( int ident, float *axes ); |
| 187 |
void glutJoystickSetCenter( int ident, float *axes ); |
| 188 |
void glutJoystickGetMinRange( int ident, float *axes ); |
| 189 |
void glutJoystickGetMaxRange( int ident, float *axes ); |
| 190 |
void glutJoystickGetCenter( int ident, float *axes ); |
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
FGAPI void FGAPIENTRY glutInitContextVersion( int majorVersion, int minorVersion ); |
| 196 |
FGAPI void FGAPIENTRY glutInitContextFlags( int flags ); |
| 197 |
FGAPI void FGAPIENTRY glutInitContextProfile( int profile ); |
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
#define GLUT_CAPTIONLESS 0x0400 |
| 203 |
#define GLUT_BORDERLESS 0x0800 |
| 204 |
#define GLUT_SRGB 0x1000 |
| 205 |
|
| 206 |
#ifdef __cplusplus |
| 207 |
} |
| 208 |
#endif |
| 209 |
|
| 210 |
|
| 211 |
|
| 212 |
#endif |