ruby-opengl 0.33.0 → 0.40.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. data/Rakefile +42 -15
  2. data/doc/build_install.txt +70 -25
  3. data/doc/history.txt +4 -0
  4. data/doc/requirements_and_design.txt +2 -3
  5. data/doc/roadmap.txt +15 -2
  6. data/doc/screenshots.txt +23 -0
  7. data/doc/supplies/page_template.html +2 -1
  8. data/doc/thanks.txt +3 -0
  9. data/doc/tutorial.txt +5 -3
  10. data/examples/README +57 -7
  11. data/examples/legacy/COPYRIGHT +8 -0
  12. data/examples/{aaindex.rb → legacy/aaindex.rb} +6 -5
  13. data/examples/legacy/aapoly.rb +153 -0
  14. data/examples/legacy/aargb.rb +139 -0
  15. data/examples/legacy/accanti.rb +159 -0
  16. data/examples/legacy/accpersp.rb +216 -0
  17. data/examples/legacy/alpha.rb +133 -0
  18. data/examples/legacy/alpha3D.rb +165 -0
  19. data/examples/legacy/bezcurve.rb +107 -0
  20. data/examples/legacy/bezmesh.rb +131 -0
  21. data/examples/legacy/checker.rb +121 -0
  22. data/examples/legacy/clip.rb +104 -0
  23. data/examples/legacy/colormat.rb +145 -0
  24. data/examples/legacy/cube.rb +73 -0
  25. data/examples/legacy/depthcue.rb +101 -0
  26. data/examples/legacy/dof.rb +212 -0
  27. data/examples/legacy/double.rb +104 -0
  28. data/examples/legacy/drawf.rb +98 -0
  29. data/examples/legacy/feedback.rb +152 -0
  30. data/examples/legacy/fog.rb +172 -0
  31. data/examples/legacy/font-glut.rb +41 -0
  32. data/examples/legacy/font.rb +158 -0
  33. data/examples/legacy/hello.rb +75 -0
  34. data/examples/legacy/image.rb +145 -0
  35. data/examples/legacy/jitter.rb +209 -0
  36. data/examples/legacy/lines.rb +135 -0
  37. data/examples/legacy/list.rb +120 -0
  38. data/examples/legacy/material.rb +290 -0
  39. data/examples/legacy/mipmap.rb +159 -0
  40. data/examples/legacy/model.rb +119 -0
  41. data/examples/legacy/movelight.rb +140 -0
  42. data/examples/legacy/pickdepth.rb +180 -0
  43. data/examples/legacy/planet.rb +112 -0
  44. data/examples/legacy/quadric.rb +180 -0
  45. data/examples/legacy/readpixel.rb +59 -0
  46. data/examples/legacy/robot.rb +120 -0
  47. data/examples/legacy/select.rb +207 -0
  48. data/examples/{smooth_prev.rb → legacy/smooth.rb} +3 -2
  49. data/examples/legacy/stencil.rb +154 -0
  50. data/examples/legacy/stroke.rb +170 -0
  51. data/examples/legacy/surface.rb +170 -0
  52. data/examples/legacy/teaambient.rb +132 -0
  53. data/examples/legacy/teapots.rb +188 -0
  54. data/examples/legacy/tess.rb +222 -0
  55. data/examples/legacy/texbind.rb +157 -0
  56. data/examples/legacy/texgen.rb +171 -0
  57. data/examples/legacy/texturesurf.rb +128 -0
  58. data/examples/legacy/varray.rb +167 -0
  59. data/examples/legacy/wrap.rb +158 -0
  60. data/examples/nehe_lesson02.rb +117 -0
  61. data/examples/nehe_lesson03.rb +122 -0
  62. data/examples/nehe_lesson04.rb +133 -0
  63. data/examples/nehe_lesson05.rb +186 -0
  64. data/examples/plane.rb +1 -1
  65. data/examples/smooth.rb +4 -2
  66. data/examples/test.rb +3 -2
  67. data/ext/common/{rbogl.c → common.h} +99 -32
  68. data/ext/common/gl-enums.h +39 -1
  69. data/ext/gl/gl-1.0-1.1.c +350 -305
  70. data/ext/gl/gl-1.2.c +933 -38
  71. data/ext/gl/gl-1.3.c +725 -0
  72. data/ext/gl/gl-1.4.c +647 -0
  73. data/ext/gl/gl-1.5.c +362 -0
  74. data/ext/gl/gl-2.0.c +1632 -0
  75. data/ext/gl/gl-2.1.c +154 -0
  76. data/ext/gl/gl-enums.c +1 -2
  77. data/ext/gl/gl.c +58 -2
  78. data/ext/gl/mkrf_conf.rb +4 -1
  79. data/ext/glu/glu.c +5 -4
  80. data/ext/glu/mkrf_conf.rb +4 -1
  81. data/ext/glut/glut.c +7 -1
  82. data/ext/glut/mkrf_conf.rb +5 -0
  83. data/lib/gl_prev.rb +4 -3
  84. data/lib/glu_prev.rb +4 -3
  85. data/lib/glut_prev.rb +3 -3
  86. data/{examples/all_tests.rb → lib/opengl.rb} +9 -12
  87. data/test/README +5 -18
  88. data/test/tc_common.rb +79 -0
  89. data/test/tc_func_10_11.rb +1255 -0
  90. data/test/tc_func_12.rb +186 -0
  91. data/test/tc_func_13.rb +203 -0
  92. data/test/tc_func_14.rb +197 -0
  93. data/test/tc_func_15.rb +82 -0
  94. data/test/tc_func_20.rb +320 -0
  95. data/test/tc_func_21.rb +67 -0
  96. data/test/tc_include_gl.rb +1 -1
  97. data/test/{tc_opengl_namespace.rb → tc_misc.rb} +20 -20
  98. data/test/tc_require_gl.rb +1 -1
  99. metadata +99 -27
  100. data/ext/common/Rakefile +0 -39
  101. data/ext/common/rbogl.h +0 -52
  102. data/test/runtests.sh +0 -7
  103. data/test/tc_gl_vertex.rb +0 -180
