opengl 0.7.0.pre2-x86-mingw32 → 0.7.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
data/History.rdoc CHANGED
@@ -1,6 +1,18 @@
1
- === 0.8 / master HEAD
1
+ === 0.7.0 / 2013-02-03
2
2
 
3
- * drop support for Ruby 1.8
3
+ * Better support of 64 bit systems.
4
+ * Replace mkrf with extconf.rb, hoe and rake-compiler.
5
+ * Switch to dlopen() from deprecated NSAddImage() and friends for OS X.
6
+ * glBegin, glPushMatrix, glEnable and glEnableClientState now accept a block.
7
+ * glEnable/glDisable and glEnableClientState/glDisableClientState now accept
8
+ multiple arguments.
9
+ * Allow to_a-able objects for glColor*v, glRasterPos*v, glRect*v, glTexCoord*v,
10
+ glMaterial, glNormal and glVertex.
11
+ * Fix unused param count in ARY2CMAT.
12
+ * Fix a lot of bugs in the test suite.
13
+ * Merge opengl C extensions into a single extension to avoid code duplication
14
+ in extconf.rb and simplify rebuilding based on header changes.
15
+ * Add cross compilation tasks with download of freeglut for binary windows gems
4
16
 
5
17
  === 0.60.1 / 2009-02-16
6
18
 
data/README.rdoc CHANGED
@@ -29,7 +29,7 @@ GLU and GLUT libraries.
29
29
 
30
30
  == Install
31
31
 
32
- gem install opengl -v "~>0.7.0" --pre
32
+ gem install opengl -v "~>0.7.0"
33
33
 
34
34
  == Developers
35
35
 
@@ -50,9 +50,11 @@ DLLs.
50
50
 
51
51
  Install mingw32 or w64 using the instructions in rake-compiler's README.
52
52
  For Debian/Ubuntu it is <tt>apt-get install gcc-mingw-w64</tt> .
53
+ Use ruby-1.8.7 for the following commands.
53
54
 
54
- Download and cross compile ruby 1.9 for win32 with:
55
+ Download and cross compile ruby 1.8 and 1.9 for win32 with:
55
56
 
57
+ rake-compiler cross-ruby VERSION=1.8.7-p357
56
58
  rake-compiler cross-ruby VERSION=1.9.3-p0
57
59
 
58
60
  Download and cross compile opengl for win32:
@@ -61,7 +63,7 @@ Download and cross compile opengl for win32:
61
63
 
62
64
  or with custom versions:
63
65
 
64
- rake cross native gem RUBY_CC_VERSION=1.9.3 LIBFREEGLUT_VERSION=2.8.0
66
+ rake cross native gem RUBY_CC_VERSION=1.8.7:1.9.3 LIBFREEGLUT_VERSION=2.8.0
65
67
 
66
68
  If everything works, there should be ruby-opengl-VERSION-x86-mingw32.gem in the pkg
67
69
  directory.
data/Rakefile.cross CHANGED
@@ -9,7 +9,7 @@ require 'uri'
9
9
  require 'rbconfig'
10
10
  require 'pathname'
11
11
 
12
- ENV['RUBY_CC_VERSION'] ||= '1.9.3'
12
+ ENV['RUBY_CC_VERSION'] ||= '1.8.7:1.9.3'
13
13
 
14
14
  # Cross-compilation constants
15
15
  COMPILE_HOME = Pathname( "build" ).expand_path
