opengl 0.9.2-x86-mingw32 → 0.10.0.pre1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +8 -0
  3. data/Manifest.txt +5 -1
  4. data/README.rdoc +25 -28
  5. data/Rakefile +56 -28
  6. data/examples/RedBook/font.rb +2 -2
  7. data/examples/RedBook/light.rb +2 -0
  8. data/examples/RedBook/stroke.rb +6 -6
  9. data/ext/opengl/GL/gl.h +2115 -0
  10. data/ext/opengl/GL/glext.h +11770 -0
  11. data/ext/opengl/common.h +116 -172
  12. data/ext/opengl/conv.h +2 -2
  13. data/ext/opengl/extconf.rb +3 -31
  14. data/ext/opengl/fptr_struct.h +912 -0
  15. data/ext/opengl/funcdef.h +29 -63
  16. data/ext/opengl/gl-1.0-1.1.c +918 -648
  17. data/ext/opengl/gl-1.2.c +13 -13
  18. data/ext/opengl/gl-1.3.c +68 -64
  19. data/ext/opengl/gl-1.4.c +64 -66
  20. data/ext/opengl/gl-1.5.c +32 -31
  21. data/ext/opengl/gl-2.0.c +126 -128
  22. data/ext/opengl/gl-2.1.c +8 -8
  23. data/ext/opengl/gl-3.0.c +102 -93
  24. data/ext/opengl/gl-enums.c +9 -29
  25. data/ext/opengl/gl-enums.h +31 -91
  26. data/ext/opengl/gl-error.c +15 -17
  27. data/ext/opengl/gl-error.h +4 -7
  28. data/ext/opengl/gl-ext-3dfx.c +2 -2
  29. data/ext/opengl/gl-ext-arb.c +176 -171
  30. data/ext/opengl/gl-ext-ati.c +4 -4
  31. data/ext/opengl/gl-ext-ext.c +151 -155
  32. data/ext/opengl/gl-ext-gremedy.c +4 -4
  33. data/ext/opengl/gl-ext-nv.c +141 -142
  34. data/ext/opengl/gl.c +121 -76
  35. data/ext/opengl/gl_buffer.c +44 -19
  36. data/ext/opengl/glimpl.c +187 -0
  37. data/ext/opengl/glimpl.h +47 -0
  38. data/ext/opengl/opengl.c +5 -3
  39. data/lib/opengl.rb +24 -4
  40. data/lib/opengl/1.9/opengl.so +0 -0
  41. data/lib/opengl/2.0/opengl.so +0 -0
  42. data/lib/opengl/2.1/opengl.so +0 -0
  43. data/lib/opengl/2.2/opengl.so +0 -0
  44. data/lib/opengl/2.3/opengl.so +0 -0
  45. data/lib/opengl/bindings_version.rb +4 -0
  46. data/lib/opengl/implementation.rb +38 -0
  47. data/opengl.gemspec +33 -0
  48. data/test/test_gl.rb +7 -0
  49. data/test/test_gl_21.rb +21 -21
  50. data/test/test_gl_ext_arb.rb +1 -1
  51. data/test/test_glimpl.rb +23 -0
  52. data/test/test_opengl_buffer.rb +2 -0
  53. data/utils/enumgen.rb +2 -2
  54. metadata +69 -60
  55. checksums.yaml.gz.sig +0 -2
  56. data.tar.gz.sig +0 -0
  57. data/ext/opengl/gl-types.h +0 -67
  58. metadata.gz.sig +0 -0
data/ext/opengl/gl-2.1.c CHANGED
@@ -16,7 +16,6 @@
16
16
  #include "common.h"
17
17
 
18
18
  #define UNIFORMMATRIX_FUNC(_x_,_y_) \
