OpenGL interface for Ruby
Ruby
Switch branches/tags
Nothing to show
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
opengl3.gemspec

README.md

OpenGL (opengl3)

Code Climate

Build Status

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request