source: branch/egtra-stream-without-en_dec/gl/glut.sbp@ 673

Last change on this file since 673 was 497, checked in by イグトランス (egtra), 17 years ago

インクルードガードとその他不要な前処理定義などの削除

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