sgl
Get Version
0.3.1→ simple generic library
What is sgl?
‘sgl’ is a simgple generic library to create a program with graphics and sound.
Requirement
Windows
- Ruby 1.8.5 or later
- Ruby/OpenGL
- Ruby/Math3D
- Ruby/SDL
You can see Ruby/SDL on Windows to install these libraries.
Mac OS X
- Mac OS X 10.3 or later
- Ruby 1.8.5 or later
- X Window system
Installing
sudo gem install sgl
The basics
Save this progarm astest1.rb
.
require "sgl" window 100, 100 line 0, 0, 100, 100 wait
Run the program with ruby test1.rb
.
require "sgl" def setup window 100, 100 end def display line 0, 0, 100, 100 end mainloop
Pages
- Pages below are in Japanese
Classes
We did some classes using sgl in art schools. You’ll see the materials for the classes.
- Pages below are in Japanese
Repositry
The trunk repository is svn://rubyforge.org/var/svn/sgl/trunk
for anonymous access.
License
Ruby License.
Contact
Comments are welcome. Send an email to “Kouichirou Eto”
19th June 2007