Path: | gtkglext/sample/gtkglut.rb |
Last Update: | Mon Mar 12 13:42:34 +0000 2007 |
gtkglut.rb: Sort of GLUT-compatible library on top of Ruby/GtkGKExt. It does only work for simple cases, you should really use Ruby/GtkGKExt instead. If you really want to use GLUT, use yoshi‘s Ruby/GLUT.
But it can be an interesting introduction for those who only know GLUT. It can show them that using GLUT is quite a bad idea ;o), that it must be using lots of global variables…
I am sure there is a better way to do most things, but I do not know Gtk+ and Ruby well enough. You are free to improve it :o)
If you really want to use it, put "require ‘gtkglut’" instead of "require ‘glut’" at the beginning of your file. You can then (try to) use it as yoshi‘s Ruby/GLUT binding.
written by Vincent Isambart <isambart@netcourrier.com>