OpenGL (opengl3)
OpenGL wrapper library for Ruby
- Pure Ruby, no C/C++/Java extension included (thanks to ffi gem)
- Modern OpenGL
- Ruby-style wrapper
Tested on
- OS X Mountain Lion (MRI 2.0.0, JRuby 1.7.4)
Installation
Add this line to your application's Gemfile:
gem 'opengl3', :require => 'opengl'
And then execute:
$ bundle
Or install it yourself as:
$ gem install opengl3
Examples
Sample codes are in samples/ruby
and samples/jruby
require 'opengl'
# ...
m = OpenGL::FFI::GL.create
# => m is a module containing constants and functions
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request