vaiorabbit / ruby-opengl

Yet another OpenGL wrapper for Ruby (and wrapper code generator).
Other
86 stars 11 forks source link

GL.Enable NoMethodError #35

Closed ghost closed 1 year ago

ghost commented 1 year ago

The example in the readme fails to work. When trying out:

require 'opengl'
GL.Enable(GL::DEPTH_TEST)

it just results in a NoMethodError

`Enable': undefined method `call' for nil:NilClass (NoMethodError)
GL_FUNCTIONS_MAP[:glEnable].call(_cap_)
vaiorabbit commented 1 year ago

Make sure your environment supports OpenGL. Have you tried running sample.rb?

ghost commented 1 year ago

OpenGL works fine in C and in Ruby using the old opengl gem. It just doesn't work with this gem!

vaiorabbit commented 1 year ago