[1] | 1 | #ifndef _INC_GLUT
|
---|
| 2 | #define _INC_GLUT
|
---|
| 3 |
|
---|
| 4 | #include <GL/gl.sbp>
|
---|
| 5 | #include <GL/glu.sbp>
|
---|
| 6 |
|
---|
| 7 | Const GLUT_XLIB_IMPLEMENTATION = 13
|
---|
| 8 |
|
---|
| 9 | Const GLUT_RGB = 0
|
---|
| 10 | Const GLUT_RGBA = GLUT_RGB
|
---|
| 11 | Const GLUT_INDEX = 1
|
---|
| 12 | Const GLUT_SINGLE = 0
|
---|
| 13 | Const GLUT_DOUBLE = 2
|
---|
| 14 | Const GLUT_ACCUM = 4
|
---|
| 15 | Const GLUT_ALPHA = 8
|
---|
| 16 | Const GLUT_DEPTH = 16
|
---|
| 17 | Const GLUT_STENCIL = 32
|
---|
| 18 | Const GLUT_MULTISAMPLE = 128
|
---|
| 19 | Const GLUT_STEREO = 256
|
---|
| 20 | Const GLUT_LUMINANCE = 512
|
---|
| 21 |
|
---|
| 22 | Const GLUT_LEFT_BUTTON = 0
|
---|
| 23 | Const GLUT_MIDDLE_BUTTON = 1
|
---|
| 24 | Const GLUT_RIGHT_BUTTON = 2
|
---|
| 25 |
|
---|
| 26 | Const GLUT_DOWN = 0
|
---|
| 27 | Const GLUT_UP = 1
|
---|
| 28 |
|
---|
| 29 | Const GLUT_KEY_F1 = 1
|
---|
| 30 | Const GLUT_KEY_F2 = 2
|
---|
| 31 | Const GLUT_KEY_F3 = 3
|
---|
| 32 | Const GLUT_KEY_F4 = 4
|
---|
| 33 | Const GLUT_KEY_F5 = 5
|
---|
| 34 | Const GLUT_KEY_F6 = 6
|
---|
| 35 | Const GLUT_KEY_F7 = 7
|
---|
| 36 | Const GLUT_KEY_F8 = 8
|
---|
| 37 | Const GLUT_KEY_F9 = 9
|
---|
| 38 | Const GLUT_KEY_F10 = 10
|
---|
| 39 | Const GLUT_KEY_F11 = 11
|
---|
| 40 | Const GLUT_KEY_F12 = 12
|
---|
| 41 | Const GLUT_KEY_LEFT = 100
|
---|
| 42 | Const GLUT_KEY_UP = 101
|
---|
| 43 | Const GLUT_KEY_RIGHT = 102
|
---|
| 44 | Const GLUT_KEY_DOWN = 103
|
---|
| 45 | Const GLUT_KEY_PAGE_UP = 104
|
---|
| 46 | Const GLUT_KEY_PAGE_DOWN = 105
|
---|
| 47 | Const GLUT_KEY_HOME = 106
|
---|
| 48 | Const GLUT_KEY_END = 107
|
---|
| 49 | Const GLUT_KEY_INSERT = 108
|
---|
| 50 |
|
---|
| 51 | Const GLUT_LEFT = 0
|
---|
| 52 | Const GLUT_ENTERED = 1
|
---|
| 53 |
|
---|
| 54 | Const GLUT_MENU_NOT_IN_USE = 0
|
---|
| 55 | Const GLUT_MENU_IN_USE = 1
|
---|
| 56 |
|
---|
| 57 | Const GLUT_NOT_VISIBLE = 0
|
---|
| 58 | Const GLUT_VISIBLE = 1
|
---|
| 59 |
|
---|
| 60 | Const GLUT_HIDDEN = 0
|
---|
| 61 | Const GLUT_FULLY_RETAINED = 1
|
---|
| 62 | Const GLUT_PARTIALLY_RETAINED = 2
|
---|
| 63 | Const GLUT_FULLY_COVERED = 3
|
---|
| 64 |
|
---|
| 65 | Const GLUT_RED = 0
|
---|
| 66 | Const GLUT_GREEN = 1
|
---|
| 67 | Const GLUT_BLUE = 2
|
---|
| 68 |
|
---|
| 69 | Const GLUT_NORMAL = 0
|
---|
| 70 | Const GLUT_OVERLAY = 1
|
---|
| 71 |
|
---|
| 72 | Const GLUT_STROKE_ROMAN = 0
|
---|
| 73 | Const GLUT_STROKE_MONO_ROMAN = 1
|
---|
| 74 |
|
---|
| 75 | Const GLUT_BITMAP_9_BY_15 = 2
|
---|
| 76 | Const GLUT_BITMAP_8_BY_13 = 3
|
---|
| 77 | Const GLUT_BITMAP_TIMES_ROMAN_10 = 4
|
---|
| 78 | Const GLUT_BITMAP_TIMES_ROMAN_24 = 5
|
---|
| 79 | Const GLUT_BITMAP_HELVETICA_10 = 6
|
---|
| 80 | Const GLUT_BITMAP_HELVETICA_12 = 7
|
---|
| 81 | Const GLUT_BITMAP_HELVETICA_18 = 8
|
---|
| 82 |
|
---|
| 83 | Dim glutStrokeRoman As VoidPtr
|
---|
| 84 | Dim glutStrokeMonoRoman As VoidPtr
|
---|
| 85 |
|
---|
| 86 | Dim glutBitmap9By15 As VoidPtr
|
---|
| 87 | Dim glutBitmap8By13 As VoidPtr
|
---|
| 88 | Dim glutBitmapTimesRoman10 As VoidPtr
|
---|
| 89 | Dim glutBitmapTimesRoman24 As VoidPtr
|
---|
| 90 | Dim glutBitmapHelvetica10 As VoidPtr
|
---|
| 91 | Dim glutBitmapHelvetica12 As VoidPtr
|
---|
| 92 | Dim glutBitmapHelvetica18 As VoidPtr
|
---|
| 93 |
|
---|
| 94 | Const GLUT_WINDOW_X = 100
|
---|
| 95 | Const GLUT_WINDOW_Y = 101
|
---|
| 96 | Const GLUT_WINDOW_WIDTH = 102
|
---|
| 97 | Const GLUT_WINDOW_HEIGHT = 103
|
---|
| 98 | Const GLUT_WINDOW_BUFFER_SIZE = 104
|
---|
| 99 | Const GLUT_WINDOW_STENCIL_SIZE = 105
|
---|
| 100 | Const GLUT_WINDOW_DEPTH_SIZE = 106
|
---|
| 101 | Const GLUT_WINDOW_RED_SIZE = 107
|
---|
| 102 | Const GLUT_WINDOW_GREEN_SIZE = 108
|
---|
| 103 | Const GLUT_WINDOW_BLUE_SIZE = 109
|
---|
| 104 | Const GLUT_WINDOW_ALPHA_SIZE = 110
|
---|
| 105 | Const GLUT_WINDOW_ACCUM_RED_SIZE = 111
|
---|
| 106 | Const GLUT_WINDOW_ACCUM_GREEN_SIZE = 112
|
---|
| 107 | Const GLUT_WINDOW_ACCUM_BLUE_SIZE = 113
|
---|
| 108 | Const GLUT_WINDOW_ACCUM_ALPHA_SIZE = 114
|
---|
| 109 | Const GLUT_WINDOW_DOUBLEBUFFER = 115
|
---|
| 110 | Const GLUT_WINDOW_RGBA = 116
|
---|
| 111 | Const GLUT_WINDOW_PARENT = 117
|
---|
| 112 | Const GLUT_WINDOW_NUM_CHILDREN = 118
|
---|
| 113 | Const GLUT_WINDOW_COLORMAP_SIZE = 119
|
---|
| 114 | Const GLUT_WINDOW_NUM_SAMPLES = 120
|
---|
| 115 | Const GLUT_WINDOW_STEREO = 121
|
---|
| 116 | Const GLUT_WINDOW_CURSOR = 122
|
---|
| 117 | Const GLUT_SCREEN_WIDTH = 200
|
---|
| 118 | Const GLUT_SCREEN_HEIGHT = 201
|
---|
| 119 | Const GLUT_SCREEN_WIDTH_MM = 202
|
---|
| 120 | Const GLUT_SCREEN_HEIGHT_MM = 203
|
---|
| 121 | Const GLUT_MENU_NUM_ITEMS = 300
|
---|
| 122 | Const GLUT_DISPLAY_MODE_POSSIBLE = 400
|
---|
| 123 | Const GLUT_INIT_WINDOW_X = 500
|
---|
| 124 | Const GLUT_INIT_WINDOW_Y = 501
|
---|
| 125 | Const GLUT_INIT_WINDOW_WIDTH = 502
|
---|
| 126 | Const GLUT_INIT_WINDOW_HEIGHT = 503
|
---|
| 127 | Const GLUT_INIT_DISPLAY_MODE = 504
|
---|
| 128 | Const GLUT_ELAPSED_TIME = 700
|
---|
| 129 | Const GLUT_WINDOW_FORMAT_ID = 123
|
---|
| 130 |
|
---|
| 131 | Const GLUT_HAS_KEYBOARD = 600
|
---|
| 132 | Const GLUT_HAS_MOUSE = 601
|
---|
| 133 | Const GLUT_HAS_SPACEBALL = 602
|
---|
| 134 | Const GLUT_HAS_DIAL_AND_BUTTON_BOX = 603
|
---|
| 135 | Const GLUT_HAS_TABLET = 604
|
---|
| 136 | Const GLUT_NUM_MOUSE_BUTTONS = 605
|
---|
| 137 | Const GLUT_NUM_SPACEBALL_BUTTONS = 606
|
---|
| 138 | Const GLUT_NUM_BUTTON_BOX_BUTTONS = 607
|
---|
| 139 | Const GLUT_NUM_DIALS = 608
|
---|
| 140 | Const GLUT_NUM_TABLET_BUTTONS = 609
|
---|
| 141 | Const GLUT_DEVICE_IGNORE_KEY_REPEAT = 610
|
---|
| 142 | Const GLUT_DEVICE_KEY_REPEAT = 611
|
---|
| 143 | Const GLUT_HAS_JOYSTICK = 612
|
---|
| 144 | Const GLUT_OWNS_JOYSTICK = 613
|
---|
| 145 | Const GLUT_JOYSTICK_BUTTONS = 614
|
---|
| 146 | Const GLUT_JOYSTICK_AXES = 615
|
---|
| 147 | Const GLUT_JOYSTICK_POLL_RATE = 616
|
---|
| 148 |
|
---|
| 149 | Const GLUT_OVERLAY_POSSIBLE = 800
|
---|
| 150 | Const GLUT_LAYER_IN_USE = 801
|
---|
| 151 | Const GLUT_HAS_OVERLAY = 802
|
---|
| 152 | Const GLUT_TRANSPARENT_INDEX = 803
|
---|
| 153 | Const GLUT_NORMAL_DAMAGED = 804
|
---|
| 154 | Const GLUT_OVERLAY_DAMAGED = 805
|
---|
| 155 |
|
---|
| 156 | Const GLUT_VIDEO_RESIZE_POSSIBLE = 900
|
---|
| 157 | Const GLUT_VIDEO_RESIZE_IN_USE = 901
|
---|
| 158 | Const GLUT_VIDEO_RESIZE_X_DELTA = 902
|
---|
| 159 | Const GLUT_VIDEO_RESIZE_Y_DELTA = 903
|
---|
| 160 | Const GLUT_VIDEO_RESIZE_WIDTH_DELTA = 904
|
---|
| 161 | Const GLUT_VIDEO_RESIZE_HEIGHT_DELTA = 905
|
---|
| 162 | Const GLUT_VIDEO_RESIZE_X = 906
|
---|
| 163 | Const GLUT_VIDEO_RESIZE_Y = 907
|
---|
| 164 | Const GLUT_VIDEO_RESIZE_WIDTH = 908
|
---|
| 165 | Const GLUT_VIDEO_RESIZE_HEIGHT = 909
|
---|
| 166 |
|
---|
| 167 | Const GLUT_ACTIVE_SHIFT = 1
|
---|
| 168 | Const GLUT_ACTIVE_CTRL = 2
|
---|
| 169 | Const GLUT_ACTIVE_ALT = 4
|
---|
| 170 |
|
---|
| 171 | Const GLUT_CURSOR_RIGHT_ARROW = 0
|
---|
| 172 | Const GLUT_CURSOR_LEFT_ARROW = 1
|
---|
| 173 | Const GLUT_CURSOR_INFO = 2
|
---|
| 174 | Const GLUT_CURSOR_DESTROY = 3
|
---|
| 175 | Const GLUT_CURSOR_HELP = 4
|
---|
| 176 | Const GLUT_CURSOR_CYCLE = 5
|
---|
| 177 | Const GLUT_CURSOR_SPRAY = 6
|
---|
| 178 | Const GLUT_CURSOR_WAIT = 7
|
---|
| 179 | Const GLUT_CURSOR_TEXT = 8
|
---|
| 180 | Const GLUT_CURSOR_CROSSHAIR = 9
|
---|
| 181 | Const GLUT_CURSOR_UP_DOWN = 10
|
---|
| 182 | Const GLUT_CURSOR_LEFT_RIGHT = 11
|
---|
| 183 | Const GLUT_CURSOR_TOP_SIDE = 12
|
---|
| 184 | Const GLUT_CURSOR_BOTTOM_SIDE = 13
|
---|
| 185 | Const GLUT_CURSOR_LEFT_SIDE = 14
|
---|
| 186 | Const GLUT_CURSOR_RIGHT_SIDE = 15
|
---|
| 187 | Const GLUT_CURSOR_TOP_LEFT_CORNER = 16
|
---|
| 188 | Const GLUT_CURSOR_TOP_RIGHT_CORNER = 17
|
---|
| 189 | Const GLUT_CURSOR_BOTTOM_RIGHT_CORNER = 18
|
---|
| 190 | Const GLUT_CURSOR_BOTTOM_LEFT_CORNER = 19
|
---|
| 191 | Const GLUT_CURSOR_INHERIT = 100
|
---|
| 192 | Const GLUT_CURSOR_NONE = 101
|
---|
| 193 | Const GLUT_CURSOR_FULL_CROSSHAIR = 102
|
---|
| 194 |
|
---|
| 195 | Declare Sub glutInit Lib "glut32" (argcp As *Long, argv As *PSTR)
|
---|
| 196 | Declare Sub glutInitDisplayMode Lib "glut32" (mode As DWord)
|
---|
| 197 | Declare Sub glutInitDisplayString Lib "glut32" (pstring As PSTR)
|
---|
| 198 | Declare Sub glutInitWindowPosition Lib "glut32" (x As Long, y As Long)
|
---|
| 199 | Declare Sub glutInitWindowSize Lib "glut32" (width As Long, height As Long)
|
---|
| 200 | Declare Sub glutMainLoop Lib "glut32" ()
|
---|
| 201 | Declare Function glutCreateWindow Lib "glut32" (title As PSTR) As Long
|
---|
| 202 | Declare Function glutCreateSubWindow Lib "glut32" (win As Long, x As Long, y As Long, width As Long, height As Long) As Long
|
---|
| 203 | Declare Sub glutDestroyWindow Lib "glut32" (win As Long)
|
---|
| 204 | Declare Sub glutPostRedisplay Lib "glut32" ()
|
---|
| 205 | Declare Sub glutPostWindowRedisplay Lib "glut32" (win As Long)
|
---|
| 206 | Declare Sub glutSwapBuffers Lib "glut32" ()
|
---|
| 207 | Declare Function glutGetWindow Lib "glut32" () As Long
|
---|
| 208 | Declare Sub glutSetWindow Lib "glut32" (win As Long)
|
---|
| 209 | Declare Sub glutSetWindowTitle Lib "glut32" (title As PSTR)
|
---|
| 210 | Declare Sub glutSetIconTitle Lib "glut32" (title As PSTR)
|
---|
| 211 | Declare Sub glutPositionWindow Lib "glut32" (x As Long, y As Long)
|
---|
| 212 | Declare Sub glutReshapeWindow Lib "glut32" (width As Long, height As Long)
|
---|
| 213 | Declare Sub glutPopWindow Lib "glut32" ()
|
---|
| 214 | Declare Sub glutPushWindow Lib "glut32" ()
|
---|
| 215 | Declare Sub glutIconifyWindow Lib "glut32" ()
|
---|
| 216 | Declare Sub glutShowWindow Lib "glut32" ()
|
---|
| 217 | Declare Sub glutHideWindow Lib "glut32" ()
|
---|
| 218 | Declare Sub glutFullScreen Lib "glut32" ()
|
---|
| 219 | Declare Sub glutSetCursor Lib "glut32" (cursor As Long)
|
---|
| 220 | Declare Sub glutWarpPointer Lib "glut32" (x As Long, y As Long)
|
---|
| 221 | Declare Sub glutEstablishOverlay Lib "glut32" ()
|
---|
| 222 | Declare Sub glutRemoveOverlay Lib "glut32" ()
|
---|
| 223 | Declare Sub glutUseLayer Lib "glut32" (layer As GLenum)
|
---|
| 224 | Declare Sub glutPostOverlayRedisplay Lib "glut32" ()
|
---|
| 225 | Declare Sub glutPostWindowOverlayRedisplay Lib "glut32" (win As Long)
|
---|
| 226 | Declare Sub glutShowOverlay Lib "glut32" ()
|
---|
| 227 | Declare Sub glutHideOverlay Lib "glut32" ()
|
---|
| 228 | Declare Function glutCreateMenu Lib "glut32" (i As VoidPtr) As Long
|
---|
| 229 | Declare Sub glutDestroyMenu Lib "glut32" (menu As Long)
|
---|
| 230 | Declare Function glutGetMenu Lib "glut32" () As Long
|
---|
| 231 | Declare Sub glutSetMenu Lib "glut32" (menu As Long)
|
---|
| 232 | Declare Sub glutAddMenuEntry Lib "glut32" (label As PSTR, value As Long)
|
---|
| 233 | Declare Sub glutAddSubMenu Lib "glut32" (label As PSTR, submenu As Long)
|
---|
| 234 | Declare Sub glutChangeToMenuEntry Lib "glut32" (item As Long, label As PSTR, value As Long)
|
---|
| 235 | Declare Sub glutChangeToSubMenu Lib "glut32" (item As Long, label As PSTR, submenu As Long)
|
---|
| 236 | Declare Sub glutRemoveMenuItem Lib "glut32" (item As Long)
|
---|
| 237 | Declare Sub glutAttachMenu Lib "glut32" (button As Long)
|
---|
| 238 | Declare Sub glutDetachMenu Lib "glut32" (button As Long)
|
---|
| 239 | TypeDef LPDISPLAYFUNC = *Sub()
|
---|
| 240 | Declare Sub glutDisplayFunc Lib "glut32" (func As LPDISPLAYFUNC)
|
---|
| 241 | TypeDef LPRESHAPEFUNC = *Sub(width As Long, height As Long)
|
---|
| 242 | Declare Sub glutReshapeFunc Lib "glut32" (func As LPRESHAPEFUNC)
|
---|
| 243 | TypeDef LPKEYBOARDFUNC = *Sub(key As Byte, x As Long, y As Long)
|
---|
| 244 | Declare Sub glutKeyboardFunc Lib "glut32" (func As LPKEYBOARDFUNC)
|
---|
| 245 | TypeDef LPMOUSEFUNC = *Sub(button As Long, state As Long, x As Long, y As Long)
|
---|
| 246 | Declare Sub glutMouseFunc Lib "glut32" (func As LPMOUSEFUNC)
|
---|
| 247 | TypeDef LPMOTIONFUNC = *Sub(x As Long, y As Long)
|
---|
| 248 | Declare Sub glutMotionFunc Lib "glut32" (func As LPMOTIONFUNC)
|
---|
| 249 | TypeDef LPPASSIVEMOTIONFUNC = *Sub(x As Long, y As Long)
|
---|
| 250 | Declare Sub glutPassiveMotionFunc Lib "glut32" (func As LPPASSIVEMOTIONFUNC)
|
---|
| 251 | TypeDef LPENTRYFUNC = *Sub(state As Long)
|
---|
| 252 | Declare Sub glutEntryFunc Lib "glut32" (func As LPENTRYFUNC)
|
---|
| 253 | TypeDef LPVISIBILITYFUNC = *Sub(state As Long)
|
---|
| 254 | Declare Sub glutVisibilityFunc Lib "glut32" (func As LPVISIBILITYFUNC)
|
---|
| 255 | TypeDef LPIDLEFUNC = *Sub()
|
---|
| 256 | Declare Sub glutIdleFunc Lib "glut32" (func As LPIDLEFUNC)
|
---|
| 257 | TypeDef LPTIMERFUNC = *Sub(value As Long)
|
---|
| 258 | Declare Sub glutTimerFunc Lib "glut32" (millis As DWord, func As LPTIMERFUNC, value As Long)
|
---|
| 259 | TypeDef LPMENUSTATEFUNC = *Sub(state As Long)
|
---|
| 260 | Declare Sub glutMenuStateFunc Lib "glut32" (func As LPMENUSTATEFUNC)
|
---|
| 261 | TypeDef LPSPECIALFUNC = *Sub(int key, x As Long, y As Long)
|
---|
| 262 | Declare Sub glutSpecialFunc Lib "glut32" (func As LPSPECIALFUNC)
|
---|
| 263 | TypeDef LPSPACEBALLMOTIONFUNC = *Sub(x As Long, y As Long, int z)
|
---|
| 264 | Declare Sub glutSpaceballMotionFunc Lib "glut32" (func As LPSPACEBALLMOTIONFUNC)
|
---|
| 265 | TypeDef LPSPACEBALLROTATEFUNC = *Sub(x As Long, y As Long, int z)
|
---|
| 266 | Declare Sub glutSpaceballRotateFunc Lib "glut32" (func As LPSPACEBALLROTATEFUNC)
|
---|
| 267 | TypeDef LPSPACEBALLBUTTONFUNC = *Sub(button As Long, state As Long)
|
---|
| 268 | Declare Sub glutSpaceballButtonFunc Lib "glut32" (func As LPSPACEBALLBUTTONFUNC)
|
---|
| 269 | TypeDef LPBUTTONBOXFUNC = *Sub(button As Long, state As Long)
|
---|
| 270 | Declare Sub glutButtonBoxFunc Lib "glut32" (func As LPBUTTONBOXFUNC)
|
---|
| 271 | TypeDef LPDIALSFUNC = *Sub(dial As Long, value As Long)
|
---|
| 272 | Declare Sub glutDialsFunc Lib "glut32" (func As LPDIALSFUNC)
|
---|
| 273 | TypeDef LPTABLETMOTIONFUNC = *Sub(x As Long, y As Long)
|
---|
| 274 | Declare Sub glutTabletMotionFunc Lib "glut32" (func As LPTABLETMOTIONFUNC)
|
---|
| 275 | TypeDef LPTABLETBUTTONFUNC = *Sub(button As Long, state As Long, x As Long, y As Long)
|
---|
| 276 | Declare Sub glutTabletButtonFunc Lib "glut32" (func As LPTABLETBUTTONFUNC)
|
---|
| 277 | TypeDef LPMENUSTATUSFUNC = *Sub(int status, x As Long, y As Long)
|
---|
| 278 | Declare Sub glutMenuStatusFunc Lib "glut32" (func As LPMENUSTATUSFUNC)
|
---|
| 279 | TypeDef LPOVERLAYDISPLAYFUNC = *Sub()
|
---|
| 280 | Declare Sub glutOverlayDisplayFunc Lib "glut32" (func As LPOVERLAYDISPLAYFUNC)
|
---|
| 281 | TypeDef LPWINDOWSTATUSFUNC = *Sub(state As Long)
|
---|
| 282 | Declare Sub glutWindowStatusFunc Lib "glut32" (func As LPWINDOWSTATUSFUNC)
|
---|
| 283 | TypeDef LPKEYBOARDUPFUNC = *Sub(key As Byte, x As Long, y As Long)
|
---|
| 284 | Declare Sub glutKeyboardUpFunc Lib "glut32" (func As LPKEYBOARDUPFUNC)
|
---|
| 285 | TypeDef LPSPECIALUPFUNC = *Sub(int key, x As Long, y As Long)
|
---|
| 286 | Declare Sub glutSpecialUpFunc Lib "glut32" (func As LPSPECIALUPFUNC)
|
---|
| 287 | TypeDef LPJOYSTICKFUNC = *Sub(unsigned button As LongMask, x As Long, y As Long, int z)
|
---|
| 288 | Declare Sub glutJoystickFunc Lib "glut32" (func As LPJOYSTICKFUNC, pollInterval As Long)
|
---|
| 289 | Declare Sub glutSetColor Lib "glut32" (i As Long, red As GLfloat, green As GLfloat, blue As GLfloat)
|
---|
| 290 | Declare Function glutGetColor Lib "glut32" (ndx As Long, component As Long) As GLfloat
|
---|
| 291 | Declare Sub glutCopyColormap Lib "glut32" (win As Long)
|
---|
| 292 | Declare Function glutGet Lib "glut32" (type_ As GLenum) As Long
|
---|
| 293 | Declare Function glutDeviceGet Lib "glut32" (type_ As GLenum) As Long
|
---|
| 294 | Declare Function glutExtensionSupported Lib "glut32" (name As PSTR) As Long
|
---|
| 295 | Declare Function glutGetModifiers Lib "glut32" () As Long
|
---|
| 296 | Declare Function glutLayerGet Lib "glut32" (type_ As GLenum) As Long
|
---|
| 297 | Declare Sub glutBitmapCharacter Lib "glut32" (font As VoidPtr, character As Long)
|
---|
| 298 | Declare Function glutBitmapWidth Lib "glut32" (font As VoidPtr, character As Long) As Long
|
---|
| 299 | Declare Sub glutStrokeCharacter Lib "glut32" (font As VoidPtr, character As Long)
|
---|
| 300 | Declare Function glutStrokeWidth Lib "glut32" (font As VoidPtr, character As Long) As Long
|
---|
| 301 | Declare Function glutBitmapLength Lib "glut32" (font As VoidPtr, pstring As *Byte) As Long
|
---|
| 302 | Declare Function glutStrokeLength Lib "glut32" (font As VoidPtr, pstring As *Byte) As Long
|
---|
| 303 | Declare Sub glutWireSphere Lib "glut32" (radius As GLdouble, slices As GLint, stacks As GLint)
|
---|
| 304 | Declare Sub glutSolidSphere Lib "glut32" (radius As GLdouble, slices As GLint, stacks As GLint)
|
---|
| 305 | Declare Sub glutWireCone Lib "glut32" (base As GLdouble, height As GLdouble, slices As GLint, stacks As GLint)
|
---|
| 306 | Declare Sub glutSolidCone Lib "glut32" (base As GLdouble, height As GLdouble, slices As GLint, stacks As GLint)
|
---|
| 307 | Declare Sub glutWireCube Lib "glut32" (size As GLdouble)
|
---|
| 308 | Declare Sub glutSolidCube Lib "glut32" (size As GLdouble)
|
---|
| 309 | Declare Sub glutWireTorus Lib "glut32" (innerRadius As GLdouble, outerRadius As GLdouble, sides As GLint, rings As GLint)
|
---|
| 310 | Declare Sub glutSolidTorus Lib "glut32" (innerRadius As GLdouble, outerRadius As GLdouble, sides As GLint, rings As GLint)
|
---|
| 311 | Declare Sub glutWireDodecahedron Lib "glut32" ()
|
---|
| 312 | Declare Sub glutSolidDodecahedron Lib "glut32" ()
|
---|
| 313 | Declare Sub glutWireTeapot Lib "glut32" (size As GLdouble)
|
---|
| 314 | Declare Sub glutSolidTeapot Lib "glut32" (size As GLdouble)
|
---|
| 315 | Declare Sub glutWireOctahedron Lib "glut32" ()
|
---|
| 316 | Declare Sub glutSolidOctahedron Lib "glut32" ()
|
---|
| 317 | Declare Sub glutWireTetrahedron Lib "glut32" ()
|
---|
| 318 | Declare Sub glutSolidTetrahedron Lib "glut32" ()
|
---|
| 319 | Declare Sub glutWireIcosahedron Lib "glut32" ()
|
---|
| 320 | Declare Sub glutSolidIcosahedron Lib "glut32" ()
|
---|
| 321 | Declare Function glutVideoResizeGet Lib "glut32" (param As GLenum) As Long
|
---|
| 322 | Declare Sub glutSetupVideoResizing Lib "glut32" ()
|
---|
| 323 | Declare Sub glutStopVideoResizing Lib "glut32" ()
|
---|
| 324 | Declare Sub glutVideoResize Lib "glut32" (x As Long, y As Long, width As Long, height As Long)
|
---|
| 325 | Declare Sub glutVideoPan Lib "glut32" (x As Long, y As Long, width As Long, height As Long)
|
---|
| 326 | Declare Sub glutReportErrors Lib "glut32" ()
|
---|
| 327 |
|
---|
| 328 | Const GLUT_KEY_REPEAT_OFF = 0
|
---|
| 329 | Const GLUT_KEY_REPEAT_ON = 1
|
---|
| 330 | Const GLUT_KEY_REPEAT_DEFAULT = 2
|
---|
| 331 |
|
---|
| 332 | Const GLUT_JOYSTICK_BUTTON_A = 1
|
---|
| 333 | Const GLUT_JOYSTICK_BUTTON_B = 2
|
---|
| 334 | Const GLUT_JOYSTICK_BUTTON_C = 4
|
---|
| 335 | Const GLUT_JOYSTICK_BUTTON_D = 8
|
---|
| 336 |
|
---|
| 337 | Declare Sub glutIgnoreKeyRepeat Lib "glut32" (ignore As Long)
|
---|
| 338 | Declare Sub glutSetKeyRepeat Lib "glut32" (repeatMode As Long)
|
---|
| 339 | Declare Sub glutForceJoystickFunc Lib "glut32" ()
|
---|
| 340 |
|
---|
| 341 | Const GLUT_GAME_MODE_ACTIVE = 0
|
---|
| 342 | Const GLUT_GAME_MODE_POSSIBLE = 1
|
---|
| 343 | Const GLUT_GAME_MODE_WIDTH = 2
|
---|
| 344 | Const GLUT_GAME_MODE_HEIGHT = 3
|
---|
| 345 | Const GLUT_GAME_MODE_PIXEL_DEPTH = 4
|
---|
| 346 | Const GLUT_GAME_MODE_REFRESH_RATE = 5
|
---|
| 347 | Const GLUT_GAME_MODE_DISPLAY_CHANGED = 6
|
---|
| 348 |
|
---|
| 349 | Declare Sub glutGameModeString Lib "glut32" (pstring As PSTR)
|
---|
| 350 | Declare Function glutEnterGameMode Lib "glut32" () As Long
|
---|
| 351 | Declare Sub glutLeaveGameMode Lib "glut32" ()
|
---|
| 352 | Declare Function glutGameModeGet Lib "glut32" (mode As GLenum) As Long
|
---|
| 353 |
|
---|
| 354 | #endif '_INC_GLUT
|
---|