data/Rakefile CHANGED
@@ -31,30 +31,46 @@ end
31
31
  require 'rake'
32
32
  require 'rake/clean'
33
33
  require 'rake/gempackagetask'
34
+ require 'rake/testtask'
35
+
34
36
  require 'mkrf/rakehelper'
35
37
 
36
38
  WEBSITE_MKDN = FileList['./doc/*.txt'] << 'README.txt'
37
39
  NICE_HTML_DOCS = WEBSITE_MKDN.ext('html')
38
40
 
39
41
  CLEAN.include("ext/gl*/Rakefile", "ext/*/mkrf.log", "ext/*/*.so",
40
- "lib/*.so", "ext/*/*.o", "pkg")
42
+ "ext/**/*.bundle", "lib/*.so", "lib/*.bundle", "ext/*/*.o{,bj}",
43
+ "ext/*/*.lib", "ext/*/*.exp", "ext/*/*.pdb",
44
+ "pkg")
41
45
  CLOBBER.include("*.plain", "doc/*.plain", "doc/*.snip", "*.html",
42
- "doc/*.html", "website/*.html")
46
+ "doc/*.html", "website/*.html", "website/images/*")
47
+ # Make sure these files aren't deleted in a clobber op
48
+ CLOBBER.exclude("website/images/tab_bottom.gif")
43
49
 
44
50
  setup_extension('gl', 'gl')
45
51
  setup_extension('glu', 'glu')
46
52
  setup_extension('glut', 'glut')
47
53
 
48
- desc 'Does a full compile'
49
- task :default => [:build_rbogl, :gl, :glu, :glut]
54
+ case RUBY_PLATFORM
55
+ when /(:?mswin|mingw)/
56
+ desc 'Does a full win32 compile'
57
+ task :default do
58
+ exts = ["gl","glu","glut"]
59
+ exts.each do |ext|
60
+ Dir.chdir("ext\\#{ext}") do
61
+ sh "ruby mkrf_conf.rb"
62
+ sh "call rake --nosearch"
63
+ sh "copy #{ext}.so ..\\..\\lib"
64
+ end
65
+ end
66
+ end
67
+ else
68
+ desc 'Does a full compile'
69
+ task :default => [:gl, :glu, :glut]
70
+ end
50
71
 
51
- task :extension => :default
52
72
 
53
- desc 'Builds common OpenGL object file. Necessary for building GL bindings'
54
- task :build_rbogl do
55
- puts "Building common rbogl object file"
56
- sh "cd ext/common && rake"
57
- end
73
+ task :extension => :default
58
74
 
59
75
  desc 'Show contents of some variables related to website doc generation.'
60
76
  task :explain_website do
