Skip to content

artyomb/ruby_gl

Repository files navigation

Hello

OpenGL Ruby

Install

To start working with OpenGL in Ruby you have to install some system packages first

sudo apt-get install mesa-utils mesa-common-dev freeglut3-dev

And install the following gems glu/glut/opengl

bundle install

Bezier

Simple Bezier curve example

Usage example

renderer = Render.new
renderer.scene = { objects: objects,
                   types: { TailedObject => { point: ->(o) { o.position }, path: ->(o) { o.path } } } }

physics = Physics.new
renderer.run do
  physics.step renderer.scene[:objects], Time.now.to_f
end

Glyphs

Glyphs

Releases

No releases published

Packages

No packages published

Languages