opengl 0.9.2 → 0.10.0.pre1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Gemfile +8 -0
- data/Manifest.txt +5 -1
- data/README.rdoc +25 -28
- data/Rakefile +56 -28
- data/examples/RedBook/font.rb +2 -2
- data/examples/RedBook/light.rb +2 -0
- data/examples/RedBook/stroke.rb +6 -6
- data/ext/opengl/GL/gl.h +2115 -0
- data/ext/opengl/GL/glext.h +11770 -0
- data/ext/opengl/common.h +116 -172
- data/ext/opengl/conv.h +2 -2
- data/ext/opengl/extconf.rb +3 -31
- data/ext/opengl/fptr_struct.h +912 -0
- data/ext/opengl/funcdef.h +29 -63
- data/ext/opengl/gl-1.0-1.1.c +918 -648
- data/ext/opengl/gl-1.2.c +13 -13
- data/ext/opengl/gl-1.3.c +68 -64
- data/ext/opengl/gl-1.4.c +64 -66
- data/ext/opengl/gl-1.5.c +32 -31
- data/ext/opengl/gl-2.0.c +126 -128
- data/ext/opengl/gl-2.1.c +8 -8
- data/ext/opengl/gl-3.0.c +102 -93
- data/ext/opengl/gl-enums.c +9 -29
- data/ext/opengl/gl-enums.h +31 -91
- data/ext/opengl/gl-error.c +15 -17
- data/ext/opengl/gl-error.h +4 -7
- data/ext/opengl/gl-ext-3dfx.c +2 -2
- data/ext/opengl/gl-ext-arb.c +176 -171
- data/ext/opengl/gl-ext-ati.c +4 -4
- data/ext/opengl/gl-ext-ext.c +151 -155
- data/ext/opengl/gl-ext-gremedy.c +4 -4
- data/ext/opengl/gl-ext-nv.c +141 -142
- data/ext/opengl/gl.c +121 -76
- data/ext/opengl/gl_buffer.c +44 -19
- data/ext/opengl/glimpl.c +187 -0
- data/ext/opengl/glimpl.h +47 -0
- data/ext/opengl/opengl.c +5 -3
- data/lib/opengl.rb +24 -4
- data/lib/opengl/bindings_version.rb +4 -0
- data/lib/opengl/implementation.rb +38 -0
- data/opengl.gemspec +33 -0
- data/test/test_gl.rb +7 -0
- data/test/test_gl_21.rb +21 -21
- data/test/test_gl_ext_arb.rb +1 -1
- data/test/test_glimpl.rb +23 -0
- data/test/test_opengl_buffer.rb +2 -0
- data/utils/enumgen.rb +2 -2
- metadata +86 -56
- metadata.gz.sig +0 -0
- data/ext/opengl/gl-types.h +0 -67
data/ext/opengl/glimpl.h
ADDED
@@ -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_ */
|
data/ext/opengl/opengl.c
CHANGED
data/lib/opengl.rb
CHANGED
@@ -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,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
|
data/opengl.gemspec
ADDED
@@ -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
|
+
|
data/test/test_gl.rb
CHANGED
@@ -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
|
data/test/test_gl_21.rb
CHANGED
@@ -134,7 +134,7 @@ void main() {
|
|
134
134
|
end
|
135
135
|
|
136
136
|
def test_pixelunpack_bitmap
|
137
|
-
skip("Segfaults on Mesa
|
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(
|
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(
|
334
|
+
data = glMapBuffer(GL_PIXEL_PACK_BUFFER, GL_READ_ONLY)
|
335
335
|
assert_equal(image, data)
|
336
|
-
glUnmapBuffer(
|
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(
|
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(
|
350
|
+
data = glMapBuffer(GL_PIXEL_PACK_BUFFER, GL_READ_ONLY)
|
351
351
|
assert_equal([1, 2, 3, 4].pack("f*"), data)
|
352
|
-
glUnmapBuffer(
|
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(
|
358
|
+
data = glMapBuffer(GL_PIXEL_PACK_BUFFER, GL_READ_ONLY)
|
359
359
|
assert_equal([5, 6, 7, 8].pack("I*"), data)
|
360
|
-
glUnmapBuffer(
|
360
|
+
glUnmapBuffer(GL_PIXEL_PACK_BUFFER)
|
361
361
|
|
362
362
|
# usv
|
363
|
-
glBufferData(
|
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(
|
368
|
+
data = glMapBuffer(GL_PIXEL_PACK_BUFFER, GL_READ_ONLY)
|
369
369
|
assert_equal([9, 10, 11, 12].pack("S*"), data)
|
370
|
-
glUnmapBuffer(
|
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(
|
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(
|
385
|
+
data = glMapBuffer(GL_PIXEL_PACK_BUFFER, GL_READ_ONLY)
|
386
386
|
assert_equal(stipple.pack("c*"), data)
|
387
|
-
glUnmapBuffer(
|
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(
|
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(
|
405
|
+
data = glMapBuffer(GL_PIXEL_PACK_BUFFER, GL_READ_ONLY)
|
406
406
|
assert_equal(image, data)
|
407
|
-
glUnmapBuffer(
|
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(
|
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(
|
429
|
+
data = glMapBuffer(GL_PIXEL_PACK_BUFFER, GL_READ_ONLY)
|
430
430
|
assert_equal(image, data)
|
431
|
-
glUnmapBuffer(
|
431
|
+
glUnmapBuffer(GL_PIXEL_PACK_BUFFER)
|
432
432
|
|
433
433
|
glDeleteBuffers(buffers)
|
434
434
|
glDeleteTextures(textures)
|
data/test/test_gl_ext_arb.rb
CHANGED
@@ -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,
|
503
|
+
assert_equal [1, GL_FLOAT_VEC4, "gl_Vertex"], glGetActiveAttribARB(program, 0)
|
504
504
|
|
505
505
|
glDeleteObjectARB(vs)
|
506
506
|
glDeleteObjectARB(program)
|
data/test/test_glimpl.rb
ADDED
@@ -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
|
data/test/test_opengl_buffer.rb
CHANGED
@@ -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'
|
data/utils/enumgen.rb
CHANGED
@@ -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 => ["
|
88
|
-
"
|
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.
|
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
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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:
|
38
|
+
date: 2016-01-21 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
|
-
name:
|
41
|
+
name: bundler
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
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: '
|
53
|
+
version: '1.5'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
|
-
name: rake
|
55
|
+
name: rake
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- - "
|
58
|
+
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '0
|
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
|
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:
|
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:
|
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:
|
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:
|
109
|
+
version: 0.5.0
|
88
110
|
- !ruby/object:Gem::Dependency
|
89
|
-
name:
|
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:
|
125
|
+
name: glut
|
104
126
|
requirement: !ruby/object:Gem::Requirement
|
105
127
|
requirements:
|
106
128
|
- - "~>"
|
107
129
|
- !ruby/object:Gem::Version
|
108
|
-
version: '
|
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: '
|
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
|
-
-
|
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:
|
324
|
+
version: 1.3.1
|
298
325
|
requirements: []
|
299
326
|
rubyforge_project:
|
300
|
-
rubygems_version: 2.4.
|
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/
|
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/
|
308
|
-
- test/
|
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/
|
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/
|
314
|
-
- test/
|
315
|
-
|
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:
|