@@ -2609,7 +2609,7 @@ gl_Material(VALUE self, VALUE face, VALUE pname, VALUE param)
2609
2609
  {
2610
2610
  VALUE ary;
2611
2611
 
2612
- if (RB_TYPE_P(param, T_ARRAY)) {
2612
+ if (TYPE(param) == T_ARRAY) {
2613
2613
  gl_Materialfv(self, face, pname, param);
2614
2614
  } else if (ary = rb_convert_type(param, T_ARRAY, "Array", "to_a")) {
2615
2615
  gl_Materialfv(self, face, pname, ary);
data/ext/opengl/glut.c CHANGED
@@ -100,9 +100,9 @@ static VALUE glut_Init( int argc, VALUE * argv, VALUE obj)
100
100
 
101
101
  if (rb_scan_args(argc, argv, "01", &orig_arg) == 0)
102
102
  orig_arg = rb_eval_string("[$0] + ARGV");
103
- else
103
+ else
104
104
  Check_Type(orig_arg, T_ARRAY);
105
-
105
+
106
106
  /* converts commandline parameters from ruby to C, passes them
107
107
  to glutInit and returns the parameters stripped of glut-specific
108
108
  commands ("-display","-geometry" etc.) */
@@ -110,9 +110,9 @@ static VALUE glut_Init( int argc, VALUE * argv, VALUE obj)
110
110
  largv = ALLOCA_N(char*, largc);
111
111
  for (i = 0; i < largc; i++)
112
112
  largv[i] = StringValueCStr(RARRAY_PTR(orig_arg)[i]);
113
-
113
+
114
114
  glutInit(&largc, largv);
115
-
115
+
116
116
  new_argv = rb_ary_new2(largc);
117
117
  for (i = 0; i < largc; i++)
118
118
  rb_ary_push(new_argv,rb_str_new2(largv[i]));
@@ -256,7 +256,7 @@ VALUE obj,callback,arg2;
256
256
  return Qnil;
257
257
  }
258
258
 
259
- /* GLUT window sub-API. */
259
+ /* GLUT window sub-API. */
260
260
  static VALUE glut_CreateWindow(argc, argv, obj)
261
261
  int argc;
262
262
  VALUE* argv;
@@ -988,7 +988,7 @@ static inline void * bitmap_font_map(int f)
988
988
  switch (f) {
989
989
  case 0: return (void *)GLUT_BITMAP_9_BY_15;
990
990
  case 1: return (void *)GLUT_BITMAP_8_BY_13;
991
- case 2: return (void *)GLUT_BITMAP_TIMES_ROMAN_10;
991
+ case 2: return (void *)GLUT_BITMAP_TIMES_ROMAN_10;
992
992
  case 3: return (void *)GLUT_BITMAP_TIMES_ROMAN_24;
993
993
  case 4: return (void *)GLUT_BITMAP_HELVETICA_10;
994
994
  case 5: return (void *)GLUT_BITMAP_HELVETICA_12;
@@ -1460,7 +1460,7 @@ DLLEXPORT void Init_glut()
1460
1460
  rb_define_module_function(module, "glutIgnoreKeyRepeat", glut_IgnoreKeyRepeat, 1);
1461
1461
  rb_define_module_function(module, "glutPostWindowOverlayRedisplay", glut_PostWindowOverlayRedisplay, 1);
1462
1462
  rb_define_module_function(module, "glutPostWindowRedisplay", glut_PostWindowRedisplay, 1);
1463
-
1463
+
1464
1464
  rb_define_const(module, "GLUT_API_VERSION", INT2NUM(GLUT_API_VERSION));
1465
1465
  rb_define_const(module, "GLUT_XLIB_IMPLEMENTATION", INT2NUM(GLUT_XLIB_IMPLEMENTATION));
1466
1466
  rb_define_const(module, "GLUT_RGB", INT2NUM(GLUT_RGB));
@@ -1637,6 +1637,14 @@ DLLEXPORT void Init_glut()
1637
1637
  rb_define_const(module, "GLUT_GAME_MODE_PIXEL_DEPTH", INT2NUM(GLUT_GAME_MODE_PIXEL_DEPTH));
1638
1638
  rb_define_const(module, "GLUT_GAME_MODE_REFRESH_RATE", INT2NUM(GLUT_GAME_MODE_REFRESH_RATE));
1639
1639
  rb_define_const(module, "GLUT_GAME_MODE_DISPLAY_CHANGED", INT2NUM(GLUT_GAME_MODE_DISPLAY_CHANGED));
1640
+
1641
+ // Some OSX specific constants
1642
+ #ifdef GLUT_NO_RECOVERY
1643
+ rb_define_const(mGlut, "GLUT_NO_RECOVERY", INT2NUM(GLUT_NO_RECOVERY));
1644
+ #endif
1645
+ #ifdef GLUT_3_2_CORE_PROFILE
1646
+ rb_define_const(mGlut, "GLUT_3_2_CORE_PROFILE", INT2NUM(GLUT_3_2_CORE_PROFILE));
1647
+ #endif
1640
1648
 
1641
1649
 
1642
1650
  callId = rb_intern("call");
data/lib/opengl.rb CHANGED
@@ -20,9 +20,14 @@
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
+ # Extend the search path for Windows binary gem, depending of the current ruby version
24
+ major_minor = RUBY_VERSION[ /^(\d+\.\d+)/ ] or
25
+ raise "Oops, can't extract the major/minor version from #{RUBY_VERSION.dump}"
26
+ $: << File.join(File.dirname(__FILE__), major_minor)
27
+
23
28
  module OpenGL
24
29
 
25
- VERSION = '0.7.0.pre2'
30
+ VERSION = '0.7.0'
26
31
 
27
32
  end
28
33
 
@@ -77,6 +82,7 @@ module GLUT
77
82
 
78
83
  Glut.constants.each do |cn|
79
84
  n = cn.to_s.sub(/^GLUT_/,'')
85
+ next if n =~ /^[0-9]/
80
86
  const_set( n, Glut.const_get( cn ) )
81
87
  end
82
88
 
Binary file
Binary file
metadata CHANGED
@@ -1,15 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opengl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 933985875
5
- prerelease: 6
4
+ hash: 3
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
9
  - 0
10
- - pre
11
- - 2
12
- version: 0.7.0.pre2
10
+ version: 0.7.0
13
11
  platform: x86-mingw32
14
12
  authors:
15
13
  - Eric Hodel
@@ -21,7 +19,7 @@ autorequire:
21
19
  bindir: bin
22
20
  cert_chain: []
23
21
 
24
- date: 2012-06-14 00:00:00 Z
22
+ date: 2013-02-03 00:00:00 Z
25
23
  dependencies:
26
24
  - !ruby/object:Gem::Dependency
27
25
  name: rdoc
@@ -84,11 +82,11 @@ dependencies:
84
82
  requirements:
85
83
  - - ~>
86
84
  - !ruby/object:Gem::Version
87
- hash: 7
85
+ hash: 13
88
86
  segments:
89
87
  - 3
90
- - 0
91
- version: "3.0"
88
+ - 5
89
+ version: "3.5"
92
90
  type: :development
93
91
  version_requirements: *id004
94
92
  description: |-
@@ -275,7 +273,8 @@ files:
275
273
  - website/images/ogl.jpg
276
274
  - website/images/tab_bottom.gif
277
275
  - website/style.css
278
- - lib/opengl/opengl.so
276
+ - lib/opengl/1.8/opengl.so
277
+ - lib/opengl/1.9/opengl.so
279
278
  homepage: http://ruby-opengl.rubyforge.org
280
279
  licenses: []
281
280
 
@@ -299,33 +298,31 @@ required_ruby_version: !ruby/object:Gem::Requirement
299
298
  required_rubygems_version: !ruby/object:Gem::Requirement
300
299
  none: false
301
300
  requirements:
302
- - - ">"
301
+ - - ">="
303
302
  - !ruby/object:Gem::Version
304
- hash: 25
303
+ hash: 3
305
304
  segments:
306
- - 1
307
- - 3
308
- - 1
309
- version: 1.3.1
305
+ - 0
306
+ version: "0"
310
307
  requirements: []
311
308
 
312
309
  rubyforge_project: opengl
313
- rubygems_version: 1.8.17
310
+ rubygems_version: 1.8.15
314
311
  signing_key:
315
312
  specification_version: 3
316
313
  summary: An OpenGL wrapper for Ruby
317
314
  test_files:
318
- - test/test_gl_13.rb
319
- - test/test_gl_10_11.rb
315
+ - test/test_gl_ext_ext.rb
320
316
  - test/test_gl_12.rb
321
- - test/test_gl_14.rb
322
- - test/test_glu.rb
323
317
  - 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
318
+ - test/test_glu.rb
328
319
  - test/test_gl_20.rb
320
+ - test/test_gl_13.rb
329
321
  - test/test_gl_ext_gremedy.rb
330
322
  - test/test_gl.rb
323
+ - test/test_gl_ext_nv.rb
331
324
  - test/test_gl_ext_arb.rb
325
+ - test/test_gl_10_11.rb
326
+ - test/test_gl_ext_ati.rb
327
+ - test/test_gl_14.rb
328
+ - test/test_gl_21.rb
data/lib/opengl/opengl.so DELETED
Binary file