opengl 0.9.2 → 0.10.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/Gemfile +8 -0
  5. data/Manifest.txt +5 -1
  6. data/README.rdoc +25 -28
  7. data/Rakefile +56 -28
  8. data/examples/RedBook/font.rb +2 -2
  9. data/examples/RedBook/light.rb +2 -0
  10. data/examples/RedBook/stroke.rb +6 -6
  11. data/ext/opengl/GL/gl.h +2115 -0
  12. data/ext/opengl/GL/glext.h +11770 -0
  13. data/ext/opengl/common.h +116 -172
  14. data/ext/opengl/conv.h +2 -2
  15. data/ext/opengl/extconf.rb +3 -31
  16. data/ext/opengl/fptr_struct.h +912 -0
  17. data/ext/opengl/funcdef.h +29 -63
  18. data/ext/opengl/gl-1.0-1.1.c +918 -648
  19. data/ext/opengl/gl-1.2.c +13 -13
  20. data/ext/opengl/gl-1.3.c +68 -64
  21. data/ext/opengl/gl-1.4.c +64 -66
  22. data/ext/opengl/gl-1.5.c +32 -31
  23. data/ext/opengl/gl-2.0.c +126 -128
  24. data/ext/opengl/gl-2.1.c +8 -8
  25. data/ext/opengl/gl-3.0.c +102 -93
  26. data/ext/opengl/gl-enums.c +9 -29
  27. data/ext/opengl/gl-enums.h +31 -91
  28. data/ext/opengl/gl-error.c +15 -17
  29. data/ext/opengl/gl-error.h +4 -7
  30. data/ext/opengl/gl-ext-3dfx.c +2 -2
  31. data/ext/opengl/gl-ext-arb.c +176 -171
  32. data/ext/opengl/gl-ext-ati.c +4 -4
  33. data/ext/opengl/gl-ext-ext.c +151 -155
  34. data/ext/opengl/gl-ext-gremedy.c +4 -4
  35. data/ext/opengl/gl-ext-nv.c +141 -142
  36. data/ext/opengl/gl.c +121 -76
  37. data/ext/opengl/gl_buffer.c +44 -19
  38. data/ext/opengl/glimpl.c +187 -0
  39. data/ext/opengl/glimpl.h +47 -0
  40. data/ext/opengl/opengl.c +5 -3
  41. data/lib/opengl.rb +24 -4
  42. data/lib/opengl/bindings_version.rb +4 -0
  43. data/lib/opengl/implementation.rb +38 -0
  44. data/opengl.gemspec +33 -0
  45. data/test/test_gl.rb +7 -0
  46. data/test/test_gl_21.rb +21 -21
  47. data/test/test_gl_ext_arb.rb +1 -1
  48. data/test/test_glimpl.rb +23 -0
  49. data/test/test_opengl_buffer.rb +2 -0
  50. data/utils/enumgen.rb +2 -2
  51. metadata +86 -56
  52. metadata.gz.sig +0 -0
  53. data/ext/opengl/gl-types.h +0 -67
@@ -0,0 +1,47 @@
1
+ #ifndef _GLIMPL_H_
2
+ #define _GLIMPL_H_
3
+
4
+ #ifndef GLFUNC_MAGIC_START
5
+ #include "fptr_struct.h"
6
+ #endif
7
+
8
+ #define GET_GLIMPL_VARIABLE(_name_) \
9
+ (((struct glimpl *)DATA_PTR(obj))->_name_)
10
+
11
+ #define SET_GLIMPL_VARIABLE(_name_,_val_) \
12
+ ((struct glimpl *)DATA_PTR(obj))->_name_ = (_val_)
13
+
14
+ /* at least GL_MAX_VERTEX_ATTRIBS - usually 16 or 32 on today's high-end cards */
15
+ #define _MAX_VERTEX_ATTRIBS 64
16
+
17
+ extern VALUE g_default_glimpl;
18
+
19
+ struct glimpl {
20
+ struct glfunc_ptrs glfuncs;
21
+
22
+ int opengl_version[2]; /* major, minor */
23
+ char *opengl_extensions;
24
+
25
+ void * (* load_gl_function)(VALUE self, const char *name,int raise);
26
+
27
+ VALUE current_feed_buffer;
28
+ VALUE current_sel_buffer;
29
+ VALUE Vertex_ptr;
30
+ VALUE Normal_ptr;
31
+ VALUE Color_ptr;
32
+ VALUE Index_ptr;
33
+ VALUE TexCoord_ptr;
34
+ VALUE EdgeFlag_ptr;
35
+ VALUE FogCoord_ptr; /* OpenGL 1.4 */
36
+ VALUE SecondaryColor_ptr; /* OpenGL 1.4 */
37
+ VALUE VertexAttrib_ptr[_MAX_VERTEX_ATTRIBS];
38
+
39
+ VALUE error_checking;
40
+ VALUE inside_begin_end;
41
+
42
+ void *dl;
43
+ void * (* fptr_GetProcAddress)(const char *name);
44
+ };
45
+
46
+
47
+ #endif /* _GLIMPL_H_ */
@@ -1,7 +1,9 @@
1
1
  #include "common.h"