@@ -93,6 +109,7 @@ end
93
109
  desc 'Upload the newly-built site to RubyForge.'
94
110
  task :upload_website => [:gen_website] do
95
111
  sh "scp website/*.html hoanga@rubyforge.org:/var/www/gforge-projects/ruby-opengl"
112
+ sh "scp website/images/* hoanga@rubyforge.org:/var/www/gforge-projects/ruby-opengl/images/"
96
113
  end
97
114
 
98
115
  desc 'Upload entire site, including stylesheet and the images directory.'
@@ -102,28 +119,38 @@ task :upload_entire_website => [:gen_website] do
102
119
  sh "scp -r website/images hoanga@rubyforge.org:/var/www/gforge-projects/ruby-opengl"
103
120
  end
104
121
 
122
+ desc 'Runs unit tests.'
123
+ Rake::TestTask.new do |t|
124
+ t.libs << "test"
125
+ t.test_files = FileList['test/tc_*.rb']
126
+ t.verbose = true
127
+ end
128
+
129
+ desc 'Runs unit tests.'
130
+ task :test_all => [:test]
131
+
105
132
  # Define the files that will go into the gem
106
133
  gem_files = FileList["{lib,ext,doc,examples,test}/**/*"]
107
- gem_files = gem_files.exclude("**/*.so", "**/*.o", "ext/**/*.log", "ext/gl*/Rakefile")
134
+ gem_files = gem_files.exclude("**/*.so", "**/*.o{,bj}", "ext/**/*.log", "ext/gl*/Rakefile")
108
135
 
109
136
  spec = Gem::Specification.new do |s|
110
137
  s.name = "ruby-opengl"
111
- s.version = "0.33.0"
112
- s.authors = [ "John Gabriele", "Minh Thu Vo" ]
138
+ s.version = "0.40.0"
139
+ s.authors = [ "Alain Hoang", "Jan Dvorak", "Minh Thu Vo" ]
113
140
  s.homepage = "http://opengl-ruby.rubyforge.org"
114
141
  s.platform = Gem::Platform::RUBY
115
142
  s.summary = "OpenGL Interface for Ruby"
116
143
  s.files = gem_files
117
144
  s.extensions << 'Rakefile'
118
- # s.extensions << 'ext/common/Rakefile', 'ext/gl/mkrf_conf.rb',
119
- # 'ext/glu/mkrf_conf.rb', 'ext/glut/mkrf_conf.rb']
120
145
  s.require_path = "lib"
121
146
  s.autorequire = "gl"
122
147
  s.has_rdoc = false
123
148
  s.add_dependency("mkrf", ">=0.2.0")
149
+ s.add_dependency("rake")
124
150
  end
125
151
 
126
152
  # Create a task for creating a ruby gem
127
153
  Rake::GemPackageTask.new(spec) do |pkg|
154
+ pkg.gem_spec = spec
128
155
  pkg.need_tar = true
129
156
  end
@@ -5,49 +5,94 @@ Building ruby-opengl
5
5
  Pre-requisites
6
6
  --------------
7
7
 
8
- On Ubuntu, aside from Ruby and the Rake gem, you'll need the following
9
- packages:
8
+ Linux
9
+ --------------
10
+ On Ubuntu or Debian systems, aside from Ruby you'll need ruby and
11
+ some extra ruby related packages:
12
+
13
+ * `ruby rdoc ri ruby1.8-dev`
10
14
 
11
- * `libgl1-mesa libgl1-mesa-dri libglu1-mesa freeglut3`
15
+ For OpenGL related headers you'll need the following packages:
16
+
17
+ * `libgl1-mesa-dri libglu1-mesa freeglut3`
12
18
  * `libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev`
13
19
 
20
+ You MUST have rubygems 0.9.1 or higher installed.
14
21
 
15
- Build instructions
16
- ------------------
22
+ On Gentoo, Debian and ubuntu, rubygems 0.9.0 will be installed by default
23
+ in the packages. This version of rubygems is INCOMPATIBLE with ruby-opengl.
24
+ You'll need to install rubygems from source.
17
25
 
18
- The current build setup is still under construction. When last looked at
19
- (late November 2006), we were waiting for
20
- the next mkrf release (we've patched what they have in svn, so it works,
21
- but their maintainer seems to have moved on and not made a release
22
- containing our fix). Building our ruby-opengl works, but you'll need
23
- the version of mkrf still in svn.
26
+ On some distributions you may need 'xorg-dev' developer package.
24
27
 
