Contains the description of a display mode
OperationsConstructor
New(format:Int, w:Int, h:Int, refresh_rate:Int)
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 |
Get the format
method : public : GetFormat() ~ Int
Type | Description |
---|---|
Int | format |
Get height
method : public : GetH() ~ Int
Type | Description |
---|---|
Int | height |
Get refresh rate
method : public : GetRefreshRate() ~ Int
Type | Description |
---|---|
Int | refresh rate |
Get width
method : public : GetW() ~ Int
Type | Description |
---|---|
Int | width |
Set the format
method : public : SetFormat(format:Int) ~ Nil
Name | Type | Description |
---|---|---|
format | Int | format |
Set height
method : public : SetH(h:Int) ~ Nil
Name | Type | Description |
---|---|---|
h | Int | height |
Set refresh rate
method : public : SetRefreshRate(refresh_rate:Int) ~ Nil
Name | Type | Description |
---|---|---|
refresh_rate | Int | refresh rate |
Set width
method : public : SetW(w:Int) ~ Nil
Name | Type | Description |
---|---|---|
w | Int | width |