Module: RbSDL2::Version
- Defined in:
- lib/rb_sdl2/version.rb
Class Method Summary collapse
Class Method Details
.revision ⇒ Object
4 |
# File 'lib/rb_sdl2/version.rb', line 4 def revision = ::SDL2.SDL_GetRevision.read_string |
.version ⇒ Object
6 7 8 9 10 |
# File 'lib/rb_sdl2/version.rb', line 6 def version st = ::SDL2::SDL_version.new ::SDL2.SDL_GetVersion(st) "#{st[:major]}.#{st[:minor]}.#{st[:patch]}" end |