Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nixpulvis/gel
Simple OpenGL Graphics Library.
https://github.com/nixpulvis/gel
library
Last synced: 9 days ago
JSON representation
Simple OpenGL Graphics Library.
- Host: GitHub
- URL: https://github.com/nixpulvis/gel
- Owner: nixpulvis
- License: mit
- Created: 2013-07-12T19:20:15.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-24T06:32:03.000Z (almost 9 years ago)
- Last Synced: 2024-10-18T23:38:41.983Z (18 days ago)
- Topics: library
- Language: Ruby
- Homepage:
- Size: 170 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Gel
This is an extremely simple interface to the OpenGL engine. It relies on little knowledge of OpenGL to use, and makes getting started faster by doing the proper setup and providing the proper hooks. This library is inspired by Racket's big bang family of functions from `htdp/universe`.
## The `Gel` Class
The main class `Gel` should be inherited in the class containing the top level logic for the program. This should be thought of as your main class, kind of like a main function.
```rb
class Example < Gel
def setup
enddef draw
enddef loop
enddef keyboard
enddef special_keyboard
end
end
```## Objects
In addition to making setup of the basic OpenGL environment easier, Gel also provides a few objects that can be drawn. These make creating very simple animations easy.