19
- static void (APIENTRY * fptr_glUniformMatrix##_x_##x##_y_##fv)(GLint,GLsizei,GLboolean,GLfloat *); \
20
19
  static VALUE \
21
20
  gl_UniformMatrix##_x_##x##_y_##fv(obj,arg1,arg2,arg3) \
22
21
  VALUE obj,arg1,arg2,arg3; \
@@ -25,6 +24,7 @@ VALUE obj,arg1,arg2,arg3; \
25
24
  GLsizei count; \
26
25
  GLboolean transpose; \
27
26
  GLfloat *value; \
27
+ DECL_GL_FUNC_PTR(GLvoid,glUniformMatrix##_x_##x##_y_##fv,(GLint,GLsizei,GLboolean,GLfloat *)); \
28
28
  LOAD_GL_FUNC(glUniformMatrix##_x_##x##_y_##fv,"2.1"); \
29
29
  location = (GLint)NUM2INT(arg1); \
30
30
  count = (GLsizei)RARRAY_LENINT(rb_funcall(rb_Array(arg3),rb_intern("flatten"),0)); \
@@ -46,12 +46,12 @@ UNIFORMMATRIX_FUNC(4,3)
46
46
 
47
47
  #undef UNIFORMMATRIX_FUNC
48
48
 
49
- void gl_init_functions_2_1(VALUE module)
49
+ void gl_init_functions_2_1(VALUE klass)
50
50
  {
51
- rb_define_module_function(module, "glUniformMatrix2x3fv", gl_UniformMatrix2x3fv, 3);
52
- rb_define_module_function(module, "glUniformMatrix3x2fv", gl_UniformMatrix3x2fv, 3);
53
- rb_define_module_function(module, "glUniformMatrix2x4fv", gl_UniformMatrix2x4fv, 3);
54
- rb_define_module_function(module, "glUniformMatrix4x2fv", gl_UniformMatrix4x2fv, 3);
55
- rb_define_module_function(module, "glUniformMatrix3x4fv", gl_UniformMatrix3x4fv, 3);
56
- rb_define_module_function(module, "glUniformMatrix4x3fv", gl_UniformMatrix4x3fv, 3);
51
+ rb_define_method(klass, "glUniformMatrix2x3fv", gl_UniformMatrix2x3fv, 3);
52
+ rb_define_method(klass, "glUniformMatrix3x2fv", gl_UniformMatrix3x2fv, 3);
53
+ rb_define_method(klass, "glUniformMatrix2x4fv", gl_UniformMatrix2x4fv, 3);
54
+ rb_define_method(klass, "glUniformMatrix4x2fv", gl_UniformMatrix4x2fv, 3);
55
+ rb_define_method(klass, "glUniformMatrix3x4fv", gl_UniformMatrix3x4fv, 3);
56
+ rb_define_method(klass, "glUniformMatrix4x3fv", gl_UniformMatrix4x3fv, 3);
57
57
  }
data/ext/opengl/gl-3.0.c CHANGED
@@ -23,7 +23,6 @@
23
23
  GL_NV_half_float
24
24
 
25
25
  GL_EXT_transform_feedback
26
- GL_APPLE_vertex_array_object --> ARB_vertex_array_object
27
26
 
28
27
  -- New commands in OpenGL 3.0:
29
28
 
@@ -74,12 +73,12 @@ GL_FUNC_LOAD_4(VertexAttribI3ui,GLvoid, GLuint,GLuint,GLuint,GLuint, "3.0")
74
73
  GL_FUNC_LOAD_5(VertexAttribI4ui,GLvoid, GLuint,GLuint,GLuint,GLuint,GLuint, "3.0")
75
74
 
76
75
  #define GLVERTEXATTRIB_VFUNC(_name_,_type_,_conv_,_size_) \
77
- static void (APIENTRY * fptr_gl##_name_)(GLuint,const _type_ *); \
78
76
  static VALUE \
79
77
  gl_##_name_(obj,arg1,arg2) \
80
78
  VALUE obj,arg1,arg2; \
81
79
  { \
82
80
  _type_ value[_size_]; \
81
+ DECL_GL_FUNC_PTR(GLvoid,gl##_name_,(GLuint,const _type_ *)); \
83
82
  LOAD_GL_FUNC(gl##_name_, "3.0"); \
84
83
  _conv_(arg2,value,_size_); \
85
84
  fptr_gl##_name_(NUM2UINT(arg1),value); \
@@ -102,7 +101,6 @@ GLVERTEXATTRIB_VFUNC(VertexAttribI4usv,GLushort,ary2cushort,4)
102
101
  #undef GLVERTEXATTRIB_VFUNC
103
102
 
104
103
  #define GETVERTEXATTRIB_FUNC(_name_,_type_,_conv_,_extension_) \
105
- static void (APIENTRY * fptr_gl##_name_)(GLuint,GLenum,_type_ *); \
106
104
  static VALUE \
107
105
  gl_##_name_(obj,arg1,arg2) \
108
106
  VALUE obj,arg1,arg2; \
@@ -111,6 +109,7 @@ VALUE obj,arg1,arg2; \
111
109
  GLenum pname; \
112
110
  _type_ params[4] = {0,0,0,0}; \
113
111
  GLint size; \
112
+ DECL_GL_FUNC_PTR(GLvoid,gl##_name_,(GLuint,GLenum,_type_ *)); \
114
113
  LOAD_GL_FUNC(gl##_name_, _extension_); \
115
114
  index = (GLuint)NUM2UINT(arg1); \
116
115
  pname = (GLenum)NUM2INT(arg2); \
@@ -126,9 +125,6 @@ GETVERTEXATTRIB_FUNC(GetVertexAttribIiv,GLint,cond_GLBOOL2RUBY,"3.0")
126
125
  GETVERTEXATTRIB_FUNC(GetVertexAttribIuiv,GLuint,cond_GLBOOL2RUBY_U,"3.0")
127
126
  #undef GETVERTEXATTRIB_FUNC
128
127
 
129
- extern VALUE g_VertexAttrib_ptr[];
130
-
131
- static void (APIENTRY * fptr_glVertexAttribIPointer)(GLuint,GLint,GLenum,GLsizei,const GLvoid *);
132
128
  static VALUE gl_VertexAttribIPointer(VALUE obj,VALUE arg1,VALUE arg2,VALUE arg3,VALUE arg4,VALUE arg5)
133
129
  {
134
130
  GLuint index;
@@ -136,6 +132,7 @@ static VALUE gl_VertexAttribIPointer(VALUE obj,VALUE arg1,VALUE arg2,VALUE arg3,
136
132
  GLenum type;
137
133
  GLsizei stride;
138
134
 
135
+ DECL_GL_FUNC_PTR(GLvoid,glVertexAttribIPointer,(GLuint,GLint,GLenum,GLsizei,const GLvoid *));
139
136
  LOAD_GL_FUNC(glVertexAttribIPointer, "3.0");
140
137
 
141
138
  index = (GLuint)NUM2UINT(arg1);
@@ -145,14 +142,14 @@ static VALUE gl_VertexAttribIPointer(VALUE obj,VALUE arg1,VALUE arg2,VALUE arg3,
145
142
  if (index>_MAX_VERTEX_ATTRIBS)
146
143
  rb_raise(rb_eArgError, "Index too large, maximum allowed value '%i'",_MAX_VERTEX_ATTRIBS);
147
144
 
148
- if (CheckBufferBinding(GL_ARRAY_BUFFER_BINDING)) {
149
- g_VertexAttrib_ptr[index] = arg5;
145
+ if (CHECK_BUFFER_BINDING(GL_ARRAY_BUFFER_BINDING)) {
146
+ GET_GLIMPL_VARIABLE(VertexAttrib_ptr)[index] = arg5;
150
147
  fptr_glVertexAttribIPointer(index,size,type,stride,(GLvoid *)NUM2SIZET(arg5));
151
148
  } else {
152
149
  VALUE data;
153
150
  data = pack_array_or_pass_string(type,arg5);
154
151
  rb_str_freeze(data);
155
- g_VertexAttrib_ptr[index] = data;
152
+ GET_GLIMPL_VARIABLE(VertexAttrib_ptr)[index] = data;
156
153
  fptr_glVertexAttribIPointer(index,size,type,stride,(GLvoid *)RSTRING_PTR(data));
157
154
  }
158
155
 
@@ -166,7 +163,6 @@ GL_FUNC_LOAD_4(Uniform3ui,GLvoid, GLint,GLuint,GLuint,GLuint, "3.0")
166
163
  GL_FUNC_LOAD_5(Uniform4ui,GLvoid, GLint,GLuint,GLuint,GLuint,GLuint, "3.0")
167
164
 
168
165
  #define GLUNIFORM_VFUNC(_name_,_type_,_conv_,_size_) \
169
- static void (APIENTRY * fptr_gl##_name_)(GLint,GLsizei,const _type_ *); \
170
166
  static VALUE \
171
167
  gl_##_name_(obj,arg1,arg2) \
172
168
  VALUE obj,arg1,arg2; \
@@ -174,6 +170,7 @@ VALUE obj,arg1,arg2; \
174
170
  GLint location; \
175
171
  GLsizei count; \
176
172
  _type_ *value; \
173
+ DECL_GL_FUNC_PTR(GLvoid,gl##_name_,(GLint,GLsizei,const _type_ *)); \
177
174
  LOAD_GL_FUNC(gl##_name_, "3.0"); \
178
175
  Check_Type(arg2,T_ARRAY); \
179
176
  count = (GLsizei)RARRAY_LENINT(arg2); \
@@ -194,9 +191,7 @@ GLUNIFORM_VFUNC(Uniform3uiv,GLuint,ary2cuint,3)
194
191
  GLUNIFORM_VFUNC(Uniform4uiv,GLuint,ary2cuint,4)
195
192
  #undef GLUNIFORM_VFUNC
196
193
 
197
- static void (APIENTRY * fptr_glGetActiveUniformARB)(GLuint,GLuint,GLsizei,GLsizei*,GLint*,GLenum*,GLchar*);
198
194
  #define GETUNIFORM_FUNC(_name_,_type_) \
199
- static void (APIENTRY * fptr_gl##_name_)(GLuint,GLint,_type_ *); \
200
195
  static VALUE \
201
196
  gl_##_name_(obj,arg1,arg2) \
202
197
  VALUE obj,arg1,arg2; \
@@ -208,6 +203,8 @@ VALUE obj,arg1,arg2; \
208
203
  GLenum uniform_type = 0; \
209
204
  GLint uniform_size = 0; \
210
205
  \
206
+ DECL_GL_FUNC_PTR(GLvoid,gl##_name_,(GLuint,GLint,_type_ *)); \
207
+ DECL_GL_FUNC_PTR(GLvoid,glGetActiveUniformARB,(GLuint,GLuint,GLsizei,GLsizei*,GLint*,GLenum*,GLchar*)); \
211
208
  LOAD_GL_FUNC(gl##_name_, "3.0"); \
212
209
  LOAD_GL_FUNC(glGetActiveUniformARB, "3.0"); \
213
210
  program = (GLuint)NUM2UINT(arg1); \
@@ -228,9 +225,9 @@ VALUE obj,arg1,arg2; \
228
225
  GETUNIFORM_FUNC(GetUniformuiv,GLuint)
229
226
  #undef GETUNIFORM_FUNC
230
227
 
231
- static void (APIENTRY * fptr_glBindFragDataLocation)(GLuint,GLuint,const GLchar *);
232
228
  static VALUE gl_BindFragDataLocation(VALUE obj,VALUE arg1,VALUE arg2,VALUE arg3)
233
229
  {
230
+ DECL_GL_FUNC_PTR(GLvoid,glBindFragDataLocation,(GLuint,GLuint,const GLchar *));
234
231
  LOAD_GL_FUNC(glBindFragDataLocation, "3.0");
235
232
  Check_Type(arg3,T_STRING);
236
233
  fptr_glBindFragDataLocation(NUM2UINT(arg1),NUM2UINT(arg2),RSTRING_PTR(arg3));
@@ -238,10 +235,10 @@ static VALUE gl_BindFragDataLocation(VALUE obj,VALUE arg1,VALUE arg2,VALUE arg3)
238
235
  return Qnil;
239
236
  }
240
237
 
241
- static GLint (APIENTRY * fptr_glGetFragDataLocation)(GLuint,const GLchar *);
242
238
  static VALUE gl_GetFragDataLocation(VALUE obj,VALUE arg1,VALUE arg2)
243
239
  {
244
240
  GLint ret;
241
+ DECL_GL_FUNC_PTR(GLint,glGetFragDataLocation,(GLuint,const GLchar *));
245
242
  LOAD_GL_FUNC(glGetFragDataLocation, "3.0");
246
243
  Check_Type(arg2,T_STRING);
247
244
  ret = fptr_glGetFragDataLocation(NUM2UINT(arg1),RSTRING_PTR(arg2));
@@ -268,10 +265,10 @@ GL_FUNC_LOAD_4(RenderbufferStorage,GLvoid, GLenum,GLenum,GLsizei,GLsizei, "3.0")
268
265
  GL_FUNC_GENOBJECTS_LOAD(GenRenderbuffers,"3.0")
269
266
  GL_FUNC_DELETEOBJECTS_LOAD(DeleteRenderbuffers,"3.0")
270
267
 
271
- static void (APIENTRY * fptr_glGetRenderbufferParameteriv)(GLenum,GLenum,GLint *);
272
268
  static VALUE gl_GetRenderbufferParameteriv(VALUE obj,VALUE arg1,VALUE arg2)
273
269
  {
274
270
  GLint param = 0;
271
+ DECL_GL_FUNC_PTR(GLvoid,glGetRenderbufferParameteriv,(GLenum,GLenum,GLint *));
275
272
  LOAD_GL_FUNC(glGetRenderbufferParameteriv, "3.0");
276
273
  fptr_glGetRenderbufferParameteriv(NUM2UINT(arg1),NUM2UINT(arg2),&param);
277
274
  CHECK_GLERROR_FROM("glGetRenderbufferParameteriv");
@@ -289,10 +286,10 @@ GL_FUNC_LOAD_6(FramebufferTexture3D,GLvoid, GLenum,GLenum,GLenum,GLuint,GLint,GL
289
286
  GL_FUNC_LOAD_5(FramebufferTextureLayer,GLvoid, GLenum,GLenum,GLuint,GLint,GLint, "3.0")
290
287
  GL_FUNC_LOAD_4(FramebufferRenderbuffer,GLvoid, GLuint,GLuint,GLuint,GLuint, "3.0")
291
288
 
292
- static void (APIENTRY * fptr_glGetFramebufferAttachmentParameteriv)(GLenum,GLenum,GLenum,GLint *);
293
289
  static VALUE gl_GetFramebufferAttachmentParameteriv(VALUE obj,VALUE arg1, VALUE arg2, VALUE arg3)
294
290
  {
295
291
  GLint ret = 0;
292
+ DECL_GL_FUNC_PTR(GLvoid,glGetFramebufferAttachmentParameteriv,(GLenum,GLenum,GLenum,GLint *));
296
293
  LOAD_GL_FUNC(glGetFramebufferAttachmentParameteriv, "3.0");
297
294
  fptr_glGetFramebufferAttachmentParameteriv(NUM2UINT(arg1),NUM2UINT(arg2),NUM2UINT(arg3),&ret);
298
295
  CHECK_GLERROR_FROM("glGetFramebufferAttachmentParameteriv");
@@ -314,7 +311,6 @@ GL_FUNC_LOAD_4(ClearColorIi,GLvoid, GLint,GLint,GLint,GLint, "3.0")
314
311
  GL_FUNC_LOAD_4(ClearColorIui,GLvoid, GLuint,GLuint,GLuint,GLuint, "3.0")
315
312
 
316
313
  #define TEXPARAMETER_VFUNC(_name_,_type_,_conv_) \
317
- static void (APIENTRY * fptr_gl##_name_)(GLenum,GLenum,_type_ *); \
318
314
  static VALUE \
319
315
  gl_##_name_(obj,arg1,arg2,arg3) \
320
316
  VALUE obj,arg1,arg2,arg3; \
@@ -322,6 +318,7 @@ VALUE obj,arg1,arg2,arg3; \
322
318
  GLenum target; \
323
319
  GLenum pname; \
324
320
  _type_ params[4] = {0,0,0,0}; \
321
+ DECL_GL_FUNC_PTR(GLvoid,gl##_name_,(GLenum,GLenum,_type_ *)); \
325
322
  LOAD_GL_FUNC(gl##_name_, "3.0"); \
326
323
  target = (GLenum)NUM2UINT(arg1); \
327
324
  pname = (GLenum)NUM2UINT(arg2); \
@@ -337,7 +334,6 @@ TEXPARAMETER_VFUNC(TexParameterIuiv,GLuint,ary2cuint)
337
334
  #undef TEXPARAMETER_VFUNC
338
335
 
339
336
  #define GETTEXPARAMETER_VFUNC(_name_,_type_,_conv_) \
340
- static void (APIENTRY * fptr_gl##_name_)(GLenum,GLenum,_type_ *); \
341
337
  static VALUE \
342
338
  gl_##_name_(obj,arg1,arg2) \
343
339
  VALUE obj,arg1,arg2; \
@@ -346,6 +342,7 @@ VALUE obj,arg1,arg2; \
346
342
  GLenum pname; \
347
343
  _type_ params[4] = {0,0,0,0}; \
348
344
  int size; \
345
+ DECL_GL_FUNC_PTR(GLvoid,gl##_name_,(GLenum,GLenum,_type_ *)); \
349
346
  LOAD_GL_FUNC(gl##_name_, "3.0"); \
350
347
  target = (GLenum)NUM2INT(arg1); \
351
348
  pname = (GLenum)NUM2INT(arg2); \
@@ -372,7 +369,6 @@ GETTEXPARAMETER_VFUNC(GetTexParameterIuiv,GLuint,cond_GLBOOL2RUBY_U)
372
369
  GL_FUNC_LOAD_5(ColorMaski,GLvoid, GLuint,GLboolean,GLboolean,GLboolean,GLboolean, "3.0")
373
370
 
374
371
  #define GETINDEXED_FUNC(_name_,_type_,_conv_,_extension_) \
375
- static void (APIENTRY * fptr_gl##_name_)(GLenum,GLenum,_type_ *); \
376
372
  static VALUE \
377
373
  gl_##_name_(obj,arg1,arg2) \
378
374
  VALUE obj,arg1,arg2; \
@@ -380,6 +376,7 @@ VALUE obj,arg1,arg2; \
380
376
  GLenum target; \
381
377
  GLenum pname; \
382
378
  _type_ result; \
379
+ DECL_GL_FUNC_PTR(GLvoid,gl##_name_,(GLenum,GLenum,_type_ *)); \
383
380
  LOAD_GL_FUNC(gl##_name_, _extension_); \
384
381
  target = (GLenum)NUM2INT(arg1); \
385
382
  pname = (GLuint)NUM2INT(arg2); \
@@ -395,99 +392,111 @@ GL_FUNC_LOAD_2(Enablei,GLvoid, GLenum,GLuint, "3.0")
395
392
  GL_FUNC_LOAD_2(Disablei,GLvoid, GLenum,GLuint, "3.0")
396
393
  GL_FUNC_LOAD_2(IsEnabledi,GLvoid, GLenum,GLuint, "3.0")
397
394
 
398
- void gl_init_functions_3_0(VALUE module)
395
+ /* GL_APPLE_vertex_array_object --> ARB_vertex_array_object */
396
+ GL_FUNC_GENOBJECTS_LOAD(GenVertexArrays, "3.0");
397
+ GL_FUNC_DELETEOBJECTS_LOAD(DeleteVertexArrays, "3.0");
398
+ GL_FUNC_LOAD_1(BindVertexArray,GLvoid, GLuint, "3.0");
399
+ GL_FUNC_LOAD_1(IsVertexArray,GLboolean, GLuint, "3.0");
400
+
401
+
402
+ void gl_init_functions_3_0(VALUE klass)
399
403
  {
400
404
  /* GL_NV_conditional_render */
401
- rb_define_module_function(module, "glBeginConditionalRender", gl_BeginConditionalRender, 2);
402
- rb_define_module_function(module, "glEndConditionalRender", gl_EndConditionalRender, 0);
405
+ rb_define_method(klass, "glBeginConditionalRender", gl_BeginConditionalRender, 2);
406
+ rb_define_method(klass, "glEndConditionalRender", gl_EndConditionalRender, 0);
403
407
 
404
408
  /* #326 - GL_EXT_gpu_shader4 */
405
- rb_define_module_function(module, "glVertexAttribI1i", gl_VertexAttribI1i, 2);
406
- rb_define_module_function(module, "glVertexAttribI2i", gl_VertexAttribI2i, 3);
407
- rb_define_module_function(module, "glVertexAttribI3i", gl_VertexAttribI3i, 4);
408
- rb_define_module_function(module, "glVertexAttribI4i", gl_VertexAttribI4i, 5);
409
- rb_define_module_function(module, "glVertexAttribI1ui", gl_VertexAttribI1ui, 2);
410
- rb_define_module_function(module, "glVertexAttribI2ui", gl_VertexAttribI2ui, 3);
411
- rb_define_module_function(module, "glVertexAttribI3ui", gl_VertexAttribI3ui, 4);
412
- rb_define_module_function(module, "glVertexAttribI4ui", gl_VertexAttribI4ui, 5);
413
- rb_define_module_function(module, "glVertexAttribI1iv", gl_VertexAttribI1iv, 2);
414
- rb_define_module_function(module, "glVertexAttribI2iv", gl_VertexAttribI2iv, 2);
415
- rb_define_module_function(module, "glVertexAttribI3iv", gl_VertexAttribI3iv, 2);
416
- rb_define_module_function(module, "glVertexAttribI4iv", gl_VertexAttribI4iv, 2);
417
- rb_define_module_function(module, "glVertexAttribI1uiv", gl_VertexAttribI1uiv, 2);
418
- rb_define_module_function(module, "glVertexAttribI2uiv", gl_VertexAttribI2uiv, 2);
419
- rb_define_module_function(module, "glVertexAttribI3uiv", gl_VertexAttribI3uiv, 2);
420
- rb_define_module_function(module, "glVertexAttribI4uiv", gl_VertexAttribI4uiv, 2);
421
- rb_define_module_function(module, "glVertexAttribI4bv", gl_VertexAttribI4bv, 2);
422
- rb_define_module_function(module, "glVertexAttribI4sv", gl_VertexAttribI4sv, 2);
423
- rb_define_module_function(module, "glVertexAttribI4ubv", gl_VertexAttribI4ubv, 2);
424
- rb_define_module_function(module, "glVertexAttribI4usv", gl_VertexAttribI4usv, 2);
425
- rb_define_module_function(module, "glVertexAttribIPointer", gl_VertexAttribIPointer, 5);
426
- rb_define_module_function(module, "glGetVertexAttribIiv", gl_GetVertexAttribIiv, 2);
427
- rb_define_module_function(module, "glGetVertexAttribIuiv", gl_GetVertexAttribIuiv, 2);
428
- rb_define_module_function(module, "glUniform1ui", gl_Uniform1ui, 2);
429
- rb_define_module_function(module, "glUniform2ui", gl_Uniform2ui, 3);
430
- rb_define_module_function(module, "glUniform3ui", gl_Uniform3ui, 4);
431
- rb_define_module_function(module, "glUniform4ui", gl_Uniform4ui, 5);
432
- rb_define_module_function(module, "glUniform1uiv", gl_Uniform1uiv, 2);
433
- rb_define_module_function(module, "glUniform2uiv", gl_Uniform2uiv, 2);
434
- rb_define_module_function(module, "glUniform3uiv", gl_Uniform3uiv, 2);
435
- rb_define_module_function(module, "glUniform4uiv", gl_Uniform4uiv, 2);
436
- rb_define_module_function(module, "glGetUniformuiv", gl_GetUniformuiv, 2);
437
- rb_define_module_function(module, "glBindFragDataLocation", gl_BindFragDataLocation, 3);
438
- rb_define_module_function(module, "glGetFragDataLocation", gl_GetFragDataLocation, 2);
409
+ rb_define_method(klass, "glVertexAttribI1i", gl_VertexAttribI1i, 2);
410
+ rb_define_method(klass, "glVertexAttribI2i", gl_VertexAttribI2i, 3);
411
+ rb_define_method(klass, "glVertexAttribI3i", gl_VertexAttribI3i, 4);
412
+ rb_define_method(klass, "glVertexAttribI4i", gl_VertexAttribI4i, 5);
413
+ rb_define_method(klass, "glVertexAttribI1ui", gl_VertexAttribI1ui, 2);
414
+ rb_define_method(klass, "glVertexAttribI2ui", gl_VertexAttribI2ui, 3);
415
+ rb_define_method(klass, "glVertexAttribI3ui", gl_VertexAttribI3ui, 4);
416
+ rb_define_method(klass, "glVertexAttribI4ui", gl_VertexAttribI4ui, 5);
417
+ rb_define_method(klass, "glVertexAttribI1iv", gl_VertexAttribI1iv, 2);
418
+ rb_define_method(klass, "glVertexAttribI2iv", gl_VertexAttribI2iv, 2);
419
+ rb_define_method(klass, "glVertexAttribI3iv", gl_VertexAttribI3iv, 2);
420
+ rb_define_method(klass, "glVertexAttribI4iv", gl_VertexAttribI4iv, 2);
421
+ rb_define_method(klass, "glVertexAttribI1uiv", gl_VertexAttribI1uiv, 2);
422
+ rb_define_method(klass, "glVertexAttribI2uiv", gl_VertexAttribI2uiv, 2);
423
+ rb_define_method(klass, "glVertexAttribI3uiv", gl_VertexAttribI3uiv, 2);
424
+ rb_define_method(klass, "glVertexAttribI4uiv", gl_VertexAttribI4uiv, 2);
425
+ rb_define_method(klass, "glVertexAttribI4bv", gl_VertexAttribI4bv, 2);
426
+ rb_define_method(klass, "glVertexAttribI4sv", gl_VertexAttribI4sv, 2);
427
+ rb_define_method(klass, "glVertexAttribI4ubv", gl_VertexAttribI4ubv, 2);
428
+ rb_define_method(klass, "glVertexAttribI4usv", gl_VertexAttribI4usv, 2);
429
+ rb_define_method(klass, "glVertexAttribIPointer", gl_VertexAttribIPointer, 5);
430
+ rb_define_method(klass, "glGetVertexAttribIiv", gl_GetVertexAttribIiv, 2);
431
+ rb_define_method(klass, "glGetVertexAttribIuiv", gl_GetVertexAttribIuiv, 2);
432
+ rb_define_method(klass, "glUniform1ui", gl_Uniform1ui, 2);
433
+ rb_define_method(klass, "glUniform2ui", gl_Uniform2ui, 3);
434
+ rb_define_method(klass, "glUniform3ui", gl_Uniform3ui, 4);
435
+ rb_define_method(klass, "glUniform4ui", gl_Uniform4ui, 5);
436
+ rb_define_method(klass, "glUniform1uiv", gl_Uniform1uiv, 2);
437
+ rb_define_method(klass, "glUniform2uiv", gl_Uniform2uiv, 2);
438
+ rb_define_method(klass, "glUniform3uiv", gl_Uniform3uiv, 2);
439
+ rb_define_method(klass, "glUniform4uiv", gl_Uniform4uiv, 2);
440
+ rb_define_method(klass, "glGetUniformuiv", gl_GetUniformuiv, 2);
441
+ rb_define_method(klass, "glBindFragDataLocation", gl_BindFragDataLocation, 3);
442
+ rb_define_method(klass, "glGetFragDataLocation", gl_GetFragDataLocation, 2);
439
443
 
440
444
  /* GL_NV_conditional_render */
441
445
 
442
446
  /* GL_APPLE_flush_buffer_range */
443
447
 
444
448
  /* #39 GL_ARB_color_buffer_float */
445
- rb_define_module_function(module, "glClampColor", gl_ClampColor, 2);
449
+ rb_define_method(klass, "glClampColor", gl_ClampColor, 2);
446
450
 
447
451
  /* #334 GL_NV_depth_buffer_float */
448
- rb_define_module_function(module, "glDepthRanged", gl_DepthRanged, 2);
449
- rb_define_module_function(module, "glClearDepthd", gl_ClearDepthd, 1);
450
- rb_define_module_function(module, "glDepthBoundsd", gl_DepthBoundsd, 2);
452
+ rb_define_method(klass, "glDepthRanged", gl_DepthRanged, 2);
453
+ rb_define_method(klass, "glClearDepthd", gl_ClearDepthd, 1);
454
+ rb_define_method(klass, "glDepthBoundsd", gl_DepthBoundsd, 2);
451
455
 
452
456
  /* #310 - GL_EXT_framebuffer_object */
453
- rb_define_module_function(module, "glIsRenderbuffer", gl_IsRenderbuffer, 1);
454
- rb_define_module_function(module, "glBindRenderbuffer", gl_BindRenderbuffer, 2);
455
- rb_define_module_function(module, "glDeleteRenderbuffers", gl_DeleteRenderbuffers, 1);
456
- rb_define_module_function(module, "glGenRenderbuffers", gl_GenRenderbuffers, 1);
457
- rb_define_module_function(module, "glRenderbufferStorage", gl_RenderbufferStorage, 4);
458
- rb_define_module_function(module, "glGetRenderbufferParameteriv", gl_GetRenderbufferParameteriv, 2);
459
- rb_define_module_function(module, "glIsFramebuffer", gl_IsFramebuffer, 1);
460
- rb_define_module_function(module, "glBindFramebuffer", gl_BindFramebuffer, 2);
461
- rb_define_module_function(module, "glDeleteFramebuffers", gl_DeleteFramebuffers, 1);
462
- rb_define_module_function(module, "glGenFramebuffers", gl_GenFramebuffers, 1);
463
- rb_define_module_function(module, "glCheckFramebufferStatus", gl_CheckFramebufferStatus, 1);
464
- rb_define_module_function(module, "glFramebufferTexture1D", gl_FramebufferTexture1D, 5);
465
- rb_define_module_function(module, "glFramebufferTexture2D", gl_FramebufferTexture2D, 5);
466
- rb_define_module_function(module, "glFramebufferTexture3D", gl_FramebufferTexture3D, 6);
467
- rb_define_module_function(module, "glFramebufferRenderbuffer", gl_FramebufferRenderbuffer, 4);
468
- rb_define_module_function(module, "glFramebufferTextureLayer", gl_FramebufferTextureLayer, 5);
469
- rb_define_module_function(module, "glGetFramebufferAttachmentParameteriv", gl_GetFramebufferAttachmentParameteriv, 3);
470
- rb_define_module_function(module, "glGenerateMipmap", gl_GenerateMipmap, 1);
457
+ rb_define_method(klass, "glIsRenderbuffer", gl_IsRenderbuffer, 1);
458
+ rb_define_method(klass, "glBindRenderbuffer", gl_BindRenderbuffer, 2);
459
+ rb_define_method(klass, "glDeleteRenderbuffers", gl_DeleteRenderbuffers, 1);
460
+ rb_define_method(klass, "glGenRenderbuffers", gl_GenRenderbuffers, 1);
461
+ rb_define_method(klass, "glRenderbufferStorage", gl_RenderbufferStorage, 4);
462
+ rb_define_method(klass, "glGetRenderbufferParameteriv", gl_GetRenderbufferParameteriv, 2);
463
+ rb_define_method(klass, "glIsFramebuffer", gl_IsFramebuffer, 1);
464
+ rb_define_method(klass, "glBindFramebuffer", gl_BindFramebuffer, 2);
465
+ rb_define_method(klass, "glDeleteFramebuffers", gl_DeleteFramebuffers, 1);
466
+ rb_define_method(klass, "glGenFramebuffers", gl_GenFramebuffers, 1);
467
+ rb_define_method(klass, "glCheckFramebufferStatus", gl_CheckFramebufferStatus, 1);
468
+ rb_define_method(klass, "glFramebufferTexture1D", gl_FramebufferTexture1D, 5);
469
+ rb_define_method(klass, "glFramebufferTexture2D", gl_FramebufferTexture2D, 5);
470
+ rb_define_method(klass, "glFramebufferTexture3D", gl_FramebufferTexture3D, 6);
471
+ rb_define_method(klass, "glFramebufferRenderbuffer", gl_FramebufferRenderbuffer, 4);
472
+ rb_define_method(klass, "glFramebufferTextureLayer", gl_FramebufferTextureLayer, 5);
473
+ rb_define_method(klass, "glGetFramebufferAttachmentParameteriv", gl_GetFramebufferAttachmentParameteriv, 3);
474
+ rb_define_method(klass, "glGenerateMipmap", gl_GenerateMipmap, 1);
471
475
 
472
476
  /* #317 - GL_EXT_framebuffer_multisample */
473
- rb_define_module_function(module, "glRenderbufferStorageMultisample", gl_RenderbufferStorageMultisample, 5);
477
+ rb_define_method(klass, "glRenderbufferStorageMultisample", gl_RenderbufferStorageMultisample, 5);
474
478
 
475
479
  /* #316 - GL_EXT_framebuffer_blit */
476
- rb_define_module_function(module, "glBlitFramebuffer", gl_BlitFramebuffer, 10);
480
+ rb_define_method(klass, "glBlitFramebuffer", gl_BlitFramebuffer, 10);
477
481
 
478
482
  /* #343 - GL_EXT_texture_integer */
479
- rb_define_module_function(module, "glClearColorIi", gl_ClearColorIi, 4);
480
- rb_define_module_function(module, "glClearColorIui", gl_ClearColorIui, 4);
481
- rb_define_module_function(module, "glTexParameterIiv", gl_TexParameterIiv, 3);
482
- rb_define_module_function(module, "glTexParameterIuiv", gl_TexParameterIuiv, 3);
483
- rb_define_module_function(module, "glGetTexParameterIiv", gl_GetTexParameterIiv, 2);
484
- rb_define_module_function(module, "glGetTexParameterIuiv", gl_GetTexParameterIuiv, 2);
483
+ rb_define_method(klass, "glClearColorIi", gl_ClearColorIi, 4);
484
+ rb_define_method(klass, "glClearColorIui", gl_ClearColorIui, 4);
485
+ rb_define_method(klass, "glTexParameterIiv", gl_TexParameterIiv, 3);
486
+ rb_define_method(klass, "glTexParameterIuiv", gl_TexParameterIuiv, 3);
487
+ rb_define_method(klass, "glGetTexParameterIiv", gl_GetTexParameterIiv, 2);
488
+ rb_define_method(klass, "glGetTexParameterIuiv", gl_GetTexParameterIuiv, 2);
485
489
 
486
490
  /* #340 - GL_EXT_draw_buffers2 */
487
- rb_define_module_function(module, "glColorMaski", gl_ColorMaski, 5);
488
- rb_define_module_function(module, "glGetBooleani_v", gl_GetBooleani_v, 2);
489
- rb_define_module_function(module, "glGetIntegeri_v", gl_GetIntegeri_v, 2);
490
- rb_define_module_function(module, "glEnablei", gl_Enablei, 2);
491
- rb_define_module_function(module, "glDisablei", gl_Disablei, 2);
492
- rb_define_module_function(module, "glIsEnabledi", gl_IsEnabledi, 2);
493
- }
491
+ rb_define_method(klass, "glColorMaski", gl_ColorMaski, 5);
492
+ rb_define_method(klass, "glGetBooleani_v", gl_GetBooleani_v, 2);
493
+ rb_define_method(klass, "glGetIntegeri_v", gl_GetIntegeri_v, 2);
494
+ rb_define_method(klass, "glEnablei", gl_Enablei, 2);
495
+ rb_define_method(klass, "glDisablei", gl_Disablei, 2);
496
+ rb_define_method(klass, "glIsEnabledi", gl_IsEnabledi, 2);
497
+
498
+ rb_define_method(klass, "glBindVertexArray", gl_BindVertexArray, 1);
499
+ rb_define_method(klass, "glDeleteVertexArrays", gl_DeleteVertexArrays, 1);
500
+ rb_define_method(klass, "glGenVertexArrays", gl_GenVertexArrays, 1);
501
+ rb_define_method(klass, "glIsVertexArray", gl_IsVertexArray, 1);
502
+ }
@@ -1,6 +1,6 @@
1
- /* This file was genereated on 2013-02-27 15:05:34 +0100
2
- source: http://www.opengl.org/registry/api/enum.spec
3
- source: http://www.opengl.org/registry/api/enumext.spec
1
+ /* This file was genereated on 2015-01-17 21:05:45 +0100
2
+ source: https://www.opengl.org/registry/oldspecs/enum.spec
3
+ source: https://www.opengl.org/registry/oldspecs/enumext.spec
4
4
  */
5
5
 
6
6
  #include "common.h"
@@ -92,6 +92,7 @@ void gl_init_enums(VALUE module)
92
92
  rb_define_const(module, "GL_ALL_COMPLETED_NV", INT2NUM(GL_ALL_COMPLETED_NV));
93
93
  rb_define_const(module, "GL_ALL_SHADER_BITS", INT2NUM(GL_ALL_SHADER_BITS));
94
94
  rb_define_const(module, "GL_ALL_SHADER_BITS_EXT", INT2NUM(GL_ALL_SHADER_BITS_EXT));
95
+ rb_define_const(module, "GL_ALL_STATIC_DATA_IBM", INT2NUM(GL_ALL_STATIC_DATA_IBM));
95
96
  rb_define_const(module, "GL_ALPHA", INT2NUM(GL_ALPHA));
96
97
  rb_define_const(module, "GL_ALPHA12", INT2NUM(GL_ALPHA12));
97
98
  rb_define_const(module, "GL_ALPHA12_EXT", INT2NUM(GL_ALPHA12_EXT));
@@ -1144,22 +1145,6 @@ void gl_init_enums(VALUE module)
1144
1145
  rb_define_const(module, "GL_EVAL_BIT", INT2NUM(GL_EVAL_BIT));
1145
1146
  rb_define_const(module, "GL_EVAL_FRACTIONAL_TESSELLATION_NV", INT2NUM(GL_EVAL_FRACTIONAL_TESSELLATION_NV));
1146
1147
  rb_define_const(module, "GL_EVAL_TRIANGULAR_2D_NV", INT2NUM(GL_EVAL_TRIANGULAR_2D_NV));
1147
- rb_define_const(module, "GL_EVAL_VERTEX_ATRRIB0_NV", INT2NUM(GL_EVAL_VERTEX_ATRRIB0_NV));
1148
- rb_define_const(module, "GL_EVAL_VERTEX_ATRRIB10_NV", INT2NUM(GL_EVAL_VERTEX_ATRRIB10_NV));
1149
- rb_define_const(module, "GL_EVAL_VERTEX_ATRRIB11_NV", INT2NUM(GL_EVAL_VERTEX_ATRRIB11_NV));
1150
- rb_define_const(module, "GL_EVAL_VERTEX_ATRRIB12_NV", INT2NUM(GL_EVAL_VERTEX_ATRRIB12_NV));
1151
- rb_define_const(module, "GL_EVAL_VERTEX_ATRRIB13_NV", INT2NUM(GL_EVAL_VERTEX_ATRRIB13_NV));
1152
- rb_define_const(module, "GL_EVAL_VERTEX_ATRRIB14_NV", INT2NUM(GL_EVAL_VERTEX_ATRRIB14_NV));
1153
- rb_define_const(module, "GL_EVAL_VERTEX_ATRRIB15_NV", INT2NUM(GL_EVAL_VERTEX_ATRRIB15_NV));
1154
- rb_define_const(module, "GL_EVAL_VERTEX_ATRRIB1_NV", INT2NUM(GL_EVAL_VERTEX_ATRRIB1_NV));
1155
- rb_define_const(module, "GL_EVAL_VERTEX_ATRRIB2_NV", INT2NUM(GL_EVAL_VERTEX_ATRRIB2_NV));
1156
- rb_define_const(module, "GL_EVAL_VERTEX_ATRRIB3_NV", INT2NUM(GL_EVAL_VERTEX_ATRRIB3_NV));
1157
- rb_define_const(module, "GL_EVAL_VERTEX_ATRRIB4_NV", INT2NUM(GL_EVAL_VERTEX_ATRRIB4_NV));
1158
- rb_define_const(module, "GL_EVAL_VERTEX_ATRRIB5_NV", INT2NUM(GL_EVAL_VERTEX_ATRRIB5_NV));
1159
- rb_define_const(module, "GL_EVAL_VERTEX_ATRRIB6_NV", INT2NUM(GL_EVAL_VERTEX_ATRRIB6_NV));
1160
- rb_define_const(module, "GL_EVAL_VERTEX_ATRRIB7_NV", INT2NUM(GL_EVAL_VERTEX_ATRRIB7_NV));
1161
- rb_define_const(module, "GL_EVAL_VERTEX_ATRRIB8_NV", INT2NUM(GL_EVAL_VERTEX_ATRRIB8_NV));
1162
- rb_define_const(module, "GL_EVAL_VERTEX_ATRRIB9_NV", INT2NUM(GL_EVAL_VERTEX_ATRRIB9_NV));
1163
1148
  rb_define_const(module, "GL_EVAL_VERTEX_ATTRIB0_NV", INT2NUM(GL_EVAL_VERTEX_ATTRIB0_NV));
1164
1149
  rb_define_const(module, "GL_EVAL_VERTEX_ATTRIB10_NV", INT2NUM(GL_EVAL_VERTEX_ATTRIB10_NV));
1165
1150
  rb_define_const(module, "GL_EVAL_VERTEX_ATTRIB11_NV", INT2NUM(GL_EVAL_VERTEX_ATTRIB11_NV));
@@ -1307,17 +1292,13 @@ void gl_init_enums(VALUE module)
1307
1292
  rb_define_const(module, "GL_FOG_DENSITY", INT2NUM(GL_FOG_DENSITY));
1308
1293
  rb_define_const(module, "GL_FOG_DISTANCE_MODE_NV", INT2NUM(GL_FOG_DISTANCE_MODE_NV));
1309
1294
  rb_define_const(module, "GL_FOG_END", INT2NUM(GL_FOG_END));
1310
- rb_define_const(module, "GL_FOG_FACTOR_TO_ALPHA_SGIX", INT2NUM(GL_FOG_FACTOR_TO_ALPHA_SGIX));
1311
1295
  rb_define_const(module, "GL_FOG_FUNC_POINTS_SGIS", INT2NUM(GL_FOG_FUNC_POINTS_SGIS));
1312
1296
  rb_define_const(module, "GL_FOG_FUNC_SGIS", INT2NUM(GL_FOG_FUNC_SGIS));
1313
- rb_define_const(module, "GL_FOG_GEN_MODE_NV", INT2NUM(GL_FOG_GEN_MODE_NV));
1314
1297
  rb_define_const(module, "GL_FOG_HINT", INT2NUM(GL_FOG_HINT));
1315
1298
  rb_define_const(module, "GL_FOG_INDEX", INT2NUM(GL_FOG_INDEX));
1316
1299
  rb_define_const(module, "GL_FOG_MODE", INT2NUM(GL_FOG_MODE));
1317
1300
  rb_define_const(module, "GL_FOG_OFFSET_SGIX", INT2NUM(GL_FOG_OFFSET_SGIX));
1318
1301
  rb_define_const(module, "GL_FOG_OFFSET_VALUE_SGIX", INT2NUM(GL_FOG_OFFSET_VALUE_SGIX));
1319
- rb_define_const(module, "GL_FOG_SCALE_SGIX", INT2NUM(GL_FOG_SCALE_SGIX));
1320
- rb_define_const(module, "GL_FOG_SCALE_VALUE_SGIX", INT2NUM(GL_FOG_SCALE_VALUE_SGIX));
1321
1302
  rb_define_const(module, "GL_FOG_SPECULAR_TEXTURE_WIN", INT2NUM(GL_FOG_SPECULAR_TEXTURE_WIN));
1322
1303
  rb_define_const(module, "GL_FOG_START", INT2NUM(GL_FOG_START));
1323
1304
  rb_define_const(module, "GL_FONT_ASCENDER_BIT_NV", INT2NUM(GL_FONT_ASCENDER_BIT_NV));
@@ -1970,6 +1951,7 @@ void gl_init_enums(VALUE module)
1970
1951
  rb_define_const(module, "GL_MAGNITUDE_BIAS_NV", INT2NUM(GL_MAGNITUDE_BIAS_NV));
1971
1952
  rb_define_const(module, "GL_MAGNITUDE_SCALE_NV", INT2NUM(GL_MAGNITUDE_SCALE_NV));
1972
1953
  rb_define_const(module, "GL_MAJOR_VERSION", INT2NUM(GL_MAJOR_VERSION));
1954
+ rb_define_const(module, "GL_MALI_PROGRAM_BINARY_ARM", INT2NUM(GL_MALI_PROGRAM_BINARY_ARM));
1973
1955
  rb_define_const(module, "GL_MALI_SHADER_BINARY_ARM", INT2NUM(GL_MALI_SHADER_BINARY_ARM));
1974
1956
  rb_define_const(module, "GL_MANUAL_GENERATE_MIPMAP", INT2NUM(GL_MANUAL_GENERATE_MIPMAP));
1975
1957
  rb_define_const(module, "GL_MAP1_BINORMAL_EXT", INT2NUM(GL_MAP1_BINORMAL_EXT));
@@ -2308,7 +2290,6 @@ void gl_init_enums(VALUE module)
2308
2290
  rb_define_const(module, "GL_MAX_PROGRAM_TEMPORARIES_ARB", INT2NUM(GL_MAX_PROGRAM_TEMPORARIES_ARB));
2309
2291
  rb_define_const(module, "GL_MAX_PROGRAM_TEXEL_OFFSET", INT2NUM(GL_MAX_PROGRAM_TEXEL_OFFSET));
2310
2292
  rb_define_const(module, "GL_MAX_PROGRAM_TEXEL_OFFSET_NV", INT2NUM(GL_MAX_PROGRAM_TEXEL_OFFSET_NV));
2311
- rb_define_const(module, "GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS", INT2NUM(GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS));
2312
2293
  rb_define_const(module, "GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB", INT2NUM(GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB));
2313
2294
  rb_define_const(module, "GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET", INT2NUM(GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET));
2314
2295
  rb_define_const(module, "GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB", INT2NUM(GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB));
@@ -2507,7 +2488,6 @@ void gl_init_enums(VALUE module)
2507
2488
  rb_define_const(module, "GL_MODELVIEW8_ARB", INT2NUM(GL_MODELVIEW8_ARB));
2508
2489
  rb_define_const(module, "GL_MODELVIEW9_ARB", INT2NUM(GL_MODELVIEW9_ARB));
2509
2490
  rb_define_const(module, "GL_MODELVIEW_MATRIX", INT2NUM(GL_MODELVIEW_MATRIX));
2510
- rb_define_const(module, "GL_MODELVIEW_MATRIX1_EXT", INT2NUM(GL_MODELVIEW_MATRIX1_EXT));
2511
2491
  rb_define_const(module, "GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES", INT2NUM(GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES));
2512
2492
  rb_define_const(module, "GL_MODELVIEW_PROJECTION_NV", INT2NUM(GL_MODELVIEW_PROJECTION_NV));
2513
2493
  rb_define_const(module, "GL_MODELVIEW_STACK_DEPTH", INT2NUM(GL_MODELVIEW_STACK_DEPTH));
@@ -3453,6 +3433,7 @@ void gl_init_enums(VALUE module)
3453
3433
  rb_define_const(module, "GL_RGBA8UI", INT2NUM(GL_RGBA8UI));
3454
3434
  rb_define_const(module, "GL_RGBA8UI_EXT", INT2NUM(GL_RGBA8UI_EXT));
3455
3435
  rb_define_const(module, "GL_RGBA8_EXT", INT2NUM(GL_RGBA8_EXT));
3436
+ rb_define_const(module, "GL_RGBA8_OES", INT2NUM(GL_RGBA8_OES));
3456
3437
  rb_define_const(module, "GL_RGBA8_SNORM", INT2NUM(GL_RGBA8_SNORM));
3457
3438
  rb_define_const(module, "GL_RGBA_DXT5_S3TC", INT2NUM(GL_RGBA_DXT5_S3TC));
3458
3439
  rb_define_const(module, "GL_RGBA_FLOAT16_APPLE", INT2NUM(GL_RGBA_FLOAT16_APPLE));
@@ -3832,6 +3813,7 @@ void gl_init_enums(VALUE module)
3832
3813
  rb_define_const(module, "GL_STATIC_DRAW_ARB", INT2NUM(GL_STATIC_DRAW_ARB));
3833
3814
  rb_define_const(module, "GL_STATIC_READ", INT2NUM(GL_STATIC_READ));
3834
3815
  rb_define_const(module, "GL_STATIC_READ_ARB", INT2NUM(GL_STATIC_READ_ARB));
3816
+ rb_define_const(module, "GL_STATIC_VERTEX_ARRAY_IBM", INT2NUM(GL_STATIC_VERTEX_ARRAY_IBM));
3835
3817
  rb_define_const(module, "GL_STENCIL", INT2NUM(GL_STENCIL));
3836
3818
  rb_define_const(module, "GL_STENCIL_ATTACHMENT", INT2NUM(GL_STENCIL_ATTACHMENT));
3837
3819
  rb_define_const(module, "GL_STENCIL_ATTACHMENT_EXT", INT2NUM(GL_STENCIL_ATTACHMENT_EXT));
@@ -4336,8 +4318,8 @@ void gl_init_enums(VALUE module)
4336
4318
  rb_define_const(module, "GL_TEXT_FRAGMENT_SHADER_ATI", INT2NUM(GL_TEXT_FRAGMENT_SHADER_ATI));
4337
4319
  rb_define_const(module, "GL_TIMEOUT_EXPIRED", INT2NUM(GL_TIMEOUT_EXPIRED));
4338
4320
  rb_define_const(module, "GL_TIMEOUT_EXPIRED_APPLE", INT2NUM(GL_TIMEOUT_EXPIRED_APPLE));
4339
- rb_define_const(module, "GL_TIMEOUT_IGNORED", LL2NUM(GL_TIMEOUT_IGNORED));
4340
- rb_define_const(module, "GL_TIMEOUT_IGNORED_APPLE", LL2NUM(GL_TIMEOUT_IGNORED_APPLE));
4321
+ rb_define_const(module, "GL_TIMEOUT_IGNORED", INT2NUM(GL_TIMEOUT_IGNORED));
4322
+ rb_define_const(module, "GL_TIMEOUT_IGNORED_APPLE", INT2NUM(GL_TIMEOUT_IGNORED_APPLE));
4341
4323
  rb_define_const(module, "GL_TIMESTAMP", INT2NUM(GL_TIMESTAMP));
4342
4324
  rb_define_const(module, "GL_TIME_ELAPSED", INT2NUM(GL_TIME_ELAPSED));
4343
4325
  rb_define_const(module, "GL_TIME_ELAPSED_EXT", INT2NUM(GL_TIME_ELAPSED_EXT));
@@ -4425,7 +4407,6 @@ void gl_init_enums(VALUE module)
4425
4407
  rb_define_const(module, "GL_TRIANGLE_STRIP_ADJACENCY_EXT", INT2NUM(GL_TRIANGLE_STRIP_ADJACENCY_EXT));
4426
4408
  rb_define_const(module, "GL_TRIANGULAR_NV", INT2NUM(GL_TRIANGULAR_NV));
4427
4409
  rb_define_const(module, "GL_TYPE", INT2NUM(GL_TYPE));
4428
- rb_define_const(module, "GL_TYPE_RGBA_FLOAT_ATI", INT2NUM(GL_TYPE_RGBA_FLOAT_ATI));
4429
4410
  rb_define_const(module, "GL_UNDEFINED_APPLE", INT2NUM(GL_UNDEFINED_APPLE));
4430
4411
  rb_define_const(module, "GL_UNDEFINED_VERTEX", INT2NUM(GL_UNDEFINED_VERTEX));
4431
4412
  rb_define_const(module, "GL_UNIFORM", INT2NUM(GL_UNIFORM));
@@ -4579,7 +4560,6 @@ void gl_init_enums(VALUE module)
4579
4560
  rb_define_const(module, "GL_UNSIGNED_INT_VEC4", INT2NUM(GL_UNSIGNED_INT_VEC4));
4580
4561
  rb_define_const(module, "GL_UNSIGNED_INT_VEC4_EXT", INT2NUM(GL_UNSIGNED_INT_VEC4_EXT));
4581
4562
  rb_define_const(module, "GL_UNSIGNED_INVERT_NV", INT2NUM(GL_UNSIGNED_INVERT_NV));
4582
- rb_define_const(module, "GL_UNSIGNED_NEGATE_NV", INT2NUM(GL_UNSIGNED_NEGATE_NV));
4583
4563
  rb_define_const(module, "GL_UNSIGNED_NORMALIZED", INT2NUM(GL_UNSIGNED_NORMALIZED));
4584
4564
  rb_define_const(module, "GL_UNSIGNED_NORMALIZED_ARB", INT2NUM(GL_UNSIGNED_NORMALIZED_ARB));
4585
4565
  rb_define_const(module, "GL_UNSIGNED_NORMALIZED_EXT", INT2NUM(GL_UNSIGNED_NORMALIZED_EXT));