alltom / glapp
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (6)
- Wiki (1)
- Graphs
-
Tag:
v0.0.5
Tom Lieber (author)
Mon May 18 18:31:23 -0700 2009
glapp /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
README.textile | ||
| |
Rakefile | ||
| |
VERSION | ||
| |
examples/ | ||
| |
glapp.gemspec | ||
| |
lib/ |
README.textile
GLApp – A tiny wrapper for ruby-opengl
It’s simple:
- require “glapp”
- Include GLApp
- Override as many of the callbacks as you need:
- setup
- update(seconds)
- draw
- keyboard_down(key, modifiers)
- keyboard_up(key, modifiers)
- special_keyboard_down(key, modifiers)
- special_keyboard_up(key, modifiers)
- mouse_click(button, state, x, y)
- mouse_dragging_motion(x, y)
- mouse_passive_motion(x, y)
- If you need more control, override the default behavior of these:
- setup_context
- pre_draw
- post_draw
- resize
- Call show with width, height, title, and whether to be full-screen
Look at the scripts in the examples/ directory.
In fact, here’s one:

