ruby-opengl 0.60.0-i386-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +18 -0
- data/README.txt +47 -0
- data/doc/build_install.txt +122 -0
- data/doc/history.txt +66 -0
- data/doc/requirements_and_design.txt +117 -0
- data/doc/roadmap.txt +28 -0
- data/doc/scientific_use.txt +35 -0
- data/doc/thanks.txt +29 -0
- data/doc/tutorial.txt +469 -0
- data/examples/NeHe/nehe_lesson02.rb +117 -0
- data/examples/NeHe/nehe_lesson03.rb +122 -0
- data/examples/NeHe/nehe_lesson04.rb +133 -0
- data/examples/NeHe/nehe_lesson05.rb +186 -0
- data/examples/NeHe/nehe_lesson36.rb +303 -0
- data/examples/OrangeBook/3Dlabs-License.txt +33 -0
- data/examples/OrangeBook/brick.frag +36 -0
- data/examples/OrangeBook/brick.rb +376 -0
- data/examples/OrangeBook/brick.vert +41 -0
- data/examples/OrangeBook/particle.frag +17 -0
- data/examples/OrangeBook/particle.rb +406 -0
- data/examples/OrangeBook/particle.vert +38 -0
- data/examples/README +16 -0
- data/examples/RedBook/aapoly.rb +142 -0
- data/examples/RedBook/aargb.rb +119 -0
- data/examples/RedBook/accanti.rb +162 -0
- data/examples/RedBook/accpersp.rb +215 -0
- data/examples/RedBook/alpha.rb +123 -0
- data/examples/RedBook/alpha3D.rb +158 -0
- data/examples/RedBook/bezcurve.rb +105 -0
- data/examples/RedBook/bezmesh.rb +137 -0
- data/examples/RedBook/checker.rb +124 -0
- data/examples/RedBook/clip.rb +95 -0
- data/examples/RedBook/colormat.rb +135 -0
- data/examples/RedBook/cube.rb +69 -0
- data/examples/RedBook/depthcue.rb +99 -0
- data/examples/RedBook/dof.rb +205 -0
- data/examples/RedBook/double.rb +105 -0
- data/examples/RedBook/drawf.rb +91 -0
- data/examples/RedBook/feedback.rb +145 -0
- data/examples/RedBook/fog.rb +167 -0
- data/examples/RedBook/font.rb +151 -0
- data/examples/RedBook/hello.rb +79 -0
- data/examples/RedBook/image.rb +137 -0
- data/examples/RedBook/jitter.rb +207 -0
- data/examples/RedBook/lines.rb +128 -0
- data/examples/RedBook/list.rb +111 -0
- data/examples/RedBook/material.rb +275 -0
- data/examples/RedBook/mipmap.rb +156 -0
- data/examples/RedBook/model.rb +113 -0
- data/examples/RedBook/movelight.rb +132 -0
- data/examples/RedBook/pickdepth.rb +179 -0
- data/examples/RedBook/planet.rb +108 -0
- data/examples/RedBook/quadric.rb +158 -0
- data/examples/RedBook/robot.rb +115 -0
- data/examples/RedBook/select.rb +196 -0
- data/examples/RedBook/smooth.rb +95 -0
- data/examples/RedBook/stencil.rb +163 -0
- data/examples/RedBook/stroke.rb +167 -0
- data/examples/RedBook/surface.rb +166 -0
- data/examples/RedBook/teaambient.rb +132 -0
- data/examples/RedBook/teapots.rb +182 -0
- data/examples/RedBook/tess.rb +183 -0
- data/examples/RedBook/texbind.rb +147 -0
- data/examples/RedBook/texgen.rb +169 -0
- data/examples/RedBook/texturesurf.rb +128 -0
- data/examples/RedBook/varray.rb +159 -0
- data/examples/RedBook/wrap.rb +148 -0
- data/examples/misc/OGLBench.rb +337 -0
- data/examples/misc/anisotropic.rb +194 -0
- data/examples/misc/fbo_test.rb +356 -0
- data/examples/misc/font-glut.rb +46 -0
- data/examples/misc/glfwtest.rb +30 -0
- data/examples/misc/plane.rb +161 -0
- data/examples/misc/readpixel.rb +65 -0
- data/examples/misc/sdltest.rb +34 -0
- data/examples/misc/trislam.rb +828 -0
- data/lib/gl.so +0 -0
- data/lib/glu.so +0 -0
- data/lib/glut.so +0 -0
- data/lib/opengl.rb +84 -0
- metadata +132 -0
data/lib/gl.so
ADDED
Binary file
|
data/lib/glu.so
ADDED
Binary file
|
data/lib/glut.so
ADDED
Binary file
|
data/lib/opengl.rb
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
#
|
2
|
+
# Copyright (C) 2006 Peter McLain <peter.mclain@gmail.com>
|
3
|
+
# Copyright (C) 2007 Jan Dvorak <jan.dvorak@kraxnet.cz>
|
4
|
+
#
|
5
|
+
# This program is distributed under the terms of the MIT license.
|
6
|
+
# See the included MIT-LICENSE file for the terms of this license.
|
7
|
+
#
|
8
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
9
|
+
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
10
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
11
|
+
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
12
|
+
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
13
|
+
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
14
|
+
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
15
|
+
#
|
16
|
+
|
17
|
+
# This module provides access to the GL,GLU and GLUT methods and constants
|
18
|
+
# in the way that they were available in previous versions of ruby-opengl.
|
19
|
+
#
|
20
|
+
# Thanks to Ilmari Heikkinen for a previous "reversed" version of this code,
|
21
|
+
# and to Bill Kelly for a version before that one.
|
22
|
+
|
23
|
+
require 'gl'
|
24
|
+
require 'glu'
|
25
|
+
require 'glut'
|
26
|
+
|
27
|
+
include Gl,Glu,Glut
|
28
|
+
|
29
|
+
# (Gl.)glVertex -> GL.Vertex
|
30
|
+
# (Gl::)GL_TRUE -> GL::TRUE
|
31
|
+
module GL
|
32
|
+
extend self
|
33
|
+
include Gl
|
34
|
+
|
35
|
+
Gl.constants.each do |cn|
|
36
|
+
n = cn.to_s.sub(/^GL_/,'')
|
37
|
+
# due to ruby naming scheme, we can't export constants with leading decimal,
|
38
|
+
# e.g. (Gl::)GL_2D would under old syntax become (GL::)2D which is illegal
|
39
|
+
next if n =~ /^[0-9]/
|
40
|
+
const_set( n, Gl.const_get( cn ) )
|
41
|
+
end
|
42
|
+
|
43
|
+
Gl.methods( false ).each do |mn|
|
44
|
+
n = mn.to_s.sub(/^gl/,'')
|
45
|
+
alias_method( n, mn )
|
46
|
+
public( n )
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# (Glu.)gluSphere -> GLU.Sphere
|
51
|
+
# (Glu::)GLU_INSIDE -> GLU::INSIDE
|
52
|
+
module GLU
|
53
|
+
extend self
|
54
|
+
include Glu
|
55
|
+
|
56
|
+
Glu.constants.each do |cn|
|
57
|
+
n = cn.to_s.sub(/^GLU_/,'')
|
58
|
+
const_set( n, Glu.const_get( cn ) )
|
59
|
+
end
|
60
|
+
|
61
|
+
Glu.methods( false ).each do |mn|
|
62
|
+
n = mn.to_s.sub(/^glu/,'')
|
63
|
+
alias_method( n, mn )
|
64
|
+
public( n )
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# (Glut.)glutInit -> GLUT.Init
|
69
|
+
# (Glut::)GLUT_RGBA -> GLUT::RGBA
|
70
|
+
module GLUT
|
71
|
+
extend self
|
72
|
+
include Glut
|
73
|
+
|
74
|
+
Glut.constants.each do |cn|
|
75
|
+
n = cn.to_s.sub(/^GLUT_/,'')
|
76
|
+
const_set( n, Glut.const_get( cn ) )
|
77
|
+
end
|
78
|
+
|
79
|
+
Glut.methods( false ).each do |mn|
|
80
|
+
n = mn.to_s.sub(/^glut/,'')
|
81
|
+
alias_method( n, mn )
|
82
|
+
public( n )
|
83
|
+
end
|
84
|
+
end
|
metadata
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.9.4
|
3
|
+
specification_version: 1
|
4
|
+
name: ruby-opengl
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.60.0
|
7
|
+
date: 2008-01-08 00:00:00 +01:00
|
8
|
+
summary: OpenGL Interface for Ruby
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email:
|
12
|
+
homepage: http://ruby-opengl.rubyforge.org
|
13
|
+
rubyforge_project:
|
14
|
+
description:
|
15
|
+
autorequire: gl
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: false
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
25
|
+
platform: i386-mswin32
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
post_install_message:
|
29
|
+
authors:
|
30
|
+
- Alain Hoang
|
31
|
+
- Jan Dvorak
|
32
|
+
- Minh Thu Vo
|
33
|
+
- James Adam
|
34
|
+
files:
|
35
|
+
- lib/gl.so
|
36
|
+
- lib/glu.so
|
37
|
+
- lib/glut.so
|
38
|
+
- lib/opengl.rb
|
39
|
+
- examples/misc
|
40
|
+
- examples/misc/anisotropic.rb
|
41
|
+
- examples/misc/fbo_test.rb
|
42
|
+
- examples/misc/font-glut.rb
|
43
|
+
- examples/misc/glfwtest.rb
|
44
|
+
- examples/misc/OGLBench.rb
|
45
|
+
- examples/misc/plane.rb
|
46
|
+
- examples/misc/readpixel.rb
|
47
|
+
- examples/misc/sdltest.rb
|
48
|
+
- examples/misc/trislam.rb
|
49
|
+
- examples/NeHe
|
50
|
+
- examples/NeHe/nehe_lesson02.rb
|
51
|
+
- examples/NeHe/nehe_lesson03.rb
|
52
|
+
- examples/NeHe/nehe_lesson04.rb
|
53
|
+
- examples/NeHe/nehe_lesson05.rb
|
54
|
+
- examples/NeHe/nehe_lesson36.rb
|
55
|
+
- examples/OrangeBook
|
56
|
+
- examples/OrangeBook/3Dlabs-License.txt
|
57
|
+
- examples/OrangeBook/brick.frag
|
58
|
+
- examples/OrangeBook/brick.rb
|
59
|
+
- examples/OrangeBook/brick.vert
|
60
|
+
- examples/OrangeBook/particle.frag
|
61
|
+
- examples/OrangeBook/particle.rb
|
62
|
+
- examples/OrangeBook/particle.vert
|
63
|
+
- examples/README
|
64
|
+
- examples/RedBook
|
65
|
+
- examples/RedBook/aapoly.rb
|
66
|
+
- examples/RedBook/aargb.rb
|
67
|
+
- examples/RedBook/accanti.rb
|
68
|
+
- examples/RedBook/accpersp.rb
|
69
|
+
- examples/RedBook/alpha.rb
|
70
|
+
- examples/RedBook/alpha3D.rb
|
71
|
+
- examples/RedBook/bezcurve.rb
|
72
|
+
- examples/RedBook/bezmesh.rb
|
73
|
+
- examples/RedBook/checker.rb
|
74
|
+
- examples/RedBook/clip.rb
|
75
|
+
- examples/RedBook/colormat.rb
|
76
|
+
- examples/RedBook/cube.rb
|
77
|
+
- examples/RedBook/depthcue.rb
|
78
|
+
- examples/RedBook/dof.rb
|
79
|
+
- examples/RedBook/double.rb
|
80
|
+
- examples/RedBook/drawf.rb
|
81
|
+
- examples/RedBook/feedback.rb
|
82
|
+
- examples/RedBook/fog.rb
|
83
|
+
- examples/RedBook/font.rb
|
84
|
+
- examples/RedBook/hello.rb
|
85
|
+
- examples/RedBook/image.rb
|
86
|
+
- examples/RedBook/jitter.rb
|
87
|
+
- examples/RedBook/lines.rb
|
88
|
+
- examples/RedBook/list.rb
|
89
|
+
- examples/RedBook/material.rb
|
90
|
+
- examples/RedBook/mipmap.rb
|
91
|
+
- examples/RedBook/model.rb
|
92
|
+
- examples/RedBook/movelight.rb
|
93
|
+
- examples/RedBook/pickdepth.rb
|
94
|
+
- examples/RedBook/planet.rb
|
95
|
+
- examples/RedBook/quadric.rb
|
96
|
+
- examples/RedBook/robot.rb
|
97
|
+
- examples/RedBook/select.rb
|
98
|
+
- examples/RedBook/smooth.rb
|
99
|
+
- examples/RedBook/stencil.rb
|
100
|
+
- examples/RedBook/stroke.rb
|
101
|
+
- examples/RedBook/surface.rb
|
102
|
+
- examples/RedBook/teaambient.rb
|
103
|
+
- examples/RedBook/teapots.rb
|
104
|
+
- examples/RedBook/tess.rb
|
105
|
+
- examples/RedBook/texbind.rb
|
106
|
+
- examples/RedBook/texgen.rb
|
107
|
+
- examples/RedBook/texturesurf.rb
|
108
|
+
- examples/RedBook/varray.rb
|
109
|
+
- examples/RedBook/wrap.rb
|
110
|
+
- doc/build_install.txt
|
111
|
+
- doc/history.txt
|
112
|
+
- doc/requirements_and_design.txt
|
113
|
+
- doc/roadmap.txt
|
114
|
+
- doc/scientific_use.txt
|
115
|
+
- doc/thanks.txt
|
116
|
+
- doc/tutorial.txt
|
117
|
+
- MIT-LICENSE
|
118
|
+
- README.txt
|
119
|
+
test_files: []
|
120
|
+
|
121
|
+
rdoc_options: []
|
122
|
+
|
123
|
+
extra_rdoc_files: []
|
124
|
+
|
125
|
+
executables: []
|
126
|
+
|
127
|
+
extensions: []
|
128
|
+
|
129
|
+
requirements: []
|
130
|
+
|
131
|
+
dependencies: []
|
132
|
+
|