Registry / other / ruby-opengl

ruby-opengl

JSON →
library0.61.0rbrubygemsunverified

OpenGL Interface for Ruby, providing bindings to the OpenGL graphics library.

gem install ruby-opengl
INSTALL
IMPORT
SIG · RUBY-OPENGL
R
ruby-opengl
otherrubyv0.61.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OpenGL
require 'opengl'

Render a simple triangle using OpenGL.

require 'opengl' include Gl Gl.glClear(GL_COLOR_BUFFER_BIT) Gl.glBegin(GL_TRIANGLES) Gl.glVertex3f(0.0, 1.0, 0.0) Gl.glVertex3f(-1.0, -1.0, 0.0) Gl.glVertex3f(1.0, -1.0, 0.0) Gl.glEnd()
Debug
Known issues
gotchaRequires OpenGL drivers and may not work in headless environments.
fix
Install OpenGL libraries (e.g., libgl1-mesa-dev on Linux) or use a virtual framebuffer like Xvfb.
affects: >= 0.61.0
Upgrade
Version history
0.61.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Amazon
1
Resources
ruby-opengl — gem install ruby-opengl · libregistry