2
2
 
3
- void Init_gl(void);
3
+ void Init_gl(VALUE);
4
4
 
5
- DLLEXPORT void Init_opengl() {
6
- Init_gl();
5
+ void Init_opengl() {
6
+ VALUE module = rb_define_module("Gl");
7
+
8
+ Init_gl(module);
7
9
  }
@@ -20,10 +20,6 @@
20
20
  # Thanks to Ilmari Heikkinen for a previous "reversed" version of this code,
21
21
  # and to Bill Kelly for a version before that one.
22
22
 
23
- module OpenGL
24
- VERSION = '0.9.2'
25
- end
26
-
27
23
  begin
28
24
  RUBY_VERSION =~ /(\d+.\d+)/
29
25
  require "opengl/#{$1}/opengl"
@@ -31,6 +27,28 @@ rescue LoadError
31
27
  require 'opengl/opengl'
32
28
  end
33
29
 
30
+ require 'opengl/implementation'
31
+ require 'opengl/bindings_version'
32
+
33
+ module Gl
34
+ meths = Gl::Implementation.instance_methods.select{|mn| mn=~/^gl/ }
35
+ meths += %w[is_available? is_supported?
36
+ extension_available? extension_supported?
37
+ version_available? version_supported?
38
+ enable_error_checking disable_error_checking is_error_checking_enabled?
39
+ ]
40
+
41
+ meths.each do |mn|
42
+ define_singleton_method(mn) do |*args,&block|
43
+ implementation.send(mn, *args, &block)
44
+ end
45
+ define_method(mn) do |*args,&block|
46
+ implementation.send(mn, *args, &block)
47
+ end
48
+ private mn
49
+ end
50
+ end
51
+
34
52
  # (Gl.)glVertex -> GL.Vertex
35
53
  # (Gl::)GL_TRUE -> GL::TRUE
36
54
  module GL
@@ -51,3 +69,5 @@ module GL
51
69
  public( n )
52
70
  end
53
71
  end
72
+
73
+ OpenGL = Gl
@@ -0,0 +1,4 @@
1
+ module Gl
2
+ BINDINGS_VERSION = '0.10.0.pre1'
3
+ RUBY_OPENGL_VERSION = BINDINGS_VERSION
4
+ end
@@ -0,0 +1,38 @@
1
+
2
+ module Gl
3
+ if RUBY_PLATFORM =~ /mingw|mswin/i
4
+ class ImplementationWindows < Implementation
5
+ DLPATH = "opengl32.dll"
6
+ def self.open
7
+ super(DLPATH, "wglGetProcAddress")
8
+ end
9
+ end
10
+
11
+ Gl::DefaultImplementation = ImplementationWindows
12
+
13
+ elsif RUBY_PLATFORM =~ /darwin/i
14
+ class ImplementationOSX < Implementation
15
+ DLPATH = "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL"
16
+ def self.open
17
+ super(DLPATH)
18
+ end
19
+ end
20
+
21
+ Gl::DefaultImplementation = ImplementationOSX
22
+
23
+ else
24
+ class ImplementationGLX < Implementation
25
+ DLPATH = "libGL.so"
26
+ def self.open
27
+ begin
28
+ super(DLPATH, "glXGetProcAddress")
29
+ rescue NotImplementedError
30
+ super(DLPATH, "glXGetProcAddressARB")
31
+ end
32
+ end
33
+ end
34
+
35
+ Gl::DefaultImplementation = ImplementationGLX
36
+
37
+ end
38
+ end
@@ -0,0 +1,33 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'opengl/bindings_version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "opengl"
8
+ spec.version = Gl::BINDINGS_VERSION
9
+ spec.authors = ["Eric Hodel", "Lars Kanis", "Bla\u{17e} Hrastnik", "Alain Hoang", "Jan Dvorak", "Minh Thu Vo", "James Adam"]
10
+ spec.email = ["drbrain@segment7.net", "lars@greiz-reinsdorf.de", "blaz@mxxn.io", "", "", "", ""]
11
+ spec.summary = "An OpenGL wrapper for Ruby"
12
+ spec.description = "An OpenGL wrapper for Ruby. opengl contains bindings for OpenGL.\n\nBe sure to check out\n{GLU}[https://github.com/larskanis/glu] and\n{GLUT}[https://github.com/larskanis/glut]\ngems."
13
+ spec.homepage = "https://github.com/larskanis/opengl"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0") +
17
+ ["ext/opengl/fptr_struct.h"]
18
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
+ spec.require_paths = ["lib"]
21
+ spec.extensions = ["ext/opengl/extconf.rb"]
22
+ spec.rdoc_options = ["--main", "README.rdoc"]
23
+
24
+ spec.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
25
+ spec.add_development_dependency "bundler", "~> 1.5"
26
+ spec.add_development_dependency "rake"
27
+ spec.add_development_dependency 'minitest', '~> 5.3.0'
28
+ spec.add_development_dependency 'rake-compiler', '~> 0.9.1'
29
+ spec.add_development_dependency 'rake-compiler-dock', '~> 0.5.0'
30
+ spec.add_development_dependency 'glu', '~> 8.1'
31
+ spec.add_development_dependency 'glut', '~> 8.1'
32
+ end
33
+
@@ -35,4 +35,11 @@ class TestGl < OpenGL::TestCase
35
35
  assert(false) # error not detected
36
36
  end
37
37
  end
38
+
39
+ def test_implementation
40
+ old_glimpl = Gl.implementation
41
+ Gl.implementation = Gl::DefaultImplementation.open
42
+
43
+ refute_equal old_glimpl, Gl.implementation
44
+ end
38
45
  end
@@ -134,7 +134,7 @@ void main() {
134
134
  end
135
135
 
136
136
  def test_pixelunpack_bitmap
137
- skip("Segfaults on Mesa until upstream fixes it")
137
+ skip("Segfaults on Mesa before 10") if glGetString(GL::VERSION)=~/Mesa (\d+)\.(\d+)\.(\d+)/ && $1.to_i<10
138
138
  glOrtho(0, WINDOW_SIZE, 0, WINDOW_SIZE, 0, -1)
139
139
 
140
140
  bitmap = [ 0x55 ] * 8 # 64 bits (8x8 bitmap), stipple pattern
@@ -328,12 +328,12 @@ void main() {
328
328
 
329
329
  buffers = glGenBuffers(1)
330
330
  glBindBuffer(GL_PIXEL_PACK_BUFFER, buffers[0])
331
- glBufferData(GL_PIXEL_PACK_BUFFER_ARB, 4*4*4*3, nil, GL_STREAM_READ)
331
+ glBufferData(GL_PIXEL_PACK_BUFFER, 4*4*4*3, nil, GL_STREAM_READ)
332
332
  glReadPixels(0, 0, 4, 4, GL_RGB, GL_FLOAT, 0)
333
333
 
334
- data = glMapBuffer(GL_PIXEL_PACK_BUFFER_ARB, GL_READ_ONLY)
334
+ data = glMapBuffer(GL_PIXEL_PACK_BUFFER, GL_READ_ONLY)
335
335
  assert_equal(image, data)
336
- glUnmapBuffer(GL_PIXEL_PACK_BUFFER_ARB)
336
+ glUnmapBuffer(GL_PIXEL_PACK_BUFFER)
337
337
 
338
338
  glDeleteBuffers(buffers)
339
339
  end
@@ -341,33 +341,33 @@ void main() {
341
341
  def test_pixelpack_pixelmap
342
342
  buffers = glGenBuffers(1)
343
343
  glBindBuffer(GL_PIXEL_PACK_BUFFER, buffers[0])
344
- glBufferData(GL_PIXEL_PACK_BUFFER_ARB, 4*4, nil, GL_STREAM_READ)
344
+ glBufferData(GL_PIXEL_PACK_BUFFER, 4*4, nil, GL_STREAM_READ)
345
345
 
346
346
  # fv
347
347
  glPixelMapfv(GL_PIXEL_MAP_I_TO_I, [1, 2, 3, 4])
348
348
  glGetPixelMapfv(GL_PIXEL_MAP_I_TO_I, 0)
349
349
 
350
- data = glMapBuffer(GL_PIXEL_PACK_BUFFER_ARB, GL_READ_ONLY)
350
+ data = glMapBuffer(GL_PIXEL_PACK_BUFFER, GL_READ_ONLY)
351
351
  assert_equal([1, 2, 3, 4].pack("f*"), data)
352
- glUnmapBuffer(GL_PIXEL_PACK_BUFFER_ARB)
352
+ glUnmapBuffer(GL_PIXEL_PACK_BUFFER)
353
353
 
354
354
  # uiv
355
355
  glPixelMapuiv(GL_PIXEL_MAP_I_TO_I, [5, 6, 7, 8])
356
356
  glGetPixelMapuiv(GL_PIXEL_MAP_I_TO_I, 0)
357
357
 
358
- data = glMapBuffer(GL_PIXEL_PACK_BUFFER_ARB, GL_READ_ONLY)
358
+ data = glMapBuffer(GL_PIXEL_PACK_BUFFER, GL_READ_ONLY)
359
359
  assert_equal([5, 6, 7, 8].pack("I*"), data)
360
- glUnmapBuffer(GL_PIXEL_PACK_BUFFER_ARB)
360
+ glUnmapBuffer(GL_PIXEL_PACK_BUFFER)
361
361
 
362
362
  # usv
363
- glBufferData(GL_PIXEL_PACK_BUFFER_ARB, 4*2, nil, GL_STREAM_READ)
363
+ glBufferData(GL_PIXEL_PACK_BUFFER, 4*2, nil, GL_STREAM_READ)
364
364
 
365
365
  glPixelMapusv(GL_PIXEL_MAP_I_TO_I, [9, 10, 11, 12])
366
366
  glGetPixelMapusv(GL_PIXEL_MAP_I_TO_I, 0)
367
367
 
368
- data = glMapBuffer(GL_PIXEL_PACK_BUFFER_ARB, GL_READ_ONLY)
368
+ data = glMapBuffer(GL_PIXEL_PACK_BUFFER, GL_READ_ONLY)
369
369
  assert_equal([9, 10, 11, 12].pack("S*"), data)
370
- glUnmapBuffer(GL_PIXEL_PACK_BUFFER_ARB)
370
+ glUnmapBuffer(GL_PIXEL_PACK_BUFFER)
371
371
 
372
372
  glDeleteBuffers(buffers)
373
373
  end
@@ -377,14 +377,14 @@ void main() {
377
377
 
378
378
  buffers = glGenBuffers(1)
379
379
  glBindBuffer(GL_PIXEL_PACK_BUFFER, buffers[0])
380
- glBufferData(GL_PIXEL_PACK_BUFFER_ARB, 128, nil, GL_STREAM_READ)
380
+ glBufferData(GL_PIXEL_PACK_BUFFER, 128, nil, GL_STREAM_READ)
381
381
 
382
382
  glPolygonStipple(stipple.pack("c*"))
383
383
  glGetPolygonStipple(0)
384
384
 
385
- data = glMapBuffer(GL_PIXEL_PACK_BUFFER_ARB, GL_READ_ONLY)
385
+ data = glMapBuffer(GL_PIXEL_PACK_BUFFER, GL_READ_ONLY)
386
386
  assert_equal(stipple.pack("c*"), data)
387
- glUnmapBuffer(GL_PIXEL_PACK_BUFFER_ARB)
387
+ glUnmapBuffer(GL_PIXEL_PACK_BUFFER)
388
388
 
389
389
  glDeleteBuffers(buffers)
390
390
  end
@@ -397,14 +397,14 @@ void main() {
397
397
 
398
398
  buffers = glGenBuffers(1)
399
399
  glBindBuffer(GL_PIXEL_PACK_BUFFER, buffers[0])
400
- glBufferData(GL_PIXEL_PACK_BUFFER_ARB, 16*3*4, nil, GL_STREAM_READ)
400
+ glBufferData(GL_PIXEL_PACK_BUFFER, 16*3*4, nil, GL_STREAM_READ)
401
401
 
402
402
  glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB8, 4, 4, 0, GL_RGB, GL_FLOAT, image)
403
403
  glGetTexImage(GL_TEXTURE_2D, 0, GL_RGB, GL_FLOAT, 0)
404
404
 
405
- data = glMapBuffer(GL_PIXEL_PACK_BUFFER_ARB, GL_READ_ONLY)
405
+ data = glMapBuffer(GL_PIXEL_PACK_BUFFER, GL_READ_ONLY)
406
406
  assert_equal(image, data)
407
- glUnmapBuffer(GL_PIXEL_PACK_BUFFER_ARB)
407
+ glUnmapBuffer(GL_PIXEL_PACK_BUFFER)
408
408
 
409
409
  glDeleteBuffers(buffers)
410
410
  glDeleteTextures(textures)
@@ -421,14 +421,14 @@ void main() {
421
421
 
422
422
  buffers = glGenBuffers(1)
423
423
  glBindBuffer(GL_PIXEL_PACK_BUFFER, buffers[0])
424
- glBufferData(GL_PIXEL_PACK_BUFFER_ARB, image.size, nil, GL_STREAM_READ)
424
+ glBufferData(GL_PIXEL_PACK_BUFFER, image.size, nil, GL_STREAM_READ)
425
425
 
426
426
  glCompressedTexImage2D(GL_TEXTURE_2D, 0, GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, 2, 2, 0, 16, image)
427
427
  glGetCompressedTexImage(GL_TEXTURE_2D, 0, 0)
428
428
 
429
- data = glMapBuffer(GL_PIXEL_PACK_BUFFER_ARB, GL_READ_ONLY)
429
+ data = glMapBuffer(GL_PIXEL_PACK_BUFFER, GL_READ_ONLY)
430
430
  assert_equal(image, data)
431
- glUnmapBuffer(GL_PIXEL_PACK_BUFFER_ARB)
431
+ glUnmapBuffer(GL_PIXEL_PACK_BUFFER)
432
432
 
433
433
  glDeleteBuffers(buffers)
434
434
  glDeleteTextures(textures)
@@ -500,7 +500,7 @@ void main() {
500
500
  glUseProgramObjectARB(program)
501
501
 
502
502
  assert_equal 2, glGetAttribLocationARB(program, "test")
503
- assert_equal [1, GL_FLOAT_VEC4, "gl_Vertex"], glGetActiveAttribARB(program, 1)
503
+ assert_equal [1, GL_FLOAT_VEC4, "gl_Vertex"], glGetActiveAttribARB(program, 0)
504
504
 
505
505
  glDeleteObjectARB(vs)
506
506
  glDeleteObjectARB(program)
@@ -0,0 +1,23 @@
1
+ require 'opengl/test_case'
2
+
3
+ class TestGlimpl < OpenGL::TestCase
4
+ def test_dl_load_error
5
+ assert_raises(LoadError){ Gl::Implementation.open("not exist") }
6
+ end
7
+
8
+ def test_GetProcAddress_error
9
+ assert_raises(NotImplementedError){ Gl::Implementation.open(Gl::DefaultImplementation::DLPATH, "not exist") }
10
+ end
11
+
12
+ def test_close
13
+ gl = Gl::DefaultImplementation.open
14
+ assert_nil gl.close
15
+ assert_nil gl.close
16
+ end
17
+
18
+ def test_instance_methods
19
+ gl = Gl::DefaultImplementation.open
20
+ assert_match(/^\d+\.\d+/, gl.glGetString(GL::VERSION))
21
+ assert_kind_of(Array, gl.glGetIntegerv(GL::VIEWPORT))
22
+ end
23
+ end
@@ -108,8 +108,10 @@ class TestOpenGLBuffer < OpenGL::TestCase
108
108
  buffer = glGenBuffers(1).first
109
109
 
110
110
  glBindBuffer GL_ARRAY_BUFFER, buffer
111
+ glBufferData GL_ARRAY_BUFFER, 5, 'hello', GL_STREAM_READ
111
112
 
112
113
  buf = OpenGL::Buffer.map GL_ARRAY_BUFFER, GL_READ_WRITE
114
+ buf.unmap
113
115
 
114
116
  e = assert_raises ArgumentError do
115
117
  buf.write 'hello'
@@ -84,8 +84,8 @@ end
84
84
  # main
85
85
  begin
86
86
  gl_enums = {:c => "../ext/opengl/gl-enums.c",:h => "../ext/opengl/gl-enums.h",
87
- :sources => ["http://www.opengl.org/registry/api/enum.spec",
88
- "http://www.opengl.org/registry/api/enumext.spec"],
87
+ :sources => ["https://www.opengl.org/registry/oldspecs/enum.spec",
88
+ "https://www.opengl.org/registry/oldspecs/enumext.spec"],
89
89
  :prefix => "GL_"
90
90
  }
91
91
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opengl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.10.0.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hodel
@@ -16,77 +16,99 @@ bindir: bin
16
16
  cert_chain:
17
17
  - |
18
18
  -----BEGIN CERTIFICATE-----
19
- MIIDLjCCAhagAwIBAgIBAjANBgkqhkiG9w0BAQUFADA9MQ4wDAYDVQQDDAVrYW5p
20
- czEXMBUGCgmSJomT8ixkARkWB2NvbWNhcmQxEjAQBgoJkiaJk/IsZAEZFgJkZTAe
21
- Fw0xNDAyMjYwOTMzMDBaFw0xNTAyMjYwOTMzMDBaMD0xDjAMBgNVBAMMBWthbmlz
22
- MRcwFQYKCZImiZPyLGQBGRYHY29tY2FyZDESMBAGCgmSJomT8ixkARkWAmRlMIIB
23
- IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApop+rNmg35bzRugZ21VMGqI6
24
- HGzPLO4VHYncWn/xmgPU/ZMcZdfj6MzIaZJ/czXyt4eHpBk1r8QOV3gBXnRXEjVW
25
- 9xi+EdVOkTV2/AVFKThcbTAQGiF/bT1n2M+B1GTybRzMg6hyhOJeGPqIhLfJEpxn
26
- lJi4+ENAVT4MpqHEAGB8yFoPC0GqiOHQsdHxQV3P3c2OZqG+yJey74QtwA2tLcLn
27
- Q53c63+VLGsOjODl1yPn/2ejyq8qWu6ahfTxiIlSar2UbwtaQGBDFdb2CXgEufXT
28
- L7oaPxlmj+Q2oLOfOnInd2Oxop59HoJCQPsg8f921J43NCQGA8VHK6paxIRDLQID
29
- AQABozkwNzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUvgTdT7fe
30
- x17ugO3IOsjEJwW7KP4wDQYJKoZIhvcNAQEFBQADggEBAFmIAhRT0awqLQN9e4Uv
31
- ZEk+jUWv4zkb+TWiKFJXlwjPyjGbZY9gVfOwAwMibYOK/t/+57ZzW3d0L12OUwvo
32
- on84NVvYtIr1/iskJFWFkMoIquAFCdi9p68stSPMQK2XcrJJuRot29fJtropsZBa
33
- 2cpaNd/sRYdK4oep2usdKifA1lI0hIkPb3r5nLfwG2lAqBH7WZsUICHcTgR0VEbG
34
- z9Ug5qQp9Uz73xC9YdGvGiuOX53LYobHAR4MWi2xxDlHI+ER8mRz0eY2FUuNu/Wj
35
- GrqF74zpLl7/KFdHC8VmzwZS18hvDjxeLVuVI2gIGnBInqnlqv05g/l4/1pISh5j
36
- dS4=
19
+ MIIDPDCCAiSgAwIBAgIBAjANBgkqhkiG9w0BAQUFADBEMQ0wCwYDVQQDDARsYXJz
20
+ MR8wHQYKCZImiZPyLGQBGRYPZ3JlaXotcmVpbnNkb3JmMRIwEAYKCZImiZPyLGQB
21
+ GRYCZGUwHhcNMTUwMzEzMjAzMjExWhcNMTYwMzEyMjAzMjExWjBEMQ0wCwYDVQQD
22
+ DARsYXJzMR8wHQYKCZImiZPyLGQBGRYPZ3JlaXotcmVpbnNkb3JmMRIwEAYKCZIm
23
+ iZPyLGQBGRYCZGUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZb4Uv
24
+ RFJfRu/VEWiy3psh2jinETjiuBrL0NeRFGf8H7iU9+gx/DI/FFhfHGLrDeIskrJx
25
+ YIWDMmEjVO10UUdj7wu4ZhmU++0Cd7Kq9/TyP/shIP3IjqHjVLCnJ3P6f1cl5rxZ
26
+ gqo+d3BAoDrmPk0rtaf6QopwUw9RBiF8V4HqvpiY+ruJotP5UQDP4/lVOKvA8PI9
27
+ P0GmVbFBrbc7Zt5h78N3UyOK0u+nvOC23BvyHXzCtcFsXCoEkt+Wwh0RFqVZdnjM
28
+ LMO2vULHKKHDdX54K/sbVCj9pN9h1aotNzrEyo55zxn0G9PHg/G3P8nMvAXPkUTe
29
+ brhXrfCwWRvOXA4TAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0G
30
+ A1UdDgQWBBRAHK81igrXodaDj8a8/BIKsaZrETANBgkqhkiG9w0BAQUFAAOCAQEA
31
+ MSeqyuvnysrcVerV+iQHfW1k53W8sl0pA8f8t/VFp7fUfKXJ9K7AGby4y9xOsqII
32
+ AeHuFrYoCxgoJL2k088/IKdu5bsuJ4FWzDpIV70uSOZsPKhlBiLqDLvccFnB/XBe
33
+ 3qSVN9x1I/lkVT4j55MqKjvvkn5GCfKz6JLPHgwEihiV0qmgsX2uZnxU4JbAbI5R
34
+ 4NX+7Dq+AuZUp5MtQslByeESOalT3SBfXSQ8QkZPwMVstsRm2h+0kVRu/AQHiGwJ
35
+ 6jkDey5mE3jQb893U6ihl55uLkVQwxZZTq/flNWjTIcbbvKKafEGdGv5uOlB+KRL
36
+ PRtgPFlA2jDgUr1EPAIH1Q==
37
37
  -----END CERTIFICATE-----
38
- date: 2015-01-05 00:00:00.000000000 Z
38
+ date: 2016-01-21 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
- name: rdoc
41
+ name: bundler
42
42
  requirement: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '4.0'
46
+ version: '1.5'
47
47
  type: :development
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '4.0'
53
+ version: '1.5'
54
54
  - !ruby/object:Gem::Dependency
55
- name: rake-compiler
55
+ name: rake
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: '0.9'
60
+ version: '0'
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
61
65
  - - ">="
62
66
  - !ruby/object:Gem::Version
63
- version: 0.9.1
67
+ version: '0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: minitest
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: 5.3.0
64
75
  type: :development
65
76
  prerelease: false
66
77
  version_requirements: !ruby/object:Gem::Requirement
67
78
  requirements:
68
79
  - - "~>"
69
80
  - !ruby/object:Gem::Version
70
- version: '0.9'
71
- - - ">="
81
+ version: 5.3.0
82
+ - !ruby/object:Gem::Dependency
83
+ name: rake-compiler
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: 0.9.1
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
72
94
  - !ruby/object:Gem::Version
73
95
  version: 0.9.1
74
96
  - !ruby/object:Gem::Dependency
75
- name: glu
97
+ name: rake-compiler-dock
76
98
  requirement: !ruby/object:Gem::Requirement
77
99
  requirements:
78
100
  - - "~>"
79
101
  - !ruby/object:Gem::Version
80
- version: '8.1'
102
+ version: 0.5.0
81
103
  type: :development
82
104
  prerelease: false
83
105
  version_requirements: !ruby/object:Gem::Requirement
84
106
  requirements:
85
107
  - - "~>"
86
108
  - !ruby/object:Gem::Version
87
- version: '8.1'
109
+ version: 0.5.0
88
110
  - !ruby/object:Gem::Dependency
89
- name: glut
111
+ name: glu
90
112
  requirement: !ruby/object:Gem::Requirement
91
113
  requirements:
92
114
  - - "~>"
@@ -100,19 +122,19 @@ dependencies:
100
122
  - !ruby/object:Gem::Version
101
123
  version: '8.1'
102
124
  - !ruby/object:Gem::Dependency
103
- name: hoe
125
+ name: glut
104
126
  requirement: !ruby/object:Gem::Requirement
105
127
  requirements:
106
128
  - - "~>"
107
129
  - !ruby/object:Gem::Version
108
- version: '3.13'
130
+ version: '8.1'
109
131
  type: :development
110
132
  prerelease: false
111
133
  version_requirements: !ruby/object:Gem::Requirement
112
134
  requirements:
113
135
  - - "~>"
114
136
  - !ruby/object:Gem::Version
115
- version: '3.13'
137
+ version: '8.1'
116
138
  description: |-
117
139
  An OpenGL wrapper for Ruby. opengl contains bindings for OpenGL.
118
140
 
@@ -123,7 +145,7 @@ description: |-
123
145
  email:
124
146
  - drbrain@segment7.net
125
147
  - lars@greiz-reinsdorf.de
126
- - speed.the.bboy@gmail.com
148
+ - blaz@mxxn.io
127
149
  - ''
128
150
  - ''
129
151
  - ''
@@ -131,16 +153,13 @@ email:
131
153
  executables: []
132
154
  extensions:
133
155
  - ext/opengl/extconf.rb
134
- extra_rdoc_files:
135
- - History.rdoc
136
- - Manifest.txt
137
- - README.rdoc
138
- - examples/OrangeBook/3Dlabs-License.txt
156
+ extra_rdoc_files: []
139
157
  files:
140
158
  - ".autotest"
141
159
  - ".gemtest"
142
160
  - ".gitignore"
143
161
  - ".travis.yml"
162
+ - Gemfile
144
163
  - History.rdoc
145
164
  - MIT-LICENSE
146
165
  - Manifest.txt
@@ -228,9 +247,12 @@ files:
228
247
  - examples/misc/readpixel.rb
229
248
  - examples/misc/sdltest.rb
230
249
  - examples/misc/trislam.rb
250
+ - ext/opengl/GL/gl.h
251
+ - ext/opengl/GL/glext.h
231
252
  - ext/opengl/common.h
232
253
  - ext/opengl/conv.h
233
254
  - ext/opengl/extconf.rb
255
+ - ext/opengl/fptr_struct.h
234
256
  - ext/opengl/funcdef.h
235
257
  - ext/opengl/gl-1.0-1.1.c
236
258
  - ext/opengl/gl-1.2.c
@@ -250,13 +272,17 @@ files:
250
272
  - ext/opengl/gl-ext-ext.c
251
273
  - ext/opengl/gl-ext-gremedy.c
252
274
  - ext/opengl/gl-ext-nv.c
253
- - ext/opengl/gl-types.h
254
275
  - ext/opengl/gl.c
255
276
  - ext/opengl/gl_buffer.c
277
+ - ext/opengl/glimpl.c
278
+ - ext/opengl/glimpl.h
256
279
  - ext/opengl/opengl.c
257
280
  - lib/gl.rb
258
281
  - lib/opengl.rb
282
+ - lib/opengl/bindings_version.rb
283
+ - lib/opengl/implementation.rb
259
284
  - lib/opengl/test_case.rb
285
+ - opengl.gemspec
260
286
  - test/dummy.xorg.conf
261
287
  - test/test_gl.rb
262
288
  - test/test_gl_10_11.rb
@@ -271,6 +297,7 @@ files:
271
297
  - test/test_gl_ext_ext.rb
272
298
  - test/test_gl_ext_gremedy.rb
273
299
  - test/test_gl_ext_nv.rb
300
+ - test/test_glimpl.rb
274
301
  - test/test_opengl_buffer.rb
275
302
  - utils/README
276
303
  - utils/enumgen.rb
@@ -292,27 +319,30 @@ required_ruby_version: !ruby/object:Gem::Requirement
292
319
  version: 1.9.2
293
320
  required_rubygems_version: !ruby/object:Gem::Requirement
294
321
  requirements:
295
- - - ">="
322
+ - - ">"
296
323
  - !ruby/object:Gem::Version
297
- version: '0'
324
+ version: 1.3.1
298
325
  requirements: []
299
326
  rubyforge_project:
300
- rubygems_version: 2.4.5
327
+ rubygems_version: 2.4.8
301
328
  signing_key:
302
329
  specification_version: 4
303
330
  summary: An OpenGL wrapper for Ruby
304
331
  test_files:
305
- - test/test_gl_21.rb
332
+ - test/dummy.xorg.conf
333
+ - test/test_gl.rb
334
+ - test/test_gl_10_11.rb
335
+ - test/test_gl_12.rb
336
+ - test/test_gl_13.rb
337
+ - test/test_gl_14.rb
306
338
  - test/test_gl_15.rb
307
- - test/test_gl_ext_ext.rb
308
- - test/test_opengl_buffer.rb
339
+ - test/test_gl_20.rb
340
+ - test/test_gl_21.rb
341
+ - test/test_gl_ext_arb.rb
309
342
  - test/test_gl_ext_ati.rb
310
- - test/test_gl_12.rb
343
+ - test/test_gl_ext_ext.rb
311
344
  - test/test_gl_ext_gremedy.rb
312
345
  - test/test_gl_ext_nv.rb
313
- - test/test_gl_ext_arb.rb
314
- - test/test_gl_13.rb
315
- - test/test_gl_20.rb
316
- - test/test_gl_14.rb
317
- - test/test_gl_10_11.rb
318
- - test/test_gl.rb
346
+ - test/test_glimpl.rb
347
+ - test/test_opengl_buffer.rb
348
+ has_rdoc: