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.
Files changed (103) hide show
  1. data/.autotest +29 -0
  2. data/.gitignore +5 -8
  3. data/History.rdoc +33 -0
  4. data/Manifest.txt +72 -57
  5. data/README.rdoc +72 -25
  6. data/Rakefile +60 -72
  7. data/Rakefile.cross +5 -2
  8. data/{doc → docs}/build_install.txt +0 -0
  9. data/{doc → docs}/extensions.txt.in +0 -0
  10. data/{doc → docs}/history.txt +0 -0
  11. data/{doc → docs}/requirements_and_design.txt +0 -0
  12. data/{doc → docs}/roadmap.txt +0 -0
  13. data/{doc → docs}/scientific_use.txt +0 -0
  14. data/{doc → docs}/supplies/page_template.html +0 -0
  15. data/{doc → docs}/thanks.txt +0 -0
  16. data/{doc → docs}/tutorial.txt +0 -0
  17. data/examples/NeHe/NeHe.png +0 -0
  18. data/examples/NeHe/crate.png +0 -0
  19. data/examples/NeHe/glass.png +0 -0
  20. data/examples/NeHe/nehe_lesson02.rb +82 -83
  21. data/examples/NeHe/nehe_lesson03.rb +88 -88
  22. data/examples/NeHe/nehe_lesson04.rb +93 -96
  23. data/examples/NeHe/nehe_lesson05.rb +137 -144
  24. data/examples/NeHe/nehe_lesson06.rb +183 -0
  25. data/examples/NeHe/nehe_lesson07.rb +237 -0
  26. data/examples/NeHe/nehe_lesson08.rb +252 -0
  27. data/examples/NeHe/nehe_lesson09.rb +199 -0
  28. data/examples/NeHe/nehe_lesson11.rb +173 -0
  29. data/examples/NeHe/nehe_lesson12.rb +200 -0
  30. data/examples/NeHe/nehe_lesson16.rb +208 -0
  31. data/examples/NeHe/nehe_lesson19.rb +206 -0
  32. data/examples/NeHe/particle.png +0 -0
  33. data/examples/NeHe/star.png +0 -0
  34. data/examples/NeHe/tim.png +0 -0
  35. data/examples/RedBook/light.rb +154 -0
  36. data/examples/misc/OGLBench.rb +2 -2
  37. data/examples/misc/trislam.rb +2 -2
  38. data/ext/{common → opengl}/common.h +2 -11
  39. data/ext/{common → opengl}/conv.h +43 -31
  40. data/ext/{glut → opengl}/extconf.rb +14 -7
  41. data/ext/{common → opengl}/funcdef.h +155 -125
  42. data/ext/{gl → opengl}/gl-1.0-1.1.c +426 -162
  43. data/ext/{gl → opengl}/gl-1.2.c +70 -66
  44. data/ext/{gl → opengl}/gl-1.3.c +19 -19
  45. data/ext/{gl → opengl}/gl-1.4.c +23 -23
  46. data/ext/{gl → opengl}/gl-1.5.c +46 -47
  47. data/ext/{gl → opengl}/gl-2.0.c +66 -60
  48. data/ext/{gl → opengl}/gl-2.1.c +4 -4
  49. data/ext/{gl → opengl}/gl-enums.c +2 -1
  50. data/ext/{common → opengl}/gl-enums.h +0 -0
  51. data/ext/{gl → opengl}/gl-error.c +12 -4
  52. data/ext/{common → opengl}/gl-error.h +7 -2
  53. data/ext/{gl → opengl}/gl-ext-3dfx.c +1 -1
  54. data/ext/{gl → opengl}/gl-ext-arb.c +75 -70
  55. data/ext/{gl → opengl}/gl-ext-ati.c +3 -3
  56. data/ext/{gl → opengl}/gl-ext-ext.c +54 -54
  57. data/ext/{gl → opengl}/gl-ext-gremedy.c +3 -3
  58. data/ext/{gl → opengl}/gl-ext-nv.c +49 -48
  59. data/ext/{common → opengl}/gl-types.h +0 -0
  60. data/ext/{gl → opengl}/gl.c +8 -10
  61. data/ext/{glu → opengl}/glu-enums.c +1 -1
  62. data/ext/{common → opengl}/glu-enums.h +0 -0
  63. data/ext/{glu → opengl}/glu.c +7 -3
  64. data/ext/{glut → opengl}/glut.c +98 -48
  65. data/ext/opengl/opengl.c +11 -0
  66. data/lib/gl.rb +1 -0
  67. data/lib/glu.rb +1 -0
  68. data/lib/glut.rb +1 -0
  69. data/lib/opengl.rb +13 -14
  70. data/lib/opengl/opengl.so +0 -0
  71. data/lib/opengl/test_case.rb +87 -0
  72. data/test/{tc_misc.rb → test_gl.rb} +2 -14
  73. data/test/test_gl_10_11.rb +1363 -0
  74. data/test/test_gl_12.rb +182 -0
  75. data/test/{tc_func_13.rb → test_gl_13.rb} +14 -14
  76. data/test/test_gl_14.rb +221 -0
  77. data/test/test_gl_15.rb +260 -0
  78. data/test/test_gl_20.rb +430 -0
  79. data/test/test_gl_21.rb +553 -0
  80. data/test/test_gl_ext_arb.rb +526 -0
  81. data/test/{tc_ext_ati.rb → test_gl_ext_ati.rb} +11 -14
  82. data/test/test_gl_ext_ext.rb +608 -0
  83. data/test/{tc_ext_gremedy.rb → test_gl_ext_gremedy.rb} +6 -6
  84. data/test/test_gl_ext_nv.rb +352 -0
  85. data/test/test_glu.rb +309 -0
  86. metadata +159 -102
  87. data/History.txt +0 -36
  88. data/ext/gl/extconf.rb +0 -43
  89. data/ext/glu/extconf.rb +0 -51
  90. data/test/README +0 -10
  91. data/test/tc_common.rb +0 -98
  92. data/test/tc_ext_arb.rb +0 -467
  93. data/test/tc_ext_ext.rb +0 -551
  94. data/test/tc_ext_nv.rb +0 -357
  95. data/test/tc_func_10_11.rb +0 -1281
  96. data/test/tc_func_12.rb +0 -186
  97. data/test/tc_func_14.rb +0 -197
  98. data/test/tc_func_15.rb +0 -270
  99. data/test/tc_func_20.rb +0 -346
  100. data/test/tc_func_21.rb +0 -541
  101. data/test/tc_glu.rb +0 -310
  102. data/test/tc_include_gl.rb +0 -35
  103. 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: 1923832027
