DisplayMode
Contains the description of a display mode
Operations
GetRefreshRate
Get refresh rate
method : public : GetRefreshRate() ~ Int
Return
Type | Description |
---|---|
Int | refresh rate |
New
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) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
format | Int | format |
SetRefreshRate
Set refresh rate
method : public : SetRefreshRate(refresh_rate:Int) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
refresh_rate | Int | refresh rate |