opengl-bindings 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +6 -0
- data/README.md +7 -4
- data/lib/glut.rb +237 -37
- data/lib/opengl_enum.rb +29 -29
- data/lib/opengl_es_enum.rb +6 -6
- data/lib/opengl_es_ext_command.rb +264 -264
- data/lib/opengl_es_ext_enum.rb +265 -265
- data/lib/opengl_ext_command.rb +954 -954
- data/lib/opengl_ext_common.rb +13 -4
- data/lib/opengl_ext_enum.rb +967 -967
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c891bb415f20efd17002e8891f04710135919229
|
4
|
+
data.tar.gz: 6cd872d36120ff08b88559ec1e3a7c9b78688377
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c6f4aa2a6f303100c866e9de1189b526c266a5f309e8a0e024bef996280955357b82a8e6788474aa42517762cc097d938a62ecefd1d0cf47ce620d87908ebf1
|
7
|
+
data.tar.gz: d83e263dfda494a43f99c25c76280d23c275d46a0eb7c23f2a40589c08cd690de133fdc5fc5b804efc8b1d591cd9338052b730fcbf4276a2bc8518f034157df8
|
data/ChangeLog
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
2014-01-01 vaiorabbit <https://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* glut.rb: Now supports API Level 4 (GLUT_API_VERSION = 4).
|
4
|
+
* generator : [BUGFIX] some enums aren't extracted correctly.
|
5
|
+
* opengl_ext_common.rb : Added OpenGL.setup_extension_all().
|
6
|
+
|
1
7
|
2013-12-31 vaiorabbit <https://twitter.com/vaiorabbit>
|
2
8
|
|
3
9
|
* Updated using latest gl.xml.
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
...and wrapper code generator.
|
6
6
|
|
7
7
|
* Created : 2013-08-28
|
8
|
-
* Last modified :
|
8
|
+
* Last modified : 2014-01-01
|
9
9
|
|
10
10
|
|
11
11
|
## Features ##
|
@@ -59,7 +59,7 @@ https://github.com/vaiorabbit/ruby-opengl
|
|
59
59
|
* My handwirtten GLFW wrapper.
|
60
60
|
|
61
61
|
* 'glut.rb'
|
62
|
-
*
|
62
|
+
* GLUT wrapper. Supports API Level 4 (GLUT_API_VERSION = 4).
|
63
63
|
|
64
64
|
* 'glu.rb'
|
65
65
|
* My handwirtten GLU wrapper.
|
@@ -100,6 +100,7 @@ https://github.com/vaiorabbit/ruby-opengl
|
|
100
100
|
## Tested Environment ##
|
101
101
|
|
102
102
|
* Ruby
|
103
|
+
* ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin12.0]
|
103
104
|
* ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin13.0.0]
|
104
105
|
* ruby 2.0.0p247 (2013-06-27) [i386-mingw32]
|
105
106
|
|
@@ -230,7 +231,8 @@ https://github.com/vaiorabbit/ruby-opengl
|
|
230
231
|
* GLFW のラッパーコードです(自動生成ではありません)。
|
231
232
|
|
232
233
|
* 'glut.rb'
|
233
|
-
* GLUT
|
234
|
+
* GLUT ラッパー。API Level 4 までサポートしています (GLUT_API_VERSION = 4)。
|
235
|
+
|
234
236
|
|
235
237
|
* 'glu.rb'
|
236
238
|
* GLU のラッパーコードです(自動生成ではありません)。
|
@@ -271,7 +273,8 @@ https://github.com/vaiorabbit/ruby-opengl
|
|
271
273
|
## テストした環境 ##
|
272
274
|
|
273
275
|
* Ruby
|
274
|
-
* ruby 2.
|
276
|
+
* ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin12.0]
|
277
|
+
* ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin13.0.0]
|
275
278
|
* ruby 2.0.0p247 (2013-06-27) [i386-mingw32]
|
276
279
|
|
277
280
|
* Windows 7 Home Premium, 64-bit (Service Pack 1)
|
data/lib/glut.rb
CHANGED
@@ -35,6 +35,9 @@ module GLUT
|
|
35
35
|
end
|
36
36
|
|
37
37
|
# defines
|
38
|
+
|
39
|
+
GLUT_API_VERSION = 4
|
40
|
+
|
38
41
|
GLUT_KEY_F1 = 0x0001
|
39
42
|
GLUT_KEY_F2 = 0x0002
|
40
43
|
GLUT_KEY_F3 = 0x0003
|
@@ -87,22 +90,165 @@ module GLUT
|
|
87
90
|
GLUT_PARTIALLY_RETAINED = 0x0002
|
88
91
|
GLUT_FULLY_COVERED = 0x0003
|
89
92
|
|
93
|
+
GLUT_WINDOW_X = 0x0064
|
94
|
+
GLUT_WINDOW_Y = 0x0065
|
95
|
+
GLUT_WINDOW_WIDTH = 0x0066
|
96
|
+
GLUT_WINDOW_HEIGHT = 0x0067
|
97
|
+
GLUT_WINDOW_BUFFER_SIZE = 0x0068
|
98
|
+
GLUT_WINDOW_STENCIL_SIZE = 0x0069
|
99
|
+
GLUT_WINDOW_DEPTH_SIZE = 0x006A
|
100
|
+
GLUT_WINDOW_RED_SIZE = 0x006B
|
101
|
+
GLUT_WINDOW_GREEN_SIZE = 0x006C
|
102
|
+
GLUT_WINDOW_BLUE_SIZE = 0x006D
|
103
|
+
GLUT_WINDOW_ALPHA_SIZE = 0x006E
|
104
|
+
GLUT_WINDOW_ACCUM_RED_SIZE = 0x006F
|
105
|
+
GLUT_WINDOW_ACCUM_GREEN_SIZE = 0x0070
|
106
|
+
GLUT_WINDOW_ACCUM_BLUE_SIZE = 0x0071
|
107
|
+
GLUT_WINDOW_ACCUM_ALPHA_SIZE = 0x0072
|
108
|
+
GLUT_WINDOW_DOUBLEBUFFER = 0x0073
|
109
|
+
GLUT_WINDOW_RGBA = 0x0074
|
110
|
+
GLUT_WINDOW_PARENT = 0x0075
|
111
|
+
GLUT_WINDOW_NUM_CHILDREN = 0x0076
|
112
|
+
GLUT_WINDOW_COLORMAP_SIZE = 0x0077
|
113
|
+
GLUT_WINDOW_NUM_SAMPLES = 0x0078
|
114
|
+
GLUT_WINDOW_STEREO = 0x0079
|
115
|
+
GLUT_WINDOW_CURSOR = 0x007A
|
116
|
+
|
117
|
+
GLUT_SCREEN_WIDTH = 0x00C8
|
118
|
+
GLUT_SCREEN_HEIGHT = 0x00C9
|
119
|
+
GLUT_SCREEN_WIDTH_MM = 0x00CA
|
120
|
+
GLUT_SCREEN_HEIGHT_MM = 0x00CB
|
121
|
+
GLUT_MENU_NUM_ITEMS = 0x012C
|
122
|
+
GLUT_DISPLAY_MODE_POSSIBLE = 0x0190
|
123
|
+
GLUT_INIT_WINDOW_X = 0x01F4
|
124
|
+
GLUT_INIT_WINDOW_Y = 0x01F5
|
125
|
+
GLUT_INIT_WINDOW_WIDTH = 0x01F6
|
126
|
+
GLUT_INIT_WINDOW_HEIGHT = 0x01F7
|
127
|
+
GLUT_INIT_DISPLAY_MODE = 0x01F8
|
128
|
+
GLUT_ELAPSED_TIME = 0x02BC
|
129
|
+
GLUT_WINDOW_FORMAT_ID = 0x007B
|
130
|
+
GLUT_INIT_STATE = 0x007C
|
131
|
+
|
132
|
+
GLUT_HAS_KEYBOARD = 0x0258
|
133
|
+
GLUT_HAS_MOUSE = 0x0259
|
134
|
+
GLUT_HAS_SPACEBALL = 0x025A
|
135
|
+
GLUT_HAS_DIAL_AND_BUTTON_BOX = 0x025B
|
136
|
+
GLUT_HAS_TABLET = 0x025C
|
137
|
+
GLUT_NUM_MOUSE_BUTTONS = 0x025D
|
138
|
+
GLUT_NUM_SPACEBALL_BUTTONS = 0x025E
|
139
|
+
GLUT_NUM_BUTTON_BOX_BUTTONS = 0x025F
|
140
|
+
GLUT_NUM_DIALS = 0x0260
|
141
|
+
GLUT_NUM_TABLET_BUTTONS = 0x0261
|
142
|
+
GLUT_DEVICE_IGNORE_KEY_REPEAT = 0x0262
|
143
|
+
GLUT_DEVICE_KEY_REPEAT = 0x0263
|
144
|
+
GLUT_HAS_JOYSTICK = 0x0264
|
145
|
+
GLUT_OWNS_JOYSTICK = 0x0265
|
146
|
+
GLUT_JOYSTICK_BUTTONS = 0x0266
|
147
|
+
GLUT_JOYSTICK_AXES = 0x0267
|
148
|
+
GLUT_JOYSTICK_POLL_RATE = 0x0268
|
149
|
+
|
150
|
+
GLUT_OVERLAY_POSSIBLE = 0x0320
|
151
|
+
GLUT_LAYER_IN_USE = 0x0321
|
152
|
+
GLUT_HAS_OVERLAY = 0x0322
|
153
|
+
GLUT_TRANSPARENT_INDEX = 0x0323
|
154
|
+
GLUT_NORMAL_DAMAGED = 0x0324
|
155
|
+
GLUT_OVERLAY_DAMAGED = 0x0325
|
156
|
+
|
157
|
+
GLUT_VIDEO_RESIZE_POSSIBLE = 0x0384
|
158
|
+
GLUT_VIDEO_RESIZE_IN_USE = 0x0385
|
159
|
+
GLUT_VIDEO_RESIZE_X_DELTA = 0x0386
|
160
|
+
GLUT_VIDEO_RESIZE_Y_DELTA = 0x0387
|
161
|
+
GLUT_VIDEO_RESIZE_WIDTH_DELTA = 0x0388
|
162
|
+
GLUT_VIDEO_RESIZE_HEIGHT_DELTA = 0x0389
|
163
|
+
GLUT_VIDEO_RESIZE_X = 0x038A
|
164
|
+
GLUT_VIDEO_RESIZE_Y = 0x038B
|
165
|
+
GLUT_VIDEO_RESIZE_WIDTH = 0x038C
|
166
|
+
GLUT_VIDEO_RESIZE_HEIGHT = 0x038D
|
167
|
+
|
168
|
+
GLUT_NORMAL = 0x0000
|
169
|
+
GLUT_OVERLAY = 0x0001
|
170
|
+
|
171
|
+
GLUT_ACTIVE_SHIFT = 0x0001
|
172
|
+
GLUT_ACTIVE_CTRL = 0x0002
|
173
|
+
GLUT_ACTIVE_ALT = 0x0004
|
174
|
+
|
175
|
+
GLUT_CURSOR_RIGHT_ARROW = 0x0000
|
176
|
+
GLUT_CURSOR_LEFT_ARROW = 0x0001
|
177
|
+
GLUT_CURSOR_INFO = 0x0002
|
178
|
+
GLUT_CURSOR_DESTROY = 0x0003
|
179
|
+
GLUT_CURSOR_HELP = 0x0004
|
180
|
+
GLUT_CURSOR_CYCLE = 0x0005
|
181
|
+
GLUT_CURSOR_SPRAY = 0x0006
|
182
|
+
GLUT_CURSOR_WAIT = 0x0007
|
183
|
+
GLUT_CURSOR_TEXT = 0x0008
|
184
|
+
GLUT_CURSOR_CROSSHAIR = 0x0009
|
185
|
+
GLUT_CURSOR_UP_DOWN = 0x000A
|
186
|
+
GLUT_CURSOR_LEFT_RIGHT = 0x000B
|
187
|
+
GLUT_CURSOR_TOP_SIDE = 0x000C
|
188
|
+
GLUT_CURSOR_BOTTOM_SIDE = 0x000D
|
189
|
+
GLUT_CURSOR_LEFT_SIDE = 0x000E
|
190
|
+
GLUT_CURSOR_RIGHT_SIDE = 0x000F
|
191
|
+
GLUT_CURSOR_TOP_LEFT_CORNER = 0x0010
|
192
|
+
GLUT_CURSOR_TOP_RIGHT_CORNER = 0x0011
|
193
|
+
GLUT_CURSOR_BOTTOM_RIGHT_CORNER = 0x0012
|
194
|
+
GLUT_CURSOR_BOTTOM_LEFT_CORNER = 0x0013
|
195
|
+
GLUT_CURSOR_INHERIT = 0x0064
|
196
|
+
GLUT_CURSOR_NONE = 0x0065
|
197
|
+
GLUT_CURSOR_FULL_CROSSHAIR = 0x0066
|
198
|
+
|
199
|
+
GLUT_RED = 0x0000
|
200
|
+
GLUT_GREEN = 0x0001
|
201
|
+
GLUT_BLUE = 0x0002
|
202
|
+
|
203
|
+
GLUT_KEY_REPEAT_OFF = 0x0000
|
204
|
+
GLUT_KEY_REPEAT_ON = 0x0001
|
205
|
+
GLUT_KEY_REPEAT_DEFAULT = 0x0002
|
206
|
+
|
207
|
+
GLUT_JOYSTICK_BUTTON_A = 0x0001
|
208
|
+
GLUT_JOYSTICK_BUTTON_B = 0x0002
|
209
|
+
GLUT_JOYSTICK_BUTTON_C = 0x0004
|
210
|
+
GLUT_JOYSTICK_BUTTON_D = 0x0008
|
211
|
+
|
212
|
+
GLUT_GAME_MODE_ACTIVE = 0x0000
|
213
|
+
GLUT_GAME_MODE_POSSIBLE = 0x0001
|
214
|
+
GLUT_GAME_MODE_WIDTH = 0x0002
|
215
|
+
GLUT_GAME_MODE_HEIGHT = 0x0003
|
216
|
+
GLUT_GAME_MODE_PIXEL_DEPTH = 0x0004
|
217
|
+
GLUT_GAME_MODE_REFRESH_RATE = 0x0005
|
218
|
+
GLUT_GAME_MODE_DISPLAY_CHANGED = 0x0006
|
219
|
+
|
90
220
|
# typedefs
|
91
221
|
@@glut_cb_signature = {
|
92
|
-
:GLUTMenuFunc
|
93
|
-
|
94
|
-
:
|
95
|
-
:
|
96
|
-
|
97
|
-
:
|
98
|
-
:
|
99
|
-
:
|
100
|
-
:GLUTVisibilityFunc
|
101
|
-
:
|
102
|
-
:
|
103
|
-
:
|
104
|
-
:
|
105
|
-
:
|
222
|
+
:GLUTMenuFunc => "void GLUTMenuFunc(int)",
|
223
|
+
|
224
|
+
:GLUTTimerFunc => "void GLUTTimerFunc(int)",
|
225
|
+
:GLUTIdleFunc => "void GLUTIdleFunc()",
|
226
|
+
|
227
|
+
:GLUTKeyboardFunc => "void GLUTKeyboardFunc(unsigned char, int, int)",
|
228
|
+
:GLUTSpecialFunc => "void GLUTSpecialFunc(int, int, int)",
|
229
|
+
:GLUTReshapeFunc => "void GLUTReshapeFunc(int, int)",
|
230
|
+
:GLUTVisibilityFunc => "void GLUTVisibilityFunc(int)",
|
231
|
+
:GLUTDisplayFunc => "void GLUTDisplayFunc()",
|
232
|
+
:GLUTMouseFunc => "void GLUTMouseFunc(int, int, int, int)",
|
233
|
+
:GLUTMotionFunc => "void GLUTMotionFunc(int, int)",
|
234
|
+
:GLUTPassiveMotionFunc => "void GLUTPassiveMotionFunc(int, int)",
|
235
|
+
:GLUTEntryFunc => "void GLUTEntryFunc(int)",
|
236
|
+
|
237
|
+
:GLUTKeyboardUpFunc => "void GLUTKeyboardUpFunc(unsigned char, int, int)",
|
238
|
+
:GLUTSpecialUpFunc => "void GLUTSpecialUpFunc(int, int, int)",
|
239
|
+
:GLUTJoystickFunc => "void GLUTJoystickFunc(unsigned int, int, int, int)",
|
240
|
+
:GLUTMenuStateFunc => "void GLUTMenuStateFunc(int)",
|
241
|
+
:GLUTMenuStatusFunc => "void GLUTMenuStatusFunc(int, int, int)",
|
242
|
+
:GLUTOverlayDisplayFunc => "void GLUTOverlayDisplayFunc()",
|
243
|
+
:GLUTWindowStatusFunc => "void GLUTWindowStatusFunc(int)",
|
244
|
+
|
245
|
+
:GLUTSpaceballMotionFunc => "void GLUTSpaceballMotionFunc(int, int, int)",
|
246
|
+
:GLUTSpaceballRotateFunc => "void GLUTSpaceballRotateFunc(int, int, int)",
|
247
|
+
:GLUTSpaceballButtonFunc => "void GLUTSpaceballButtonFunc(int, int)",
|
248
|
+
:GLUTButtonBoxFunc => "void GLUTButtonBoxFunc(int, int)",
|
249
|
+
:GLUTDialsFunc => "void GLUTDialsFunc(int, int)",
|
250
|
+
:GLUTTabletMotionFunc => "void GLUTTabletMotionFunc(int, int)",
|
251
|
+
:GLUTTabletButtonFunc => "void GLUTTabletButtonFunc(int, int, int, int)",
|
106
252
|
}
|
107
253
|
|
108
254
|
def self.create_callback( sym, proc=nil, &blk )
|
@@ -158,29 +304,43 @@ module GLUT
|
|
158
304
|
|
159
305
|
# function
|
160
306
|
extern 'void glutInit(int*, char**)'
|
161
|
-
extern 'void glutInitDisplayMode(unsigned int)'
|
162
|
-
|
163
307
|
extern 'void glutInitWindowPosition(int, int)'
|
164
308
|
extern 'void glutInitWindowSize(int, int)'
|
309
|
+
extern 'void glutInitDisplayMode(unsigned int)'
|
310
|
+
extern 'void glutInitDisplayString(const char*)'
|
311
|
+
|
165
312
|
extern 'void glutMainLoop()'
|
166
313
|
|
167
314
|
extern 'int glutCreateWindow(const char *)'
|
168
315
|
extern 'int glutCreateSubWindow(int, int, int, int, int)'
|
169
316
|
extern 'void glutDestroyWindow(int)'
|
170
|
-
extern 'void glutPostRedisplay()'
|
171
|
-
|
172
|
-
extern 'void glutSwapBuffers()'
|
173
|
-
extern 'int glutGetWindow()'
|
174
317
|
extern 'void glutSetWindow(int)'
|
318
|
+
extern 'int glutGetWindow()'
|
175
319
|
extern 'void glutSetWindowTitle(const char *)'
|
176
320
|
extern 'void glutSetIconTitle(const char *)'
|
177
|
-
extern 'void glutPositionWindow(int, int)'
|
178
321
|
extern 'void glutReshapeWindow(int, int)'
|
179
|
-
extern 'void
|
180
|
-
extern 'void glutPushWindow()'
|
181
|
-
extern 'void glutIconifyWindow()'
|
322
|
+
extern 'void glutPositionWindow(int, int)'
|
182
323
|
extern 'void glutShowWindow()'
|
183
324
|
extern 'void glutHideWindow()'
|
325
|
+
extern 'void glutIconifyWindow()'
|
326
|
+
extern 'void glutPushWindow()'
|
327
|
+
extern 'void glutPopWindow()'
|
328
|
+
extern 'void glutFullScreen()'
|
329
|
+
|
330
|
+
extern 'void glutPostWindowRedisplay(int)'
|
331
|
+
extern 'void glutPostRedisplay()'
|
332
|
+
extern 'void glutSwapBuffers()'
|
333
|
+
|
334
|
+
extern 'void glutWarpPointer(int, int)'
|
335
|
+
extern 'void glutSetCursor(int)'
|
336
|
+
|
337
|
+
extern 'void glutEstablishOverlay()'
|
338
|
+
extern 'void glutRemoveOverlay()'
|
339
|
+
extern 'void glutUseLayer(unsigned int)'
|
340
|
+
extern 'void glutPostOverlayRedisplay()'
|
341
|
+
extern 'void glutPostWindowOverlayRedisplay(int)'
|
342
|
+
extern 'void glutShowOverlay()'
|
343
|
+
extern 'void glutHideOverlay()'
|
184
344
|
|
185
345
|
extern 'int glutCreateMenu(void *)'
|
186
346
|
extern 'void glutDestroyMenu(int)'
|
@@ -196,41 +356,56 @@ module GLUT
|
|
196
356
|
|
197
357
|
extern 'void glutTimerFunc(unsigned int, void *)'
|
198
358
|
extern 'void glutIdleFunc(void *)'
|
199
|
-
|
200
|
-
extern 'void glutReshapeFunc(void *)'
|
359
|
+
|
201
360
|
extern 'void glutKeyboardFunc(void *)'
|
361
|
+
extern 'void glutSpecialFunc(void *)'
|
362
|
+
extern 'void glutReshapeFunc(void *)'
|
363
|
+
extern 'void glutVisibilityFunc(void *)'
|
364
|
+
extern 'void glutDisplayFunc(void *)'
|
202
365
|
extern 'void glutMouseFunc(void *)'
|
203
366
|
extern 'void glutMotionFunc(void *)'
|
204
367
|
extern 'void glutPassiveMotionFunc(void *)'
|
205
368
|
extern 'void glutEntryFunc(void *)'
|
206
|
-
|
207
|
-
extern 'void
|
208
|
-
extern 'void
|
369
|
+
|
370
|
+
extern 'void glutKeyboardUpFunc(void *)'
|
371
|
+
extern 'void glutSpecialUpFunc(void *)'
|
372
|
+
extern 'void glutJoystickFunc(void *, int)'
|
209
373
|
extern 'void glutMenuStateFunc(void *)'
|
210
|
-
extern 'void
|
211
|
-
extern 'void
|
374
|
+
extern 'void glutMenuStatusFunc(void *)'
|
375
|
+
extern 'void glutOverlayDisplayFunc(void *)'
|
376
|
+
extern 'void glutWindowStatusFunc(void *)'
|
377
|
+
|
378
|
+
extern 'void glutSpaceballMotionFunc(void *)'
|
379
|
+
extern 'void glutSpaceballRotateFunc(void *)'
|
380
|
+
extern 'void glutSpaceballButtonFunc(void *)'
|
381
|
+
extern 'void glutButtonBoxFunc(void *)'
|
382
|
+
extern 'void glutDialsFunc(void *)'
|
383
|
+
extern 'void glutTabletMotionFunc(void *)'
|
384
|
+
extern 'void glutTabletButtonFunc(void *)'
|
385
|
+
|
212
386
|
extern 'int glutGet(unsigned int)'
|
213
387
|
extern 'int glutDeviceGet(unsigned int)'
|
214
|
-
|
215
|
-
extern 'int
|
388
|
+
extern 'int glutGetModifiers()'
|
389
|
+
extern 'int glutLayerGet(unsigned int)'
|
216
390
|
|
217
391
|
extern 'void glutBitmapCharacter(void *, int)'
|
218
392
|
extern 'int glutBitmapWidth(void *, int)'
|
219
393
|
extern 'void glutStrokeCharacter(void *, int)'
|
220
394
|
extern 'int glutStrokeWidth(void *, int)'
|
395
|
+
extern 'int glutBitmapLength(void *, const unsigned char*)'
|
396
|
+
extern 'int glutStrokeLength(void *, const unsigned char*)'
|
221
397
|
|
398
|
+
extern 'void glutWireCube(double)'
|
399
|
+
extern 'void glutSolidCube(double)'
|
222
400
|
extern 'void glutWireSphere(double, int, int)'
|
223
401
|
extern 'void glutSolidSphere(double, int, int)'
|
224
402
|
extern 'void glutWireCone(double, double, int, int)'
|
225
403
|
extern 'void glutSolidCone(double, double, int, int)'
|
226
|
-
|
227
|
-
extern 'void glutSolidCube(double)'
|
404
|
+
|
228
405
|
extern 'void glutWireTorus(double, double, int, int)'
|
229
406
|
extern 'void glutSolidTorus(double, double, int, int)'
|
230
407
|
extern 'void glutWireDodecahedron()'
|
231
408
|
extern 'void glutSolidDodecahedron()'
|
232
|
-
extern 'void glutWireTeapot(double)'
|
233
|
-
extern 'void glutSolidTeapot(double)'
|
234
409
|
extern 'void glutWireOctahedron()'
|
235
410
|
extern 'void glutSolidOctahedron()'
|
236
411
|
extern 'void glutWireTetrahedron()'
|
@@ -238,6 +413,31 @@ module GLUT
|
|
238
413
|
extern 'void glutWireIcosahedron()'
|
239
414
|
extern 'void glutSolidIcosahedron()'
|
240
415
|
|
416
|
+
extern 'void glutWireTeapot(double)'
|
417
|
+
extern 'void glutSolidTeapot(double)'
|
418
|
+
|
419
|
+
extern 'void glutGameModeString(const char*)'
|
420
|
+
extern 'int glutEnterGameMode()'
|
421
|
+
extern 'void glutLeaveGameMode()'
|
422
|
+
extern 'int glutGameModeGet(unsigned int)'
|
423
|
+
|
424
|
+
extern 'int glutVideoResizeGet(unsigned int)'
|
425
|
+
extern 'void glutSetupVideoResizing()'
|
426
|
+
extern 'void glutStopVideoResizing()'
|
427
|
+
extern 'void glutVideoResize(int, int, int, int)'
|
428
|
+
extern 'void glutVideoPan(int, int, int, int)'
|
429
|
+
|
430
|
+
extern 'void glutSetColor(int, float, float, float)'
|
431
|
+
extern 'float glutGetColor(int, int)'
|
432
|
+
extern 'void glutCopyColormap(int)'
|
433
|
+
|
434
|
+
extern 'void glutIgnoreKeyRepeat(int)'
|
435
|
+
extern 'void glutSetKeyRepeat(int)'
|
436
|
+
extern 'void glutForceJoystickFunc()'
|
437
|
+
|
438
|
+
extern 'int glutExtensionSupported(const char *)'
|
439
|
+
extern 'void glutReportErrors()'
|
440
|
+
|
241
441
|
@@glut_import_done = true
|
242
442
|
end
|
243
443
|
|
data/lib/opengl_enum.rb
CHANGED
@@ -565,10 +565,10 @@ module OpenGL
|
|
565
565
|
GL_TEXTURE_MAX_LOD = 0x813B
|
566
566
|
GL_TEXTURE_BASE_LEVEL = 0x813C
|
567
567
|
GL_TEXTURE_MAX_LEVEL = 0x813D
|
568
|
-
GL_SMOOTH_POINT_SIZE_RANGE =
|
569
|
-
GL_SMOOTH_POINT_SIZE_GRANULARITY =
|
570
|
-
GL_SMOOTH_LINE_WIDTH_RANGE =
|
571
|
-
GL_SMOOTH_LINE_WIDTH_GRANULARITY =
|
568
|
+
GL_SMOOTH_POINT_SIZE_RANGE = 0x0B12
|
569
|
+
GL_SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13
|
570
|
+
GL_SMOOTH_LINE_WIDTH_RANGE = 0x0B22
|
571
|
+
GL_SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23
|
572
572
|
GL_ALIASED_LINE_WIDTH_RANGE = 0x846E
|
573
573
|
GL_RESCALE_NORMAL = 0x803A
|
574
574
|
GL_LIGHT_MODEL_COLOR_CONTROL = 0x81F8
|
@@ -746,7 +746,7 @@ module OpenGL
|
|
746
746
|
GL_DYNAMIC_READ = 0x88E9
|
747
747
|
GL_DYNAMIC_COPY = 0x88EA
|
748
748
|
GL_SAMPLES_PASSED = 0x8914
|
749
|
-
GL_SRC1_ALPHA =
|
749
|
+
GL_SRC1_ALPHA = 0x8589
|
750
750
|
GL_VERTEX_ARRAY_BUFFER_BINDING = 0x8896
|
751
751
|
GL_NORMAL_ARRAY_BUFFER_BINDING = 0x8897
|
752
752
|
GL_COLOR_ARRAY_BUFFER_BINDING = 0x8898
|
@@ -756,19 +756,19 @@ module OpenGL
|
|
756
756
|
GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C
|
757
757
|
GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D
|
758
758
|
GL_WEIGHT_ARRAY_BUFFER_BINDING = 0x889E
|
759
|
-
GL_FOG_COORD_SRC =
|
760
|
-
GL_FOG_COORD =
|
761
|
-
GL_CURRENT_FOG_COORD =
|
762
|
-
GL_FOG_COORD_ARRAY_TYPE =
|
763
|
-
GL_FOG_COORD_ARRAY_STRIDE =
|
764
|
-
GL_FOG_COORD_ARRAY_POINTER =
|
765
|
-
GL_FOG_COORD_ARRAY =
|
766
|
-
GL_FOG_COORD_ARRAY_BUFFER_BINDING =
|
767
|
-
GL_SRC0_RGB =
|
768
|
-
GL_SRC1_RGB =
|
769
|
-
GL_SRC2_RGB =
|
770
|
-
GL_SRC0_ALPHA =
|
771
|
-
GL_SRC2_ALPHA =
|
759
|
+
GL_FOG_COORD_SRC = 0x8450
|
760
|
+
GL_FOG_COORD = 0x8451
|
761
|
+
GL_CURRENT_FOG_COORD = 0x8453
|
762
|
+
GL_FOG_COORD_ARRAY_TYPE = 0x8454
|
763
|
+
GL_FOG_COORD_ARRAY_STRIDE = 0x8455
|
764
|
+
GL_FOG_COORD_ARRAY_POINTER = 0x8456
|
765
|
+
GL_FOG_COORD_ARRAY = 0x8457
|
766
|
+
GL_FOG_COORD_ARRAY_BUFFER_BINDING = 0x889D
|
767
|
+
GL_SRC0_RGB = 0x8580
|
768
|
+
GL_SRC1_RGB = 0x8581
|
769
|
+
GL_SRC2_RGB = 0x8582
|
770
|
+
GL_SRC0_ALPHA = 0x8588
|
771
|
+
GL_SRC2_ALPHA = 0x858A
|
772
772
|
GL_BLEND_EQUATION_RGB = 0x8009
|
773
773
|
GL_VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622
|
774
774
|
GL_VERTEX_ATTRIB_ARRAY_SIZE = 0x8623
|
@@ -876,16 +876,16 @@ module OpenGL
|
|
876
876
|
GL_SLUMINANCE8 = 0x8C47
|
877
877
|
GL_COMPRESSED_SLUMINANCE = 0x8C4A
|
878
878
|
GL_COMPRESSED_SLUMINANCE_ALPHA = 0x8C4B
|
879
|
-
GL_COMPARE_REF_TO_TEXTURE =
|
880
|
-
GL_CLIP_DISTANCE0 =
|
881
|
-
GL_CLIP_DISTANCE1 =
|
882
|
-
GL_CLIP_DISTANCE2 =
|
883
|
-
GL_CLIP_DISTANCE3 =
|
884
|
-
GL_CLIP_DISTANCE4 =
|
885
|
-
GL_CLIP_DISTANCE5 =
|
879
|
+
GL_COMPARE_REF_TO_TEXTURE = 0x884E
|
880
|
+
GL_CLIP_DISTANCE0 = 0x3000
|
881
|
+
GL_CLIP_DISTANCE1 = 0x3001
|
882
|
+
GL_CLIP_DISTANCE2 = 0x3002
|
883
|
+
GL_CLIP_DISTANCE3 = 0x3003
|
884
|
+
GL_CLIP_DISTANCE4 = 0x3004
|
885
|
+
GL_CLIP_DISTANCE5 = 0x3005
|
886
886
|
GL_CLIP_DISTANCE6 = 0x3006
|
887
887
|
GL_CLIP_DISTANCE7 = 0x3007
|
888
|
-
GL_MAX_CLIP_DISTANCES =
|
888
|
+
GL_MAX_CLIP_DISTANCES = 0x0D32
|
889
889
|
GL_MAJOR_VERSION = 0x821B
|
890
890
|
GL_MINOR_VERSION = 0x821C
|
891
891
|
GL_NUM_EXTENSIONS = 0x821D
|
@@ -903,7 +903,7 @@ module OpenGL
|
|
903
903
|
GL_MAX_PROGRAM_TEXEL_OFFSET = 0x8905
|
904
904
|
GL_CLAMP_READ_COLOR = 0x891C
|
905
905
|
GL_FIXED_ONLY = 0x891D
|
906
|
-
GL_MAX_VARYING_COMPONENTS =
|
906
|
+
GL_MAX_VARYING_COMPONENTS = 0x8B4B
|
907
907
|
GL_TEXTURE_1D_ARRAY = 0x8C18
|
908
908
|
GL_PROXY_TEXTURE_1D_ARRAY = 0x8C19
|
909
909
|
GL_TEXTURE_2D_ARRAY = 0x8C1A
|
@@ -1161,7 +1161,7 @@ module OpenGL
|
|
1161
1161
|
GL_LINE_STRIP_ADJACENCY = 0x000B
|
1162
1162
|
GL_TRIANGLES_ADJACENCY = 0x000C
|
1163
1163
|
GL_TRIANGLE_STRIP_ADJACENCY = 0x000D
|
1164
|
-
GL_PROGRAM_POINT_SIZE =
|
1164
|
+
GL_PROGRAM_POINT_SIZE = 0x8642
|
1165
1165
|
GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS = 0x8C29
|
1166
1166
|
GL_FRAMEBUFFER_ATTACHMENT_LAYERED = 0x8DA7
|
1167
1167
|
GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS = 0x8DA8
|
@@ -1694,7 +1694,7 @@ module OpenGL
|
|
1694
1694
|
GL_MAX_SHADER_STORAGE_BLOCK_SIZE = 0x90DE
|
1695
1695
|
GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT = 0x90DF
|
1696
1696
|
GL_SHADER_STORAGE_BARRIER_BIT = 0x00002000
|
1697
|
-
GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES =
|
1697
|
+
GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES = 0x8F39
|
1698
1698
|
GL_DEPTH_STENCIL_TEXTURE_MODE = 0x90EA
|
1699
1699
|
GL_TEXTURE_BUFFER_OFFSET = 0x919D
|
1700
1700
|
GL_TEXTURE_BUFFER_SIZE = 0x919E
|