class SDL2::Display::Mode
Converted from ‘SDL_video.h’:53
Public Class Methods
current(display_index)
click to toggle source
# File lib/sdl2/display/mode.rb, line 18 def self.current(display_index) dm = DisplayMode.new get_current_display_mode(display_index, dm) return dm end
current!(display_index)
click to toggle source
# File lib/sdl2/display/mode.rb, line 24 def self.current!(display_index) get_current_display_mode!(display_index) end
release(pointer)
click to toggle source
# File lib/sdl2/display/mode.rb, line 14 def self.release(pointer) pointer.free # TODO: Is there a better way of doing this? end
Public Instance Methods
driverdata=(value)
click to toggle source
# File lib/sdl2/display/mode.rb, line 45 def driverdata=(value) self[:driverdata] = value end
format=(value)
click to toggle source
# File lib/sdl2/display/mode.rb, line 29 def format=(value) self[:format] = value end
h=(value)
click to toggle source
# File lib/sdl2/display/mode.rb, line 37 def h=(value) self[:h] = value end
refresh_rate=(value)
click to toggle source
# File lib/sdl2/display/mode.rb, line 41 def refresh_rate=(value) self[:refresh_rate] = value end
w=(value)
click to toggle source
# File lib/sdl2/display/mode.rb, line 33 def w=(value) self[:w] = value end