Bundle SDL2 multimedia library for 2D graphics, input handling, audio playback, and window management. Core types: Window, Renderer, Texture, Surface, Event, and Mixer. Compile with -lib sdl2.
DisplayMode
Contains the description of a display mode
Operations
GetRefreshRate #
Get refresh rate
method : public : GetRefreshRate() ~ IntReturn
| Type | Description |
|---|---|
| Int | refresh rate |
New # constructor
Constructor
New(format:Int, w:Int, h:Int, refresh_rate:Int)Parameters
| Name | Type | Description |
|---|---|---|
| format | Int | one of the SDL_PixelFormatEnum values; see Remarks for details |
| w | Int | width, in screen coordinates |
| h | Int | height, in screen coordinates |
| refresh_rate | Int | refresh rate (in Hz), or 0 for unspecified |
SetFormat #
Set the format
method : public : SetFormat(format:Int) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| format | Int | format |