25
- Once you have a mkrf in place, on unixy platforms, just run
28
+ Mac OS X
29
+ --------------
30
+ On OS X, you will need to install your own version of Ruby as the
31
+ version that ships with OS X has known problems with properly building
32
+ ruby-opengl bindings. You'll also need XCode for gcc and tools. Macports
33
+ or fink should handle this cleanly.
26
34
 
27
- ./build.sh
35
+ Windows
36
+ --------------
37
+ On Windows you need to have platform SDK and compiler that *must* match the one which
38
+ was used for compiling ruby binary (for One-click ruby installer it is MSVC 6.0).
39
+ You may also need 'glut.h' in SDK include directory, as the One-click ruby
40
+ installer is missing it. You can copy the file from glut package at
41
+ http://www.xmission.com/~nate/glut.html .
42
+
43
+ Manual Build instructions for all platforms
44
+ (see above for platform-specific notes)
45
+ ------------------
46
+ 1. Make sure you have working ruby with rubygems installed
47
+ and (if needed) appropriate developer packages (ruby-dev,ruby1.8-dev,...).
48
+ 2. Make sure you have working C compiler
49
+ 3. Install rake either from package or by running 'gem install rake'
50
+ 4. Install mkrf (0.2.0+) either from package or by running 'gem install mkrf'
51
+ 5. Make sure you have working OpenGL installation, this includes libGL,libGLU,
52
+ glut and (if needed) appropriate -dev or -devel packages.
53
+ 6. Run 'rake' at the top level of the project
54
+ 7. (OPTIONAL) Run 'rake test' to run unit tests to verify it works properly
28
55
 
29
- to build.
56
+ Installing
57
+ ------------------
58
+ 1. Run 'rake clean' to clean out the project
59
+ 2. Run 'rake gem' to build source gem
60
+ 3. Run 'gem install pkg/ruby-opengl-<version>.gem' to compile and install the gem
30
61
 
31
- After building, the extension modules are automatically copied to the
32
- project's `./lib` directory.
62
+ Building binary gem
63
+ ------------------
64
+ 1. Run 'gem install gembuilder' to install the gembuilder package
65
+ 2. Run 'rake clean' to clean out the project
66
+ 3. Run 'rake gem' to build source gem
67
+ 4. Run 'gembuilder pkg/ruby-opengl-<version>.gem' to compile the binary gem
33
68
 
69
+ Installing from rubygems
70
+ -------------------
34
71
 
35
- Installing
36
- ----------
72
+ ruby-opengl should also support being installed via gems now. Just
73
+ try 'gem install -y ruby-opengl' and it should pull down the gem
74
+ and try to build the bindings for you automatically.
37
75
 
38
- For now, if you want to install ruby-opengl on your system, you can
39
- do so manually (there is no gem, nor even a release, for it yet).
40
- Just copy the contents of `./lib` into your
41
- `.../lib/ruby/site_ruby/1.8` directory (or anywhere else `ruby`
42
- searches for modules).
76
+ You MUST have rubygems 0.9.1 or higher installed for ruby-opengl
77
+ to work properly. 0.8.x and 0.9.0 will not build ruby-opengl
78
+ properly.
43
79
 
44
80
 
45
81
  Testing / Running
46
82
  -----------------
47
83
 
48
- To run a sample file:
84
+ To run unit tests:
85
+
86
+ $ rake test
87
+
88
+ Note that the tests have the adverse effect of testing the underlying OpenGL
89
+ implementation, so depending on your GL provider,drivers or OS, the tests may
90
+ fail, crash, or not run at all, without affecting your ability to use the
91
+ bindings.
92
+
93
+ To run a sample file, make sure the ruby-opengl gem is installed then:
49
94
 
50
95
  $ cd examples
51
- $ ruby plane.rb
96
+ $ ruby -rubygems plane.rb
52
97
 
53
98
  Hit ESC to exit.
data/doc/history.txt CHANGED
@@ -46,3 +46,7 @@ In September 2006, we stopped using SWIG. Thu and Peter began fine tuning
46
46
  Thu's original `utils/mkwrap.rb` script.
47
47
 
48
48
  Development stalled in October 2006.
49
+
50
+ Development picked up again towards the end of 2006. After a long hiatus
51
+ and getting a new release of mkrf out the door. ruby-opengl is proud
52
+ to put out version 0.33.0 as a gem for everyone to try out.
@@ -124,8 +124,7 @@ to use standard OpenGL-style constant and function names.
124
124
 
