Method: RbSDL2::Video.current

Defined in:
lib/rb_sdl2/video.rb

.currentObject

Raises:



8
9
10
11
12
# File 'lib/rb_sdl2/video.rb', line 8

def current
  ptr = ::SDL.GetCurrentVideoDriver
  raise RbSDL2Error if ptr.null?
  ptr.read_string
end