4
+ hash: 933985875
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
9
  - 0
10
10
  - pre
11
- - 1
12
- version: 0.7.0.pre1
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-01-31 00:00:00 Z
24
+ date: 2012-06-14 00:00:00 Z
24
25
  dependencies:
25
26
  - !ruby/object:Gem::Dependency
26
- name: rake-compiler
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: 27
34
+ hash: 19
34
35
  segments:
35
- - 0
36
- - 8
37
- version: "0.8"
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: hoe
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: 27
49
+ hash: 5
49
50
  segments:
50
- - 2
51
- - 12
52
- version: "2.12"
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: rdoc
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: 19
72
+ hash: 7
64
73
  segments:
65
74
  - 3
66
- - 10
67
- version: "3.10"
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
- Ruby-OpenGL consists of Ruby extension modules that are bindings for
72
- the OpenGL, GLU, and GLUT libraries.
73
- email: ruby-opengl-devel@rubyforge.org
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.txt
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.txt
126
+ - History.rdoc
94
127
  - MIT-LICENSE
95
128
  - Manifest.txt
96
129
  - README.rdoc
97
130
  - Rakefile
98
131
  - Rakefile.cross
99
- - doc/build_install.txt
100
- - doc/extensions.txt.in
101
- - doc/history.txt
102
- - doc/requirements_and_design.txt
103
- - doc/roadmap.txt
104
- - doc/scientific_use.txt
105
- - doc/supplies/page_template.html
106
- - doc/thanks.txt
107
- - doc/tutorial.txt
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/common/common.h
176
- - ext/common/conv.h
177
- - ext/common/funcdef.h
178
- - ext/common/gl-enums.h
179
- - ext/common/gl-error.h
180
- - ext/common/gl-types.h
181
- - ext/common/glu-enums.h
182
- - ext/gl/extconf.rb
183
- - ext/gl/gl-1.0-1.1.c
184
- - ext/gl/gl-1.2.c
185
- - ext/gl/gl-1.3.c
186
- - ext/gl/gl-1.4.c
187
- - ext/gl/gl-1.5.c
188
- - ext/gl/gl-2.0.c
189
- - ext/gl/gl-2.1.c
190
- - ext/gl/gl-enums.c
191
- - ext/gl/gl-error.c
192
- - ext/gl/gl-ext-3dfx.c
193
- - ext/gl/gl-ext-arb.c
194
- - ext/gl/gl-ext-ati.c
195
- - ext/gl/gl-ext-ext.c
196
- - ext/gl/gl-ext-gremedy.c
197
- - ext/gl/gl-ext-nv.c
198
- - ext/gl/gl.c
199
- - ext/glu/extconf.rb
200
- - ext/glu/glu-enums.c
201
- - ext/glu/glu.c
202
- - ext/glut/extconf.rb
203
- - ext/glut/glut.c
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
- - test/README
206
- - test/tc_common.rb
207
- - test/tc_ext_arb.rb
208
- - test/tc_ext_ati.rb
209
- - test/tc_ext_ext.rb
210
- - test/tc_ext_gremedy.rb
211
- - test/tc_ext_nv.rb
212
- - test/tc_func_10_11.rb
213
- - test/tc_func_12.rb
214
- - test/tc_func_13.rb
215
- - test/tc_func_14.rb
216
- - test/tc_func_15.rb
217
- - test/tc_func_20.rb
218
- - test/tc_func_21.rb
219
- - test/tc_glu.rb
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/1.8/gl.so
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: 3
293
+ hash: 57
252
294
  segments:
253
- - 0
254
- version: "0"
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: ruby-opengl
269
- rubygems_version: 1.8.11
312
+ rubyforge_project: opengl
313
+ rubygems_version: 1.8.17
270
314
  signing_key:
271
315
  specification_version: 3
272
- summary: Ruby-OpenGL consists of Ruby extension modules that are bindings for the OpenGL, GLU, and GLUT libraries.
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
@@ -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
@@ -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
@@ -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
-