125
125
  ### Build environment ###
126
126
 
127
- The build environment will:
127
+ The build environment will use:
128
128
 
129
- * use rake and mkrf. (note -- development of mkrf seems to have
130
- stalled)
129
+ * use rake and mkrf.
131
130
  * minimize the number of additional tools required
data/doc/roadmap.txt CHANGED
@@ -1,10 +1,23 @@
1
1
  Roadmap
2
2
  =======
3
3
 
4
- * Get BaseGL updated.
5
- * Get BaseGLU updated.
4
+ * Ensure support for 2.0 and 2.1 is solid
5
+ * Make sure OpenGL 1.0 and 1.1 are solidly supported
6
+ * Continue testing 1.2+ support
7
+ * Create a set of test images for functional test comparison
6
8
  * Get BaseGLUT updated.
9
+ * Add RDoc documentation comments to C API
10
+ * Make sure this can build cleanly under Windows under the current
11
+ build system.
7
12
  * Add the ESC keyboard handler to smooth.rb
13
+ * Add all of Yoshi's examples into examples
14
+ * Create more example code
15
+ * Write a getting started tutorial
16
+
17
+
18
+ Possible Features
19
+ ========
20
+ * Possibly port GLU to use Ruby/DL
8
21
 
9
22
  <br/>
10
23
  <br/>
@@ -0,0 +1,23 @@
1
+ ruby-opengl screenshots
2
+ =======================
3
+
4
+ Currently the screenshots are a little barren but here are some
5
+ renders from the interactive test suite in ruby-opengl
6
+
7
+ interactive test screenshots
8
+ ============================
9
+
10
+ <img src="images/GLtest_1_vertex_color.png" />
11
+ <br />
12
+ <img src="images/GLtest_2_rasterpos_bitmap.png" />
13
+ <br />
14
+ <img src="images/GLtest_3_displaylists_matrixops.png" />
15
+ <br />
16
+ <img src="images/GLtest_4_textureops.png" />
17
+ <br />
18
+ <img src="images/GLtest_5_polygonops.png" />
19
+ <br />
20
+ <img src="images/GLtest_6_textureops_2.png" />
21
+ <br />
22
+ <img src="images/GLtest_7_light_material.png" />
23
+ <br />
@@ -17,6 +17,7 @@
17
17
  <ul id="tabnav">
18
18
  <li><a href="./index.html">Home</a></li>
19
19
  <li><a href="./tutorial.html">Tutorial</a></li>
20
+ <li><a href="./screenshots.html">Screenshots</a></li>
20
21
  <li><a href="./requirements_and_design.html">Req's doc</a></li>
21
22
  <li><a href="./build_install.html">Build/Install</a></li>
22
23
  <li><a href="./history.html">History</a></li>
@@ -53,7 +54,7 @@
53
54
  </div>
54
55
  <div id="footer">
55
56
  <p><a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0</a> |
56
- Copyright &copy; <a href="#">John M. Gabriele</a> |
57
+ Copyright &copy; <a href="#">Alain Hoang</a> |
57
58
  Design by <a href="http://www.jdavidmacor.com">super j man</a></p>
58
59
  </div>
59
60
 
data/doc/thanks.txt CHANGED
@@ -8,6 +8,9 @@ by first name) also goes to:
8
8
  * Ilmari Heikkinen -- provided code for changing how users can call method and constant names.
9
9
  * James Adam -- Mac OS X fixes
10
10
  * Tony Hursh -- Mac OS X glut build tweak
11
+ * Sean Long -- More Mac OS X fixes
12
+ * John Gabriele -- Numerous fixes, documentation, and project support
13
+ * Jan Dvorak -- Patches to start OpenGL 2.1 support
11
14
  * **Yoshi** -- providing ruby-opengl-0.32g from which to work off of.
12
15
 
13
16
 
data/doc/tutorial.txt CHANGED
@@ -24,6 +24,10 @@ You don't have to `include` Gl, Glu, and Glut, but if you don't, then
24
24
  you'll have to prefix each of those method and constant names like so:
25
25
 
26
26
  {{ruby}}
27
+ require 'gl'
28
+ require 'glu'
29
+ require 'glut'
30
+
27
31
  Gl.glFooBar( Gl::GL_FOO_BAR )
28
32
  Glu.gluFooBar( Glu::GLU_FOO_BAR )
