opengl 0.7.0.pre1-x86-mingw32 → 0.7.0.pre2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +29 -0
- data/.gitignore +5 -8
- data/History.rdoc +33 -0
- data/Manifest.txt +72 -57
- data/README.rdoc +72 -25
- data/Rakefile +60 -72
- data/Rakefile.cross +5 -2
- data/{doc → docs}/build_install.txt +0 -0
- data/{doc → docs}/extensions.txt.in +0 -0
- data/{doc → docs}/history.txt +0 -0
- data/{doc → docs}/requirements_and_design.txt +0 -0
- data/{doc → docs}/roadmap.txt +0 -0
- data/{doc → docs}/scientific_use.txt +0 -0
- data/{doc → docs}/supplies/page_template.html +0 -0
- data/{doc → docs}/thanks.txt +0 -0
- data/{doc → docs}/tutorial.txt +0 -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 +82 -83
- data/examples/NeHe/nehe_lesson03.rb +88 -88
- data/examples/NeHe/nehe_lesson04.rb +93 -96
- data/examples/NeHe/nehe_lesson05.rb +137 -144
- data/examples/NeHe/nehe_lesson06.rb +183 -0
- data/examples/NeHe/nehe_lesson07.rb +237 -0
- data/examples/NeHe/nehe_lesson08.rb +252 -0
- data/examples/NeHe/nehe_lesson09.rb +199 -0
- data/examples/NeHe/nehe_lesson11.rb +173 -0
- data/examples/NeHe/nehe_lesson12.rb +200 -0
- data/examples/NeHe/nehe_lesson16.rb +208 -0
- data/examples/NeHe/nehe_lesson19.rb +206 -0
- data/examples/NeHe/particle.png +0 -0
- data/examples/NeHe/star.png +0 -0
- data/examples/NeHe/tim.png +0 -0
- data/examples/RedBook/light.rb +154 -0
- data/examples/misc/OGLBench.rb +2 -2
- data/examples/misc/trislam.rb +2 -2
- data/ext/{common → opengl}/common.h +2 -11
- data/ext/{common → opengl}/conv.h +43 -31
- data/ext/{glut → opengl}/extconf.rb +14 -7
- data/ext/{common → opengl}/funcdef.h +155 -125
- data/ext/{gl → opengl}/gl-1.0-1.1.c +426 -162
- data/ext/{gl → opengl}/gl-1.2.c +70 -66
- data/ext/{gl → opengl}/gl-1.3.c +19 -19
- data/ext/{gl → opengl}/gl-1.4.c +23 -23
- data/ext/{gl → opengl}/gl-1.5.c +46 -47
- data/ext/{gl → opengl}/gl-2.0.c +66 -60
- data/ext/{gl → opengl}/gl-2.1.c +4 -4
- data/ext/{gl → opengl}/gl-enums.c +2 -1
- data/ext/{common → opengl}/gl-enums.h +0 -0
- data/ext/{gl → opengl}/gl-error.c +12 -4
- data/ext/{common → opengl}/gl-error.h +7 -2
- data/ext/{gl → opengl}/gl-ext-3dfx.c +1 -1
- data/ext/{gl → opengl}/gl-ext-arb.c +75 -70
- data/ext/{gl → opengl}/gl-ext-ati.c +3 -3
- data/ext/{gl → opengl}/gl-ext-ext.c +54 -54
- data/ext/{gl → opengl}/gl-ext-gremedy.c +3 -3
- data/ext/{gl → opengl}/gl-ext-nv.c +49 -48
- data/ext/{common → opengl}/gl-types.h +0 -0
- data/ext/{gl → opengl}/gl.c +8 -10
- data/ext/{glu → opengl}/glu-enums.c +1 -1
- data/ext/{common → opengl}/glu-enums.h +0 -0
- data/ext/{glu → opengl}/glu.c +7 -3
- data/ext/{glut → opengl}/glut.c +98 -48
- data/ext/opengl/opengl.c +11 -0
- data/lib/gl.rb +1 -0
- data/lib/glu.rb +1 -0
- data/lib/glut.rb +1 -0
- data/lib/opengl.rb +13 -14
- data/lib/opengl/opengl.so +0 -0
- data/lib/opengl/test_case.rb +87 -0
- data/test/{tc_misc.rb → test_gl.rb} +2 -14
- data/test/test_gl_10_11.rb +1363 -0
- data/test/test_gl_12.rb +182 -0
- data/test/{tc_func_13.rb → test_gl_13.rb} +14 -14
- data/test/test_gl_14.rb +221 -0
- data/test/test_gl_15.rb +260 -0
- data/test/test_gl_20.rb +430 -0
- data/test/test_gl_21.rb +553 -0
- data/test/test_gl_ext_arb.rb +526 -0
- data/test/{tc_ext_ati.rb → test_gl_ext_ati.rb} +11 -14
- data/test/test_gl_ext_ext.rb +608 -0
- data/test/{tc_ext_gremedy.rb → test_gl_ext_gremedy.rb} +6 -6
- data/test/test_gl_ext_nv.rb +352 -0
- data/test/test_glu.rb +309 -0
- metadata +159 -102
- data/History.txt +0 -36
- data/ext/gl/extconf.rb +0 -43
- data/ext/glu/extconf.rb +0 -51
- data/test/README +0 -10
- data/test/tc_common.rb +0 -98
- data/test/tc_ext_arb.rb +0 -467
- data/test/tc_ext_ext.rb +0 -551
- data/test/tc_ext_nv.rb +0 -357
- data/test/tc_func_10_11.rb +0 -1281
- data/test/tc_func_12.rb +0 -186
- data/test/tc_func_14.rb +0 -197
- data/test/tc_func_15.rb +0 -270
- data/test/tc_func_20.rb +0 -346
- data/test/tc_func_21.rb +0 -541
- data/test/tc_glu.rb +0 -310
- data/test/tc_include_gl.rb +0 -35
- data/test/tc_require_gl.rb +0 -34
metadata
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opengl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 933985875
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
9
|
- 0
|
10
10
|
- pre
|
11
|
-
-
|
12
|
-
version: 0.7.0.
|
11
|
+
- 2
|
12
|
+
version: 0.7.0.pre2
|
13
13
|
platform: x86-mingw32
|
14
14
|
authors:
|
15
|
+
- Eric Hodel
|
15
16
|
- Alain Hoang
|
16
17
|
- Jan Dvorak
|
17
18
|
- Minh Thu Vo
|
@@ -20,96 +21,142 @@ autorequire:
|
|
20
21
|
bindir: bin
|
21
22
|
cert_chain: []
|
22
23
|
|
23
|
-
date: 2012-
|
24
|
+
date: 2012-06-14 00:00:00 Z
|
24
25
|
dependencies:
|
25
26
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
27
|
+
name: rdoc
|
27
28
|
prerelease: false
|
28
29
|
requirement: &id001 !ruby/object:Gem::Requirement
|
29
30
|
none: false
|
30
31
|
requirements:
|
31
|
-
- -
|
32
|
+
- - ~>
|
32
33
|
- !ruby/object:Gem::Version
|
33
|
-
hash:
|
34
|
+
hash: 19
|
34
35
|
segments:
|
35
|
-
-
|
36
|
-
-
|
37
|
-
version: "
|
36
|
+
- 3
|
37
|
+
- 10
|
38
|
+
version: "3.10"
|
38
39
|
type: :development
|
39
40
|
version_requirements: *id001
|
40
41
|
- !ruby/object:Gem::Dependency
|
41
|
-
name:
|
42
|
+
name: rake-compiler
|
42
43
|
prerelease: false
|
43
44
|
requirement: &id002 !ruby/object:Gem::Requirement
|
44
45
|
none: false
|
45
46
|
requirements:
|
46
47
|
- - ~>
|
47
48
|
- !ruby/object:Gem::Version
|
48
|
-
hash:
|
49
|
+
hash: 5
|
49
50
|
segments:
|
50
|
-
-
|
51
|
-
-
|
52
|
-
version: "
|
51
|
+
- 0
|
52
|
+
- 7
|
53
|
+
version: "0.7"
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
hash: 17
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
- 7
|
60
|
+
- 9
|
61
|
+
version: 0.7.9
|
53
62
|
type: :development
|
54
63
|
version_requirements: *id002
|
55
64
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
65
|
+
name: minitest
|
57
66
|
prerelease: false
|
58
67
|
requirement: &id003 !ruby/object:Gem::Requirement
|
59
68
|
none: false
|
60
69
|
requirements:
|
61
70
|
- - ~>
|
62
71
|
- !ruby/object:Gem::Version
|
63
|
-
hash:
|
72
|
+
hash: 7
|
64
73
|
segments:
|
65
74
|
- 3
|
66
|
-
-
|
67
|
-
version: "3.
|
75
|
+
- 0
|
76
|
+
version: "3.0"
|
68
77
|
type: :development
|
69
78
|
version_requirements: *id003
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: hoe
|
81
|
+
prerelease: false
|
82
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ~>
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
hash: 7
|
88
|
+
segments:
|
89
|
+
- 3
|
90
|
+
- 0
|
91
|
+
version: "3.0"
|
92
|
+
type: :development
|
93
|
+
version_requirements: *id004
|
70
94
|
description: |-
|
71
|
-
|
72
|
-
|
73
|
-
|
95
|
+
An OpenGL wrapper for Ruby. ruby-opengl contains bindings for OpenGL and the
|
96
|
+
GLU and GLUT libraries.
|
97
|
+
|
98
|
+
* This branch is for compatibility with Ruby 1.8. Latest development is for
|
99
|
+
Ruby 1.9.2+ only, on master branch: https://github.com/larskanis/opengl
|
100
|
+
email:
|
101
|
+
- drbrain@segment7.net
|
102
|
+
- ""
|
103
|
+
- ""
|
104
|
+
- ""
|
105
|
+
- ""
|
74
106
|
executables: []
|
75
107
|
|
76
108
|
extensions: []
|
77
109
|
|
78
110
|
extra_rdoc_files:
|
79
|
-
- History.
|
111
|
+
- History.rdoc
|
80
112
|
- Manifest.txt
|
81
|
-
- doc/build_install.txt
|
82
|
-
- doc/history.txt
|
83
|
-
- doc/requirements_and_design.txt
|
84
|
-
- doc/roadmap.txt
|
85
|
-
- doc/scientific_use.txt
|
86
|
-
- doc/thanks.txt
|
87
|
-
- doc/tutorial.txt
|
88
|
-
- examples/OrangeBook/3Dlabs-License.txt
|
89
113
|
- README.rdoc
|
114
|
+
- docs/build_install.txt
|
115
|
+
- docs/history.txt
|
116
|
+
- docs/requirements_and_design.txt
|
117
|
+
- docs/roadmap.txt
|
118
|
+
- docs/scientific_use.txt
|
119
|
+
- docs/thanks.txt
|
120
|
+
- docs/tutorial.txt
|
121
|
+
- examples/OrangeBook/3Dlabs-License.txt
|
90
122
|
files:
|
123
|
+
- .autotest
|
91
124
|
- .gemtest
|
92
125
|
- .gitignore
|
93
|
-
- History.
|
126
|
+
- History.rdoc
|
94
127
|
- MIT-LICENSE
|
95
128
|
- Manifest.txt
|
96
129
|
- README.rdoc
|
97
130
|
- Rakefile
|
98
131
|
- Rakefile.cross
|
99
|
-
-
|
100
|
-
-
|
101
|
-
-
|
102
|
-
-
|
103
|
-
-
|
104
|
-
-
|
105
|
-
-
|
106
|
-
-
|
107
|
-
-
|
132
|
+
- docs/build_install.txt
|
133
|
+
- docs/extensions.txt.in
|
134
|
+
- docs/history.txt
|
135
|
+
- docs/requirements_and_design.txt
|
136
|
+
- docs/roadmap.txt
|
137
|
+
- docs/scientific_use.txt
|
138
|
+
- docs/supplies/page_template.html
|
139
|
+
- docs/thanks.txt
|
140
|
+
- docs/tutorial.txt
|
141
|
+
- examples/NeHe/NeHe.png
|
142
|
+
- examples/NeHe/crate.png
|
143
|
+
- examples/NeHe/glass.png
|
108
144
|
- examples/NeHe/nehe_lesson02.rb
|
109
145
|
- examples/NeHe/nehe_lesson03.rb
|
110
146
|
- examples/NeHe/nehe_lesson04.rb
|
111
147
|
- examples/NeHe/nehe_lesson05.rb
|
148
|
+
- examples/NeHe/nehe_lesson06.rb
|
149
|
+
- examples/NeHe/nehe_lesson07.rb
|
150
|
+
- examples/NeHe/nehe_lesson08.rb
|
151
|
+
- examples/NeHe/nehe_lesson09.rb
|
152
|
+
- examples/NeHe/nehe_lesson11.rb
|
153
|
+
- examples/NeHe/nehe_lesson12.rb
|
154
|
+
- examples/NeHe/nehe_lesson16.rb
|
155
|
+
- examples/NeHe/nehe_lesson19.rb
|
112
156
|
- examples/NeHe/nehe_lesson36.rb
|
157
|
+
- examples/NeHe/particle.png
|
158
|
+
- examples/NeHe/star.png
|
159
|
+
- examples/NeHe/tim.png
|
113
160
|
- examples/OrangeBook/3Dlabs-License.txt
|
114
161
|
- examples/OrangeBook/brick.frag
|
115
162
|
- examples/OrangeBook/brick.rb
|
@@ -140,6 +187,7 @@ files:
|
|
140
187
|
- examples/RedBook/hello.rb
|
141
188
|
- examples/RedBook/image.rb
|
142
189
|
- examples/RedBook/jitter.rb
|
190
|
+
- examples/RedBook/light.rb
|
143
191
|
- examples/RedBook/lines.rb
|
144
192
|
- examples/RedBook/list.rb
|
145
193
|
- examples/RedBook/material.rb
|
@@ -172,54 +220,53 @@ files:
|
|
172
220
|
- examples/misc/readpixel.rb
|
173
221
|
- examples/misc/sdltest.rb
|
174
222
|
- examples/misc/trislam.rb
|
175
|
-
- ext/
|
176
|
-
- ext/
|
177
|
-
- ext/
|
178
|
-
- ext/
|
179
|
-
- ext/
|
180
|
-
- ext/
|
181
|
-
- ext/
|
182
|
-
- ext/gl
|
183
|
-
- ext/
|
184
|
-
- ext/
|
185
|
-
- ext/
|
186
|
-
- ext/
|
187
|
-
- ext/
|
188
|
-
- ext/
|
189
|
-
- ext/
|
190
|
-
- ext/
|
191
|
-
- ext/
|
192
|
-
- ext/
|
193
|
-
- ext/
|
194
|
-
- ext/
|
195
|
-
- ext/
|
196
|
-
- ext/
|
197
|
-
- ext/
|
198
|
-
- ext/
|
199
|
-
- ext/glu
|
200
|
-
- ext/
|
201
|
-
- ext/
|
202
|
-
- ext/
|
203
|
-
-
|
223
|
+
- ext/opengl/common.h
|
224
|
+
- ext/opengl/conv.h
|
225
|
+
- ext/opengl/extconf.rb
|
226
|
+
- ext/opengl/funcdef.h
|
227
|
+
- ext/opengl/gl-1.0-1.1.c
|
228
|
+
- ext/opengl/gl-1.2.c
|
229
|
+
- ext/opengl/gl-1.3.c
|
230
|
+
- ext/opengl/gl-1.4.c
|
231
|
+
- ext/opengl/gl-1.5.c
|
232
|
+
- ext/opengl/gl-2.0.c
|
233
|
+
- ext/opengl/gl-2.1.c
|
234
|
+
- ext/opengl/gl-enums.c
|
235
|
+
- ext/opengl/gl-enums.h
|
236
|
+
- ext/opengl/gl-error.c
|
237
|
+
- ext/opengl/gl-error.h
|
238
|
+
- ext/opengl/gl-ext-3dfx.c
|
239
|
+
- ext/opengl/gl-ext-arb.c
|
240
|
+
- ext/opengl/gl-ext-ati.c
|
241
|
+
- ext/opengl/gl-ext-ext.c
|
242
|
+
- ext/opengl/gl-ext-gremedy.c
|
243
|
+
- ext/opengl/gl-ext-nv.c
|
244
|
+
- ext/opengl/gl-types.h
|
245
|
+
- ext/opengl/gl.c
|
246
|
+
- ext/opengl/glu-enums.c
|
247
|
+
- ext/opengl/glu-enums.h
|
248
|
+
- ext/opengl/glu.c
|
249
|
+
- ext/opengl/glut.c
|
250
|
+
- ext/opengl/opengl.c
|
251
|
+
- lib/gl.rb
|
252
|
+
- lib/glu.rb
|
253
|
+
- lib/glut.rb
|
204
254
|
- lib/opengl.rb
|
205
|
-
-
|
206
|
-
- test/
|
207
|
-
- test/
|
208
|
-
- test/
|
209
|
-
- test/
|
210
|
-
- test/
|
211
|
-
- test/
|
212
|
-
- test/
|
213
|
-
- test/
|
214
|
-
- test/
|
215
|
-
- test/
|
216
|
-
- test/
|
217
|
-
- test/
|
218
|
-
- test/
|
219
|
-
- test/
|
220
|
-
- test/tc_include_gl.rb
|
221
|
-
- test/tc_misc.rb
|
222
|
-
- test/tc_require_gl.rb
|
255
|
+
- lib/opengl/test_case.rb
|
256
|
+
- test/test_gl.rb
|
257
|
+
- test/test_gl_10_11.rb
|
258
|
+
- test/test_gl_12.rb
|
259
|
+
- test/test_gl_13.rb
|
260
|
+
- test/test_gl_14.rb
|
261
|
+
- test/test_gl_15.rb
|
262
|
+
- test/test_gl_20.rb
|
263
|
+
- test/test_gl_21.rb
|
264
|
+
- test/test_gl_ext_arb.rb
|
265
|
+
- test/test_gl_ext_ati.rb
|
266
|
+
- test/test_gl_ext_ext.rb
|
267
|
+
- test/test_gl_ext_gremedy.rb
|
268
|
+
- test/test_gl_ext_nv.rb
|
269
|
+
- test/test_glu.rb
|
223
270
|
- utils/README
|
224
271
|
- utils/enumgen.rb
|
225
272
|
- utils/extlistgen.rb
|
@@ -228,12 +275,7 @@ files:
|
|
228
275
|
- website/images/ogl.jpg
|
229
276
|
- website/images/tab_bottom.gif
|
230
277
|
- website/style.css
|
231
|
-
- lib/
|
232
|
-
- lib/1.9/gl.so
|
233
|
-
- lib/1.8/glu.so
|
234
|
-
- lib/1.9/glu.so
|
235
|
-
- lib/1.8/glut.so
|
236
|
-
- lib/1.9/glut.so
|
278
|
+
- lib/opengl/opengl.so
|
237
279
|
homepage: http://ruby-opengl.rubyforge.org
|
238
280
|
licenses: []
|
239
281
|
|
@@ -248,10 +290,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
248
290
|
requirements:
|
249
291
|
- - ">="
|
250
292
|
- !ruby/object:Gem::Version
|
251
|
-
hash:
|
293
|
+
hash: 57
|
252
294
|
segments:
|
253
|
-
-
|
254
|
-
|
295
|
+
- 1
|
296
|
+
- 8
|
297
|
+
- 7
|
298
|
+
version: 1.8.7
|
255
299
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
256
300
|
none: false
|
257
301
|
requirements:
|
@@ -265,10 +309,23 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
309
|
version: 1.3.1
|
266
310
|
requirements: []
|
267
311
|
|
268
|
-
rubyforge_project:
|
269
|
-
rubygems_version: 1.8.
|
312
|
+
rubyforge_project: opengl
|
313
|
+
rubygems_version: 1.8.17
|
270
314
|
signing_key:
|
271
315
|
specification_version: 3
|
272
|
-
summary:
|
273
|
-
test_files:
|
274
|
-
|
316
|
+
summary: An OpenGL wrapper for Ruby
|
317
|
+
test_files:
|
318
|
+
- test/test_gl_13.rb
|
319
|
+
- test/test_gl_10_11.rb
|
320
|
+
- test/test_gl_12.rb
|
321
|
+
- test/test_gl_14.rb
|
322
|
+
- test/test_glu.rb
|
323
|
+
- test/test_gl_15.rb
|
324
|
+
- test/test_gl_ext_nv.rb
|
325
|
+
- test/test_gl_ext_ati.rb
|
326
|
+
- test/test_gl_ext_ext.rb
|
327
|
+
- test/test_gl_21.rb
|
328
|
+
- test/test_gl_20.rb
|
329
|
+
- test/test_gl_ext_gremedy.rb
|
330
|
+
- test/test_gl.rb
|
331
|
+
- test/test_gl_ext_arb.rb
|
data/History.txt
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
=== 0.7.0 / HEAD
|
2
|
-
|
3
|
-
* Switch to Hoe and rake-compiler
|
4
|
-
* Add cross compilation of fat binary gems for Windows with freeglut
|
5
|
-
* Replace mkrf with extconf.rb
|
6
|
-
* Add the proper conversions from 64 bit types to 32 bit types, or uses 64 bit types
|
7
|
-
when no conversion to 32 bits is required
|
8
|
-
* Replace version checks for feature checks. No more -DRUBY_VERSION or -DWIN32
|
9
|
-
* Removes redefinition of NUM2* in ext/common/common.h
|
10
|
-
* Switch to dlopen() from deprecated NSAddImage() and friends for OS X
|
11
|
-
* Fix bug in glut_TabletButtonFuncCallback that did not include the function to call
|
12
|
-
* Fix bug in ARY2CMAT macro which wanted 5 arguments but only used and was called with 4
|
13
|
-
|
14
|
-
=== 0.60.1 / 2009-02-16
|
15
|
-
|
16
|
-
This is maintenance release.
|
17
|
-
|
18
|
-
* Bugfixes
|
19
|
-
* Proper support for ruby 1.9/1.9.1+
|
20
|
-
* Updated OpenGL enumerators in preparation for OpenGL 3.0
|
21
|
-
|
22
|
-
=== 0.60.0 / 2008-01-06
|
23
|
-
|
24
|
-
* Automatic error checking for GL/GLU calls, enabled by default (see doc/tutorial)
|
25
|
-
* Added support for many more OpenGL extensions
|
26
|
-
* Support for Ruby 1.9.0+ (requires mkrf 0.2.3)
|
27
|
-
* Ton of bugfixes.<br><br>
|
28
|
-
|
29
|
-
==== API Changes
|
30
|
-
* Boolean functions/parameters was changed to ruby true/false instead of GL\_TRUE / GL\_FALSE, which remains for compatibility
|
31
|
-
* glGet\* functions now returns x instead of [x] when returning only one value
|
32
|
-
* Functions operating on packed strings (glTexture, gl\*Pointer etc.) now also accepts ruby arrays directly
|
33
|
-
* Matrix handling functions now also accepts instances of Matrix class, or any class that can be converted to array
|
34
|
-
* glUniform\*v and glUniformmatrix\*v now does not require 'count' parameter, they will calculate it from length of passed array
|
35
|
-
* glCallLists needs type specifier (previously was forced to GL_BYTE)
|
36
|
-
* On ruby 1.9, glut keyboard callback returns char ("x") instead of integer so using 'if key == ?x' works on both 1.8 and 1.9
|
data/ext/gl/extconf.rb
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
require 'mkmf'
|
2
|
-
|
3
|
-
def have_framework(fw, &b)
|
4
|
-
checking_for fw do
|
5
|
-
src = cpp_include("#{fw}/#{fw}.h") << "\n" "int main(void){return 0;}"
|
6
|
-
if try_link(src, opt = "-ObjC -framework #{fw}", &b)
|
7
|
-
$defs.push(format("-DHAVE_FRAMEWORK_%s", fw.tr_cpp))
|
8
|
-
$LDFLAGS << " " << opt
|
9
|
-
true
|
10
|
-
else
|
11
|
-
false
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end unless respond_to? :have_framework
|
15
|
-
|
16
|
-
ok =
|
17
|
-
have_library('opengl32.lib') ||
|
18
|
-
have_library('opengl32') ||
|
19
|
-
have_library('GL', 'glVertex3d') ||
|
20
|
-
have_framework('OpenGL')
|
21
|
-
|
22
|
-
ok &&=
|
23
|
-
have_header('GL/gl.h') ||
|
24
|
-
have_header('OpenGL/gl.h') # OS X
|
25
|
-
|
26
|
-
have_header 'GL/glx.h' # *NIX only?
|
27
|
-
have_header 'dlfcn.h' # OS X dynamic loader
|
28
|
-
have_header 'windows.h'
|
29
|
-
|
30
|
-
have_header 'stdint.h'
|
31
|
-
have_header 'inttypes.h'
|
32
|
-
|
33
|
-
have_func 'wglGetProcAddress', 'wingdi.h' # Windows extension loader
|
34
|
-
|
35
|
-
have_struct_member 'struct RFloat', 'float_value'
|
36
|
-
|
37
|
-
have_type 'int64_t', 'stdint.h'
|
38
|
-
have_type 'uint64_t', 'stdint.h'
|
39
|
-
|
40
|
-
if ok then
|
41
|
-
create_header
|
42
|
-
create_makefile 'gl'
|
43
|
-
end
|
data/ext/glu/extconf.rb
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
require 'mkmf'
|
2
|
-
|
3
|
-
def have_framework(fw, &b)
|
4
|
-
checking_for fw do
|
5
|
-
src = cpp_include("#{fw}/#{fw}.h") << "\n" "int main(void){return 0;}"
|
6
|
-
if try_link(src, opt = "-ObjC -framework #{fw}", &b)
|
7
|
-
$defs.push(format("-DHAVE_FRAMEWORK_%s", fw.tr_cpp))
|
8
|
-
$LDFLAGS << " " << opt
|
9
|
-
true
|
10
|
-
else
|
11
|
-
false
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end unless respond_to? :have_framework
|
15
|
-
|
16
|
-
ok =
|
17
|
-
(have_library('opengl32.lib') &&
|
18
|
-
have_library('glu32.lib')) ||
|
19
|
-
(have_library('opengl32') &&
|
20
|
-
have_library('glu32')) ||
|
21
|
-
(have_library('GL', 'glVertex3d') &&
|
22
|
-
have_library('GLU', 'gluLookAt')) ||
|
23
|
-
have_framework('OpenGL')
|
24
|
-
|
25
|
-
ok &&=
|
26
|
-
have_header('GL/gl.h') ||
|
27
|
-
have_header('OpenGL/gl.h') # OS X
|
28
|
-
|
29
|
-
ok &&=
|
30
|
-
have_header('GL/glu.h') ||
|
31
|
-
have_header('OpenGL/glu.h') # OS X
|
32
|
-
|
33
|
-
have_header 'GL/glx.h' # *NIX only?
|
34
|
-
have_header 'dlfcn.h' # OS X dynamic loader
|
35
|
-
have_header 'windows.h'
|
36
|
-
|
37
|
-
have_header 'stdint.h'
|
38
|
-
have_header 'inttypes.h'
|
39
|
-
|
40
|
-
have_func 'wglGetProcAddress', 'wingdi.h' # Windows extension loader
|
41
|
-
|
42
|
-
have_struct_member 'struct RFloat', 'float_value'
|
43
|
-
|
44
|
-
have_type 'int64_t', 'stdint.h'
|
45
|
-
have_type 'uint64_t', 'stdint.h'
|
46
|
-
|
47
|
-
if ok then
|
48
|
-
create_header
|
49
|
-
create_makefile 'glu'
|
50
|
-
end
|
51
|
-
|