video_depth
The current video color depth (16 or 32 bits). This variable can't be set directly
by a function, but can be redefined with a starting value to select the color
depth and mode
in which the engine should start.
Range:
16 - 16 Bit color depth (65536 colors)
32 - 32 Bit color depth (16,7 million colors + 8 Bit alpha channel)
(default)
Type:
var,
read only, redefinable
Modified by:
video_switchRemarks:
During gameplay this variable can only be set through the video_switch or
video_set instruction.
Example:
var video_mode = 6; // start resolution 640x480
var video_screen = 1; // start in fullscreen mode
IFDEF lowcolor;
var video_depth = 16; // 16-bit mode, if started with -d lowcolor
IFELSE;
var video_depth = 32; // otherwise 32 bit mode
ENDIF;
See also:
video_switch, video_mode, video_screen, screen_size