29
33
  Glut.glutFooBar( Glut::GLUT_FOO_BAR )
@@ -32,9 +36,7 @@ The other way you might use ruby-opengl is to employ the notation that
32
36
  users of previous versions of ruby-opengl have used:
33
37
 
34
38
  {{ruby}}
35
- require 'gl_prev'
36
- require 'glu_prev'
37
- require 'glut_prev'
39
+ require 'opengl'
38
40
 
39
41
  GL.FooBar( GL::FOO_BAR )
40
42
  GLU.FooBar( GLU::FOO_BAR )
data/examples/README CHANGED
@@ -22,15 +22,65 @@ at the top of your files instead of
22
22
  require 'opengl'
23
23
  require 'glut'
24
24
 
25
- (Of course, if you haven't yet installed ruby-opengl on your system, you'll
26
- need to include paths in those require statments above: as in,
27
- `require "../lib/gl_prev"`.)
25
+ For examples of using the legacy code look at the directory legacy/ for
26
+ lots of example code that was borrowed from Yoshi's examples
28
27
 
29
28
 
30
29
  Status of examples
31
30
  ------------------
32
31
 
33
- * plane.rb -- works
34
- * smooth.rb, smooth_prev.rb -- works
35
- * aaindex.rb -- does not seem to work
36
- * test.rb -- does not seem to work
32
+ * plane.rb -- works (Should show a picture of a planar surface)
33
+ * smooth.rb -- works
34
+ * test.rb -- works
35
+
36
+ Status of legacy examples
37
+ -------------------------
38
+
39
+ * aaindex.rb -- does not seem to work
40
+ * aapoly.rb -- works
41
+ * aargb.rb -- works
42
+ * accanti.rb -- does not seem to work
43
+ * accpersp.rb -- does not seem to work
44
+ * alpha3D.rb -- works
45
+ * alpha.rb -- works
46
+ * bezcurve.rb -- works
47
+ * bezmesh.rb -- works
48
+ * checker.rb -- works
49
+ * clip.rb -- works
50
+ * colormat.rb -- works
51
+ * cube.rb -- works
52
+ * depthcue.rb -- works
53
+ * smooth.rb -- works
54
+ * dof.rb -- works
55
+ * double.rb -- works
56
+ * drawf.rb -- works
57
+ * feedback.rb -- seems to work
58
+ * fog.rb -- works
59
+ * font-glut.rb -- works
60
+ * font.rb -- works
61
+ * hello.rb -- works
62
+ * image.rb -- works
63
+ * lines.rb -- works
64
+ * list.rb -- works
65
+ * material.rb -- works
66
+ * mipmap.rb -- works
67
+ * model.rb -- works
68
+ * movelight.rb -- works
69
+ * pickdepth.rb -- works
70
+ * planet.rb -- works
71
+ * quadric.rb -- works
72
+ * readpixel.rb -- does not seem to work
73
+ * robot.rb -- seems to work
74
+ * select.rb -- works
75
+ * smooth.rb -- works
76
+ * stencil.rb -- works
77
+ * stroke.rb -- works
78
+ * surface.rb -- works
79
+ * teaambient.rb -- works
80
+ * teapots.rb -- works
81
+ * tess.rb -- does not seem to work
82
+ * texbind.rb -- works
83
+ * texgen.rb -- works
84
+ * texturesurf.rb -- works
85
+ * varray.rb -- works
86
+ * wrap.rb -- works
@@ -0,0 +1,8 @@
1
+ Copyright (c) 2004 yoshi@giganet.net
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8
+
@@ -1,9 +1,10 @@
1
- require "../ext/gl/GL"
2
- require "../ext/glut/GLUT"
1
+ #!/usr/bin/env ruby -rubygems
2
+ #require "gl"
3
+ #require "glut"
3
4
  require "rational"
4
5
 
5
- require "../lib/gl_prev"
6
- require "../lib/glut_prev"
6
+ require "gl_prev"
7
+ require "glut_prev"
7
8
 
8
9
  RAMPSIZE=16
9
10
  RAMP1START=32
@@ -42,7 +43,7 @@ display = Proc.new {
42
43
  GL.End
43
44
  GL.PopMatrix();
44
45
 
45
- GL.Indexi(RAMP2START);
46
+ # GL.Indexi(RAMP2START);
46
47
  GL.PushMatrix();
47
48
  GL.Rotate($rotAngle, 0.0, 0.0, 0.1);
48
49
  GL.Begin(GL::LINES);