class virtual display_singleton_type : object .. end
Provides a unified interface to the single-instance aspects of SDL, such as
setting the video mode and waiting for events. Access this class using
Application.display_singleton
method virtual set_video_mode : width:int -> height:int -> unit
Sets the video mode.
method virtual set_renderer : renderer -> unit
Sets the renderer for the whole screen.
The most simple renderer is
Application.camera_perspective_renderer, which
fills the entire screen with a single OpenGL rendering. A
more complex renderer might support panels with a different scene
rendered in each.
method virtual render : unit
Renders to the screen.
method virtual set_antialiasing : int -> unit
Sets the number of antialiasing passes.
Must be greater than zero. If one, no
antialiasing is done.
method virtual event_dispatcher : Event.event_dispatcher
Returns the application's event dispatcher.
method virtual render_synchronously : unit
Call once (and only once) before event_loop
and prior to any calls to
event_dispatcher#ticker#affect to cause the display to
be updated on every clock tick.
method virtual event_loop : unit
Enters the event loop. Event listeners may raise
Application.Done
to end the loop.