danabr75-opengl 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.autotest +29 -0
- data/.gemtest +0 -0
- data/.gitignore +6 -0
- data/.travis.yml +19 -0
- data/Gemfile +8 -0
- data/History.md +101 -0
- data/MIT-LICENSE +18 -0
- data/Manifest.txt +142 -0
- data/README.rdoc +105 -0
- data/Rakefile +170 -0
- data/danabr75-opengl.gemspec +32 -0
- data/examples/NeHe/NeHe.png +0 -0
- data/examples/NeHe/crate.png +0 -0
- data/examples/NeHe/glass.png +0 -0
- data/examples/NeHe/nehe_lesson02.rb +117 -0
- data/examples/NeHe/nehe_lesson03.rb +123 -0
- data/examples/NeHe/nehe_lesson04.rb +132 -0
- data/examples/NeHe/nehe_lesson05.rb +182 -0
- data/examples/NeHe/nehe_lesson06.rb +186 -0
- data/examples/NeHe/nehe_lesson07.rb +240 -0
- data/examples/NeHe/nehe_lesson08.rb +255 -0
- data/examples/NeHe/nehe_lesson09.rb +203 -0
- data/examples/NeHe/nehe_lesson11.rb +176 -0
- data/examples/NeHe/nehe_lesson12.rb +203 -0
- data/examples/NeHe/nehe_lesson16.rb +211 -0
- data/examples/NeHe/nehe_lesson19.rb +209 -0
- data/examples/NeHe/nehe_lesson36.rb +308 -0
- data/examples/NeHe/particle.png +0 -0
- data/examples/NeHe/star.png +0 -0
- data/examples/NeHe/tim.png +0 -0
- data/examples/OrangeBook/3Dlabs-License.txt +33 -0
- data/examples/OrangeBook/brick.frag +36 -0
- data/examples/OrangeBook/brick.rb +378 -0
- data/examples/OrangeBook/brick.vert +41 -0
- data/examples/OrangeBook/particle.frag +17 -0
- data/examples/OrangeBook/particle.rb +408 -0
- data/examples/OrangeBook/particle.vert +38 -0
- data/examples/README +16 -0
- data/examples/RedBook/aapoly.rb +143 -0
- data/examples/RedBook/aargb.rb +121 -0
- data/examples/RedBook/accanti.rb +164 -0
- data/examples/RedBook/accpersp.rb +217 -0
- data/examples/RedBook/alpha.rb +125 -0
- data/examples/RedBook/alpha3D.rb +160 -0
- data/examples/RedBook/bezcurve.rb +107 -0
- data/examples/RedBook/bezmesh.rb +139 -0
- data/examples/RedBook/checker.rb +126 -0
- data/examples/RedBook/clip.rb +97 -0
- data/examples/RedBook/colormat.rb +137 -0
- data/examples/RedBook/cube.rb +71 -0
- data/examples/RedBook/depthcue.rb +101 -0
- data/examples/RedBook/dof.rb +206 -0
- data/examples/RedBook/double.rb +107 -0
- data/examples/RedBook/drawf.rb +93 -0
- data/examples/RedBook/feedback.rb +147 -0
- data/examples/RedBook/fog.rb +168 -0
- data/examples/RedBook/font.rb +153 -0
- data/examples/RedBook/hello.rb +81 -0
- data/examples/RedBook/image.rb +139 -0
- data/examples/RedBook/jitter.rb +207 -0
- data/examples/RedBook/light.rb +157 -0
- data/examples/RedBook/lines.rb +130 -0
- data/examples/RedBook/list.rb +113 -0
- data/examples/RedBook/material.rb +276 -0
- data/examples/RedBook/mipmap.rb +158 -0
- data/examples/RedBook/model.rb +115 -0
- data/examples/RedBook/movelight.rb +134 -0
- data/examples/RedBook/pickdepth.rb +181 -0
- data/examples/RedBook/planet.rb +110 -0
- data/examples/RedBook/quadric.rb +160 -0
- data/examples/RedBook/robot.rb +117 -0
- data/examples/RedBook/select.rb +198 -0
- data/examples/RedBook/smooth.rb +97 -0
- data/examples/RedBook/stencil.rb +165 -0
- data/examples/RedBook/stroke.rb +169 -0
- data/examples/RedBook/surface.rb +168 -0
- data/examples/RedBook/teaambient.rb +134 -0
- data/examples/RedBook/teapots.rb +184 -0
- data/examples/RedBook/tess.rb +185 -0
- data/examples/RedBook/texbind.rb +149 -0
- data/examples/RedBook/texgen.rb +171 -0
- data/examples/RedBook/texturesurf.rb +130 -0
- data/examples/RedBook/varray.rb +161 -0
- data/examples/RedBook/wrap.rb +150 -0
- data/examples/misc/OGLBench.rb +338 -0
- data/examples/misc/anisotropic.rb +196 -0
- data/examples/misc/fbo_test.rb +357 -0
- data/examples/misc/font-glut.rb +47 -0
- data/examples/misc/glfwtest.rb +30 -0
- data/examples/misc/plane.rb +161 -0
- data/examples/misc/readpixel.rb +66 -0
- data/examples/misc/sdltest.rb +36 -0
- data/examples/misc/trislam.rb +829 -0
- data/ext/opengl/GL/gl.h +2115 -0
- data/ext/opengl/GL/glext.h +11770 -0
- data/ext/opengl/common.h +372 -0
- data/ext/opengl/conv.h +247 -0
- data/ext/opengl/extconf.rb +19 -0
- data/ext/opengl/fptr_struct.h +912 -0
- data/ext/opengl/funcdef.h +279 -0
- data/ext/opengl/gl-1.0-1.1.c +3345 -0
- data/ext/opengl/gl-1.2.c +155 -0
- data/ext/opengl/gl-1.3.c +447 -0
- data/ext/opengl/gl-1.4.c +346 -0
- data/ext/opengl/gl-1.5.c +225 -0
- data/ext/opengl/gl-2.0.c +665 -0
- data/ext/opengl/gl-2.1.c +57 -0
- data/ext/opengl/gl-3.0.c +502 -0
- data/ext/opengl/gl-enums.c +4853 -0
- data/ext/opengl/gl-enums.h +14528 -0
- data/ext/opengl/gl-error.c +110 -0
- data/ext/opengl/gl-error.h +25 -0
- data/ext/opengl/gl-ext-3dfx.c +27 -0
- data/ext/opengl/gl-ext-arb.c +880 -0
- data/ext/opengl/gl-ext-ati.c +41 -0
- data/ext/opengl/gl-ext-ext.c +885 -0
- data/ext/opengl/gl-ext-gremedy.c +41 -0
- data/ext/opengl/gl-ext-nv.c +679 -0
- data/ext/opengl/gl.c +265 -0
- data/ext/opengl/gl_buffer.c +202 -0
- data/ext/opengl/glimpl.c +187 -0
- data/ext/opengl/glimpl.h +47 -0
- data/ext/opengl/opengl.c +9 -0
- data/lib/gl.rb +1 -0
- data/lib/opengl.rb +79 -0
- data/lib/opengl/bindings_version.rb +4 -0
- data/lib/opengl/implementation.rb +38 -0
- data/lib/opengl/test_case.rb +86 -0
- data/test/dummy.xorg.conf +140 -0
- data/test/test_gl.rb +45 -0
- data/test/test_gl_10_11.rb +1363 -0
- data/test/test_gl_12.rb +71 -0
- data/test/test_gl_13.rb +221 -0
- data/test/test_gl_14.rb +218 -0
- data/test/test_gl_15.rb +258 -0
- data/test/test_gl_20.rb +417 -0
- data/test/test_gl_21.rb +436 -0
- data/test/test_gl_ext_arb.rb +508 -0
- data/test/test_gl_ext_ati.rb +28 -0
- data/test/test_gl_ext_ext.rb +608 -0
- data/test/test_gl_ext_gremedy.rb +29 -0
- data/test/test_gl_ext_nv.rb +349 -0
- data/test/test_glimpl.rb +23 -0
- data/test/test_opengl_buffer.rb +122 -0
- data/utils/README +6 -0
- data/utils/enumgen.rb +108 -0
- data/utils/extlistgen.rb +90 -0
- metadata +326 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3af2e90d0dbc096dc9a8b9919a2f794e86e23053
|
4
|
+
data.tar.gz: 5fed8b05ae1b30f8678161c8e5e6534926f76763
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a690ab5d303a69fa6d2672b1e0b1e481a9c36e99bd864cef554e876aec7b6eaf3327d4f2f78f84da01184809c9c0d4c1c56e7d620a83a627ee0e7362017b756e
|
7
|
+
data.tar.gz: e3ff2eae2a4f8971cd9a934ea11be4087a1a2cbcbd79ce93e48c71260e1bea4564016ef97a8a34c9e322231cbb95c4541883e831c515a8326f70bdb20969ff9e
|
data/.autotest
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'autotest/restart'
|
2
|
+
|
3
|
+
Autotest.add_hook :initialize do |at|
|
4
|
+
at.add_exception /\.git/
|
5
|
+
at.add_exception /doc/
|
6
|
+
at.add_exception /examples/
|
7
|
+
at.add_exception /utils/
|
8
|
+
at.add_exception /website/
|
9
|
+
|
10
|
+
at.add_mapping(/^lib\/.*(\.bundle|so|dll)$/) do |filename, match|
|
11
|
+
possible = File.basename(filename, match[1])
|
12
|
+
at.files_matching %r%^test/test_#{possible}%
|
13
|
+
end
|
14
|
+
|
15
|
+
def at.path_to_classname s
|
16
|
+
sep = File::SEPARATOR
|
17
|
+
n = s.sub(/^test#{sep}test_(.*)\.rb/, '\1')
|
18
|
+
c = if n =~ /^(glu?)_?(.*)/ then
|
19
|
+
"#{$1.capitalize}#{$2.split(/_|(\d+)/).map { |seg| seg.capitalize }.join}"
|
20
|
+
end
|
21
|
+
|
22
|
+
"Test#{c}"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
Autotest.add_hook :run_command do |at|
|
27
|
+
at.unit_diff = 'cat'
|
28
|
+
system Gem.ruby, Gem.bin_path('rake', 'rake'), 'compile'
|
29
|
+
end
|
data/.gemtest
ADDED
File without changes
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
# - "1.9.3"
|
4
|
+
- "2.1"
|
5
|
+
- "rbx"
|
6
|
+
# - jruby-19mode # JRuby in 1.9 mode
|
7
|
+
# - rbx-19mode
|
8
|
+
matrix:
|
9
|
+
allow_failures:
|
10
|
+
- rvm: rbx
|
11
|
+
before_install:
|
12
|
+
- sudo apt-get install xpra xserver-xorg-video-dummy freeglut3-dev;
|
13
|
+
- gem install hoe rake-compiler glut glu;
|
14
|
+
before_script:
|
15
|
+
- "xpra --xvfb=\"Xorg +extension GLX -config `pwd`/test/dummy.xorg.conf -logfile ${HOME}/.xpra/xorg.log\" start :9"
|
16
|
+
script: "env DISPLAY=:9 rake test"
|
17
|
+
after_script:
|
18
|
+
- "xpra stop :9"
|
19
|
+
- "cat ~/.xpra/*"
|
data/Gemfile
ADDED
data/History.md
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
=== 0.10.0 / 2017-06-25
|
2
|
+
|
3
|
+
* Add binaries for RubyInstaller up to 2.4 in Windows gems.
|
4
|
+
* Make RedBook examples compatible with Ruby 2.0+.
|
5
|
+
* Replace hoe by bundler and add some release automatisms.
|
6
|
+
* Use GL_PIXEL_PACK_BUFFER instead of _ARB version.
|
7
|
+
* Add OpenGL-3.0 vertex array functions.
|
8
|
+
* Ship gl.h and glext.h with the gem, which are taken from the Mesa sources.
|
9
|
+
* Update gl-enums to the latest version based on enum.spec.
|
10
|
+
* Move linking of the OpenGL library from build time to run time.
|
11
|
+
This allowes loading of GL implementations that are not integrated into
|
12
|
+
the OS (like OSMesa on Windows) or to load several implementations
|
13
|
+
into the Ruby process at the same time.
|
14
|
+
* Remove OpenGL::VERSION in favour of OpenGL::BINDINGS_VERSION and GL::BINDINGS_VERSION.
|
15
|
+
|
16
|
+
=== 0.9.2 / 2015-01-05
|
17
|
+
|
18
|
+
* Fix compatibility with Ruby-2.2.0.
|
19
|
+
* Add ruby-2.2 to binary windows gems.
|
20
|
+
|
21
|
+
=== 0.9.1 / 2014-10-06
|
22
|
+
|
23
|
+
* Add ruby-2.1 to binary windows gems.
|
24
|
+
|
25
|
+
=== 0.9.0 / 2014-03-14
|
26
|
+
|
27
|
+
* Split glu and glut into seperate gems.
|
28
|
+
* Add OpenGL 3.0 support.
|
29
|
+
* Add x64-mingw platform for cross build and add ruby-2.0.0 to binary gems.
|
30
|
+
* Don't pollute the global namespace. Use GL namespace.
|
31
|
+
|
32
|
+
* Replace UINT2FIX with UINT2NUM since UINT2FIX is not defined in MRI ruby.
|
33
|
+
* Don't return the terminating null from C in GetProgramInfoLog.
|
34
|
+
* Remove the outdated website, use gh-pages now.
|
35
|
+
* Fixes in tests, resolved some upstream mesa bugs.
|
36
|
+
* glMaterial: Before converting using to_a, check if conversion is possible.
|
37
|
+
* Fix incorrect conversion of bool arguments to functions, they were getting
|
38
|
+
converted from C instead of to C (`GL_TRUE/true` got converted to `41`).
|
39
|
+
* Fix: some parts of GL_EXT_gpu_shader4 were checking for GL_ARB_vertex_shader
|
40
|
+
support instead of GL_EXT_gpu_shader4.
|
41
|
+
* Fix ProgramVertexLimitNV checked for GL_NV_gpu_program4 support instead of
|
42
|
+
GL_EXT_geometry_shader4.
|
43
|
+
* Fix build with Ruby-2.0 on OS X Mavericks.
|
44
|
+
|
45
|
+
* Dropped support for 1.2 optional ARB_imaging subset. It is deprecated and
|
46
|
+
support for it was dropped from all major drivers. Continuing support for it
|
47
|
+
would lead to developers using deprecated coding practices.
|
48
|
+
|
49
|
+
* Fix several test cases.
|
50
|
+
|
51
|
+
=== 0.8.0 / 2013-02-03
|
52
|
+
|
53
|
+
* Drop support for Ruby 1.8.
|
54
|
+
* Wrap glut callbacks in GVL release/acquire for better thread support.
|
55
|
+
* Add OpenGL::Buffer for mapped buffers that allows writing.
|
56
|
+
|
57
|
+
=== 0.7.0 / 2013-02-03
|
58
|
+
|
59
|
+
* Better support of 64 bit systems.
|
60
|
+
* Replace mkrf with extconf.rb, hoe and rake-compiler.
|
61
|
+
* Switch to dlopen() from deprecated NSAddImage() and friends for OS X.
|
62
|
+
* glBegin, glPushMatrix, glEnable and glEnableClientState now accept a block.
|
63
|
+
* glEnable/glDisable and glEnableClientState/glDisableClientState now accept
|
64
|
+
multiple arguments.
|
65
|
+
* Allow to_a-able objects for glColor*v, glRasterPos*v, glRect*v, glTexCoord*v,
|
66
|
+
glMaterial, glNormal and glVertex.
|
67
|
+
* Fix unused param count in ARY2CMAT.
|
68
|
+
* Fix a lot of bugs in the test suite.
|
69
|
+
* Merge opengl C extensions into a single extension to avoid code duplication
|
70
|
+
in extconf.rb and simplify rebuilding based on header changes.
|
71
|
+
* Add cross compilation tasks with download of freeglut for binary windows gems
|
72
|
+
|
73
|
+
=== 0.60.1 / 2009-02-16
|
74
|
+
|
75
|
+
* Bugfixes
|
76
|
+
* Proper support for ruby 1.9/1.9.1+
|
77
|
+
* Updated OpenGL enumerators in preparation for OpenGL 3.0
|
78
|
+
|
79
|
+
=== 0.60.0 / 2008-01-06
|
80
|
+
|
81
|
+
* Automatic error checking for GL/GLU calls, enabled by default (see
|
82
|
+
doc/tutorial)
|
83
|
+
* Added support for many more OpenGL extensions
|
84
|
+
* Support for Ruby 1.9.0+ (requires mkrf 0.2.3)
|
85
|
+
* Ton of bugfixes.
|
86
|
+
|
87
|
+
* API Changes:
|
88
|
+
* Boolean functions/parameters was changed to ruby true/false instead of
|
89
|
+
GL_TRUE / GL_FALSE, which remains for compatibility
|
90
|
+
* glGet\* functions now returns +x+ instead of <code>[x]</code> when
|
91
|
+
returning only one value
|
92
|
+
* Functions operating on packed strings (glTexture, glPointer etc.) now
|
93
|
+
also accepts ruby arrays directly
|
94
|
+
* Matrix handling functions now also accepts instances of Matrix class, or
|
95
|
+
any class that can be converted to array
|
96
|
+
* glUniform*v and glUniformmatrix*v now does not require 'count'
|
97
|
+
parameter, they will calculate it from length of passed array
|
98
|
+
* glCallLists needs type specifier (previously was forced to GL_BYTE)
|
99
|
+
* On ruby 1.9, glut keyboard callback returns char ("x") instead of integer
|
100
|
+
so using 'if key == ?x' works on both 1.8 and 1.9
|
101
|
+
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
3
|
+
copy of this software and associated documentation files (the "Software"),
|
4
|
+
to deal in the Software without restriction, including without limitation
|
5
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
6
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
7
|
+
Software is furnished to do so, subject to the following conditions:
|
8
|
+
|
9
|
+
The above copyright notice and this permission notice shall be included in
|
10
|
+
all copies or substantial portions of the Software.
|
11
|
+
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
17
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
18
|
+
DEALINGS IN THE SOFTWARE.
|
data/Manifest.txt
ADDED
@@ -0,0 +1,142 @@
|
|
1
|
+
.autotest
|
2
|
+
.gemtest
|
3
|
+
.gitignore
|
4
|
+
.travis.yml
|
5
|
+
History.rdoc
|
6
|
+
MIT-LICENSE
|
7
|
+
Manifest.txt
|
8
|
+
README.rdoc
|
9
|
+
Rakefile
|
10
|
+
examples/NeHe/NeHe.png
|
11
|
+
examples/NeHe/crate.png
|
12
|
+
examples/NeHe/glass.png
|
13
|
+
examples/NeHe/nehe_lesson02.rb
|
14
|
+
examples/NeHe/nehe_lesson03.rb
|
15
|
+
examples/NeHe/nehe_lesson04.rb
|
16
|
+
examples/NeHe/nehe_lesson05.rb
|
17
|
+
examples/NeHe/nehe_lesson06.rb
|
18
|
+
examples/NeHe/nehe_lesson07.rb
|
19
|
+
examples/NeHe/nehe_lesson08.rb
|
20
|
+
examples/NeHe/nehe_lesson09.rb
|
21
|
+
examples/NeHe/nehe_lesson11.rb
|
22
|
+
examples/NeHe/nehe_lesson12.rb
|
23
|
+
examples/NeHe/nehe_lesson16.rb
|
24
|
+
examples/NeHe/nehe_lesson19.rb
|
25
|
+
examples/NeHe/nehe_lesson36.rb
|
26
|
+
examples/NeHe/particle.png
|
27
|
+
examples/NeHe/star.png
|
28
|
+
examples/NeHe/tim.png
|
29
|
+
examples/OrangeBook/3Dlabs-License.txt
|
30
|
+
examples/OrangeBook/brick.frag
|
31
|
+
examples/OrangeBook/brick.rb
|
32
|
+
examples/OrangeBook/brick.vert
|
33
|
+
examples/OrangeBook/particle.frag
|
34
|
+
examples/OrangeBook/particle.rb
|
35
|
+
examples/OrangeBook/particle.vert
|
36
|
+
examples/README
|
37
|
+
examples/RedBook/aapoly.rb
|
38
|
+
examples/RedBook/aargb.rb
|
39
|
+
examples/RedBook/accanti.rb
|
40
|
+
examples/RedBook/accpersp.rb
|
41
|
+
examples/RedBook/alpha.rb
|
42
|
+
examples/RedBook/alpha3D.rb
|
43
|
+
examples/RedBook/bezcurve.rb
|
44
|
+
examples/RedBook/bezmesh.rb
|
45
|
+
examples/RedBook/checker.rb
|
46
|
+
examples/RedBook/clip.rb
|
47
|
+
examples/RedBook/colormat.rb
|
48
|
+
examples/RedBook/cube.rb
|
49
|
+
examples/RedBook/depthcue.rb
|
50
|
+
examples/RedBook/dof.rb
|
51
|
+
examples/RedBook/double.rb
|
52
|
+
examples/RedBook/drawf.rb
|
53
|
+
examples/RedBook/feedback.rb
|
54
|
+
examples/RedBook/fog.rb
|
55
|
+
examples/RedBook/font.rb
|
56
|
+
examples/RedBook/hello.rb
|
57
|
+
examples/RedBook/image.rb
|
58
|
+
examples/RedBook/jitter.rb
|
59
|
+
examples/RedBook/light.rb
|
60
|
+
examples/RedBook/lines.rb
|
61
|
+
examples/RedBook/list.rb
|
62
|
+
examples/RedBook/material.rb
|
63
|
+
examples/RedBook/mipmap.rb
|
64
|
+
examples/RedBook/model.rb
|
65
|
+
examples/RedBook/movelight.rb
|
66
|
+
examples/RedBook/pickdepth.rb
|
67
|
+
examples/RedBook/planet.rb
|
68
|
+
examples/RedBook/quadric.rb
|
69
|
+
examples/RedBook/robot.rb
|
70
|
+
examples/RedBook/select.rb
|
71
|
+
examples/RedBook/smooth.rb
|
72
|
+
examples/RedBook/stencil.rb
|
73
|
+
examples/RedBook/stroke.rb
|
74
|
+
examples/RedBook/surface.rb
|
75
|
+
examples/RedBook/teaambient.rb
|
76
|
+
examples/RedBook/teapots.rb
|
77
|
+
examples/RedBook/tess.rb
|
78
|
+
examples/RedBook/texbind.rb
|
79
|
+
examples/RedBook/texgen.rb
|
80
|
+
examples/RedBook/texturesurf.rb
|
81
|
+
examples/RedBook/varray.rb
|
82
|
+
examples/RedBook/wrap.rb
|
83
|
+
examples/misc/OGLBench.rb
|
84
|
+
examples/misc/anisotropic.rb
|
85
|
+
examples/misc/fbo_test.rb
|
86
|
+
examples/misc/font-glut.rb
|
87
|
+
examples/misc/glfwtest.rb
|
88
|
+
examples/misc/plane.rb
|
89
|
+
examples/misc/readpixel.rb
|
90
|
+
examples/misc/sdltest.rb
|
91
|
+
examples/misc/trislam.rb
|
92
|
+
ext/opengl/GL/gl.h
|
93
|
+
ext/opengl/common.h
|
94
|
+
ext/opengl/conv.h
|
95
|
+
ext/opengl/extconf.rb
|
96
|
+
ext/opengl/funcdef.h
|
97
|
+
ext/opengl/gl-1.0-1.1.c
|
98
|
+
ext/opengl/gl-1.2.c
|
99
|
+
ext/opengl/gl-1.3.c
|
100
|
+
ext/opengl/gl-1.4.c
|
101
|
+
ext/opengl/gl-1.5.c
|
102
|
+
ext/opengl/gl-2.0.c
|
103
|
+
ext/opengl/gl-2.1.c
|
104
|
+
ext/opengl/gl-3.0.c
|
105
|
+
ext/opengl/gl-enums.c
|
106
|
+
ext/opengl/gl-enums.h
|
107
|
+
ext/opengl/gl-error.c
|
108
|
+
ext/opengl/gl-error.h
|
109
|
+
ext/opengl/gl-ext-3dfx.c
|
110
|
+
ext/opengl/gl-ext-arb.c
|
111
|
+
ext/opengl/gl-ext-ati.c
|
112
|
+
ext/opengl/gl-ext-ext.c
|
113
|
+
ext/opengl/gl-ext-gremedy.c
|
114
|
+
ext/opengl/gl-ext-nv.c
|
115
|
+
ext/opengl/gl.c
|
116
|
+
ext/opengl/gl_buffer.c
|
117
|
+
ext/opengl/glimpl.c
|
118
|
+
ext/opengl/glimpl.h
|
119
|
+
ext/opengl/opengl.c
|
120
|
+
lib/gl.rb
|
121
|
+
lib/opengl.rb
|
122
|
+
lib/opengl/implementation.rb
|
123
|
+
lib/opengl/test_case.rb
|
124
|
+
test/dummy.xorg.conf
|
125
|
+
test/test_gl.rb
|
126
|
+
test/test_gl_10_11.rb
|
127
|
+
test/test_gl_12.rb
|
128
|
+
test/test_gl_13.rb
|
129
|
+
test/test_gl_14.rb
|
130
|
+
test/test_gl_15.rb
|
131
|
+
test/test_gl_20.rb
|
132
|
+
test/test_gl_21.rb
|
133
|
+
test/test_gl_ext_arb.rb
|
134
|
+
test/test_gl_ext_ati.rb
|
135
|
+
test/test_gl_ext_ext.rb
|
136
|
+
test/test_gl_ext_gremedy.rb
|
137
|
+
test/test_gl_ext_nv.rb
|
138
|
+
test/test_glimpl.rb
|
139
|
+
test/test_opengl_buffer.rb
|
140
|
+
utils/README
|
141
|
+
utils/enumgen.rb
|
142
|
+
utils/extlistgen.rb
|
data/README.rdoc
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
= opengl
|
2
|
+
|
3
|
+
source :: https://github.com/larskanis/opengl
|
4
|
+
docs :: http://larskanis.github.com/opengl
|
5
|
+
bugs :: https://github.com/larskanis/opengl/issues
|
6
|
+
email :: mailto:ruby-opengl-devel@rubyforge.org
|
7
|
+
|
8
|
+
{<img src="https://travis-ci.org/larskanis/opengl.png?branch=master" alt="Build Status" />}[https://travis-ci.org/larskanis/opengl]
|
9
|
+
|
10
|
+
**Attention**: This project is in maintenance mode.
|
11
|
+
It might receive bug fixes or adjustments for new Ruby versions, but no new features (like support for newer OpenGL versions).
|
12
|
+
The recommended migration path is to use {opengl-binding}[https://github.com/vaiorabbit/ruby-opengl].
|
13
|
+
It makes use of the Khronos XML API registry, so that it's more up-to-date and easier to maintain but it uses a different Ruby-API than this project.
|
14
|
+
|
15
|
+
== Description
|
16
|
+
|
17
|
+
An OpenGL wrapper for Ruby. opengl contains bindings for OpenGL.
|
18
|
+
|
19
|
+
Be sure to check out
|
20
|
+
{GLU}[https://github.com/larskanis/glu] and
|
21
|
+
{GLUT}[https://github.com/larskanis/glut]
|
22
|
+
gems.
|
23
|
+
|
24
|
+
== Features and Problems
|
25
|
+
|
26
|
+
* available for Windows, Linux and OS X
|
27
|
+
* supports OpenGL up to 3.0 - please move to {opengl-bindings}[https://github.com/vaiorabbit/ruby-opengl] for more recent OpenGL versions
|
28
|
+
|
29
|
+
== Synopsis
|
30
|
+
|
31
|
+
require 'opengl'
|
32
|
+
FIX (code sample of usage)
|
33
|
+
|
34
|
+
== Requirements
|
35
|
+
|
36
|
+
* Ruby 1.9.2+
|
37
|
+
* OpenGL runtime libraries installed
|
38
|
+
|
39
|
+
== Install
|
40
|
+
|
41
|
+
gem install opengl
|
42
|
+
|
43
|
+
== Developers
|
44
|
+
|
45
|
+
After checking out the source, run:
|
46
|
+
|
47
|
+
bundle install
|
48
|
+
|
49
|
+
This will install missing dependencies.
|
50
|
+
|
51
|
+
== Tests
|
52
|
+
|
53
|
+
Run the tests with:
|
54
|
+
|
55
|
+
rake test
|
56
|
+
|
57
|
+
Note that the tests have the adverse effect of testing the underlying OpenGL implementation, so depending on your GL provider, drivers or OS, the tests may fail, crash, or not run at all, without affecting your ability to use the bindings.
|
58
|
+
|
59
|
+
Tests require both glut and glu gem.
|
60
|
+
|
61
|
+
With our test suite, we were able to uncover and help fix upstream mesa bugs:
|
62
|
+
|
63
|
+
* {#61026}[https://bugs.freedesktop.org/show_bug.cgi?id=61026] glBitmap segfault
|
64
|
+
* {#61003}[https://bugs.freedesktop.org/show_bug.cgi?id=61003] gluSurface with Nurbs spits out debug code
|
65
|
+
* {#61395}[https://bugs.freedesktop.org/show_bug.cgi?id=61395] glEdgeFlag can't be set to false
|
66
|
+
|
67
|
+
Whenever a test or example fails, it should be quickly ported into a simple C test program, so we can determine whether it's a bug in the bindings or the OpenGL implementation.
|
68
|
+
|
69
|
+
== Cross compiling for Windows
|
70
|
+
|
71
|
+
A cross compiled opengl gem can be build per {rake-compiler-dock}[https://github.com/rake-compiler/rake-compiler-dock] for the Windows platform.
|
72
|
+
There are no runtime dependencies to any but the standard Windows DLLs.
|
73
|
+
Run <tt>rake gem:windows</tt> and find the gem files in the +pkg+ directory.
|
74
|
+
|
75
|
+
== License
|
76
|
+
|
77
|
+
(The MIT License)
|
78
|
+
|
79
|
+
Copyright (c) Lars Kanis (current maintainer)
|
80
|
+
Copyright (c) Blaž Hrastnik (contributor)
|
81
|
+
Copyright (c) Eric Hodel (previous maintainer)
|
82
|
+
Copyright (c) Alain Hoang (previous maintainer)
|
83
|
+
Copyright (c) Jan Dvorak (contributor)
|
84
|
+
Copyright (c) Minh Thu Vo (contributor)
|
85
|
+
Copyright (c) James Adam (contributor)
|
86
|
+
|
87
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
88
|
+
a copy of this software and associated documentation files (the
|
89
|
+
'Software'), to deal in the Software without restriction, including
|
90
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
91
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
92
|
+
permit persons to whom the Software is furnished to do so, subject to
|
93
|
+
the following conditions:
|
94
|
+
|
95
|
+
The above copyright notice and this permission notice shall be
|
96
|
+
included in all copies or substantial portions of the Software.
|
97
|
+
|
98
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
99
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
100
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
101
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
102
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
103
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
104
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
105
|
+
|