This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Tom Lieber (author)
Mon May 18 18:31:21 -0700 2009
commit 0d2621ff40644af512ce173989e03b2d6ea80852
tree 95fce57e0b700914d3b29d427fc1138bcbf9c7e2
parent 1533420590e140d696f9e6defb34cfb5efd6b782
tree 95fce57e0b700914d3b29d427fc1138bcbf9c7e2
parent 1533420590e140d696f9e6defb34cfb5efd6b782
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:








