Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 632 Bytes

readme.md

File metadata and controls

29 lines (21 loc) · 632 Bytes

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