video_mode
The current video mode;
determines the resolution of the video device
.
The following resolutions are available:
Range:
| 1 |
320x200 |
| 2 |
320x240 |
| 3 |
320x400 |
| 4 |
400x300 |
| 5 |
512x384 |
| 6 |
640x480 - (default mode) |
| 7 |
800x600 |
| 8 |
1024x768
|
| 9 |
1280x1024 |
| 10 |
1400x1050 |
| 11 |
1600x1200 |
Type:
var
Modified by:
video_switch
Remarks:
- After opening the video device, this variable can only be changed through
the video_switch
instruction.
By default, pressing the [F5] key
toggles the video resolution.
- Depending on the 3D card, some of the resolutions are not available.
- For setting an arbitrary resolution in window mode, use video_set.
-
In C-Script this variable can not be set, but must be redefined. LC In lite-C this variable can be set
in the first frame before any level_load() or
wait() call.
-
In A6 resolutions above 8 are
only supported by the Commercial Edition. This restriction does not apply
to A7 .
Example:
var video_mode = 6; // C-Script: start in 640x480 resolution
var video_screen = 1; // C-Script: start settings for Fullscreen
function main()
{
video_mode = 6; // lite-C: start in 640x480 resolution
video_screen = 1; // lite-C: start settings for Fullscreen
wait(1)
...
}
See also:
video_switch, video_screen,
screen_size
► latest
version online