ruby-opengl 0.40.0 → 0.40.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -135,8 +135,8 @@ gem_files = gem_files.exclude("**/*.so", "**/*.o{,bj}", "ext/**/*.log", "ext/gl*
135
135
 
136
136
  spec = Gem::Specification.new do |s|
137
137
  s.name = "ruby-opengl"
138
- s.version = "0.40.0"
139
- s.authors = [ "Alain Hoang", "Jan Dvorak", "Minh Thu Vo" ]
138
+ s.version = "0.40.1"
139
+ s.authors = [ "Alain Hoang", "Jan Dvorak", "Minh Thu Vo", "James Adam" ]
140
140
  s.homepage = "http://opengl-ruby.rubyforge.org"
141
141
  s.platform = Gem::Platform::RUBY
142
142
  s.summary = "OpenGL Interface for Ruby"
data/doc/history.txt CHANGED
@@ -4,6 +4,10 @@ Project history
4
4
  The [original ruby-opengl](http://www2.giganet.net/~yoshi/) was written
5
5
  by Yoshi.
6
6
 
7
+ James A. desperately wanted to get the OpenGL Ruby bindings working on his Mac,
8
+ but they wouldn't even compile on OSX. After a little bit of tweaking, he made
9
+ his patched bindings available to the ruby community in a very informal manner.
10
+
7
11
  John G. then wanted to clean it up and add some docs to it, and so started
8
12
  tweaking and put up a new site and made his changes available.
9
13
 
data/ext/common/common.h CHANGED
@@ -4,6 +4,7 @@
4
4
  *
5
5
  * Copyright (C) 1999 - 2005 Yoshi <yoshi@giganet.net>
6
6
  * Copyright (C) 2006 John M. Gabriele <jmg3000@gmail.com>
7
+ * Copyright (C) 2007 James Adam <james@lazyatom.com>
7
8
  *
8
9
  * This program is distributed under the terms of the MIT license.
9
10
  * See the included MIT-LICENSE file for the terms of this license.
@@ -37,6 +38,11 @@
37
38
 
38
39
  #include "gl-enums.h"
39
40
 
41
+ #ifdef __APPLE__
42
+ #ifndef APIENTRY
43
+ #define APIENTRY /* to nothing */
44
+ #endif
45
+ #endif
40
46
 
41
47
  typedef struct RArray RArray;
42
48
 
data/ext/glut/glut.c CHANGED
@@ -3,6 +3,7 @@
3
3
  * 2004/03/02 01:13:06, yoshi
4
4
  *
5
5
  * Copyright (C) 1999 - 2005 Yoshi <yoshi@giganet.net>
6
+ * Copyright (C) 2005 James Adam <james@lazyatom.com>
6
7
  * Copyright (C) 2006 John M. Gabriele <jmg3000@gmail.com>
7
8
  *
8
9
  * This program is distributed under the terms of the MIT license.
@@ -1082,12 +1083,14 @@ VALUE obj,arg1,arg2;
1082
1083
  return Qnil;
1083
1084
  }
1084
1085
 
1085
- /* Added by James since the normal function is messed up. His comment:
1086
- * > BitmapCharacterX is my own ugly, lazy hack to avoid bus errors when
1087
- * > trying to display text via GLUT. What really needs to happen is for
1088
- * > someone more experienced with Ruby extensions to figure out why we
1089
- * > can't pass the font values as arguments to this function without it
1090
- * > falling over!
1086
+ /* Added by James Adam since the normal function is messed up:
1087
+ * BitmapCharacterX is my own ugly, lazy hack to avoid bus errors when
1088
+ * trying to display text via GLUT. What really needs to happen is for
1089
+ * someone more experienced with Ruby extensions to figure out why we
1090
+ * can't pass the font values as arguments to this function without it
1091
+ * falling over!
1092
+ *
1093
+ * TODO: Properly fix glut_BitmapCharacter(obj,arg1,arg2)
1091
1094
  */
1092
1095
  static VALUE
1093
1096
  glut_BitmapCharacterX(obj,arg2)
@@ -1465,7 +1468,7 @@ VALUE obj;
1465
1468
  #endif
1466
1469
 
1467
1470
 
1468
- /* Added by James. */
1471
+ /* GameMode support added by James Adam. */
1469
1472
  static VALUE
1470
1473
  glut_GameModeString(obj,arg1)
1471
1474
  VALUE obj,arg1;
@@ -1485,8 +1488,6 @@ VALUE obj;
1485
1488
  glutEnterGameMode();
1486
1489
  return Qnil;
1487
1490
  }
1488
- /* end "Added by James." */
1489
-
1490
1491
 
1491
1492
  static VALUE module;
1492
1493
 
@@ -1559,7 +1560,7 @@ DLLEXPORT void Init_glut()
1559
1560
  rb_define_module_function(module, "glutLayerGet", glut_LayerGet, 1);
1560
1561
  rb_define_module_function(module, "glutBitmapCharacter", glut_BitmapCharacter, 2);
1561
1562
 
1562
- /* Added by James. */
1563
+ /* Added by James - see comment on actual function */
1563
1564
  rb_define_module_function(module, "glutBitmapCharacterX", glut_BitmapCharacterX, 1);
1564
1565
 
1565
1566
  rb_define_module_function(module, "glutBitmapWidth", glut_BitmapWidth, 2);
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: ruby-opengl
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.40.0
7
- date: 2007-07-18 00:00:00 +09:00
6
+ version: 0.40.1
7
+ date: 2007-07-19 00:00:00 +09:00
8
8
  summary: OpenGL Interface for Ruby
9
9
  require_paths:
10
10
  - lib
@@ -30,6 +30,7 @@ authors:
30
30
  - Alain Hoang
31
31
  - Jan Dvorak
32
32
  - Minh Thu Vo
33
+ - James Adam
33
34
  files:
34
35
  - lib/glut_prev.rb
35
36
  - lib/gl_prev.rb