Sha256: f0ed19bb7b0d4aac194807f1c6b047c7dfe8cddd185bd2110ca488544a50fed9

Contents?: true

Size: 1.76 KB

Versions: 1

Compression:

Stored size: 1.76 KB

Contents

h1. sgl → simple generic library

h2. What is sgl?

'sgl' is a simgple generic library to create a program with graphics and sound.

h2. Requirement

h3. Windows

* Ruby 1.8.5 or later
* Ruby/OpenGL
* Ruby/Math3D
* Ruby/SDL

You can see "Ruby/SDL on Windows":http://eto.com/d/RubySDLonWindows.html
install documnet.

h3. Mac OS X

* Mac OS X 10.3 or later
* Ruby 1.8.5 or later
* X Window system

h2. Installing

<pre syntax="ruby">sudo gem install sgl</pre>

h2. The basics

<pre syntax="ruby">
# test1.rb
require "sgl"
window 100, 100
line 0, 0, 100, 100
wait
</pre>

<pre syntax="ruby">
# test2.rb
require "sgl"
window 100, 100
background 0
color 100
line 0, 0, 100, 100
wait
</pre>

<pre syntax="ruby">
# test3.rb
require "sgl"

def setup
  window 100, 100
end

def display
  line 0, 0, 100, 100
end

mainloop
</pre>

h2. Documents

* "API Reference":rdoc/
* "Description of sgl-cocoa":cocoa.html

* Pages below are in Japanese
** "Description":description.html
** "How to for Beginner":howto.html
** "How to use Sound function":sound.html

h2. Classes

We did some classes using sgl in some art schools.
You can see some materials for the classes.

* Pages below are in Japanese
** "Exercise 1":exercise1.html
** "Exercise 2":exercise2.html
** "Exercise 3":exercise3.html
** "Exercise 4":exercise4.html
** "Exercise 5":exercise5.html
** "Special Exercise 1":challenge1.html
** "Special Exercise 2":challenge2.html
** "Final Exercise":challenge3.html

h2. Repositry

The trunk repository is <code>svn://rubyforge.org/var/svn/sgl/trunk</code> for anonymous access.

h2. License

Ruby License.

h2. Contact

Comments are welcome. Send an email to Kouichirou Eto "eto at rubyforge dot org".

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sgl-1.0.0 website/index.txt