Registry / other / rubysdl

rubysdl

JSON →
library2.2.0rbrubygemsunverified

Ruby extension library to use SDL for audio, keyboard, mouse, joystick, OpenGL, and 2D video framebuffer.

gem install rubysdl
INSTALL
IMPORT
SIG · RUBYSDL
R
rubysdl
otherrubyv2.2.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.

SDL
require 'sdl'

Initialize SDL video mode and hide mouse cursor

require 'sdl' SDL.init(SDL::INIT_VIDEO) screen = SDL.set_video_mode(640, 480, 16, SDL::SWSURFACE) SDL::Mouse.hide
Debug
Known issues
gotchaRequires SDL library installed on system
fix
Install libsdl1.2-dev (Linux) or SDL.framework (macOS)
affects: >= 2.0.0
Upgrade
Version history
2.2.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
rubysdl — gem install rubysdl · libregistry