moonbase.video.displays - Protovision/moonbase GitHub Wiki
moonbase.video.displays is an array that contains entries for each video display. Each video display entry contains the following fields:
- location: An array containing the x and y coordinates of the display's location
- size: An array containing the width and height of the display
- modes: An array containing entries for each video mode that this display supports
Each video mode entry stored in the modes field of a video display entry contains the following fields:
- format: A number representing the pixel format of the video mode. The value is based on the SDL_PIXELFORMAT_* macros defined in SDL_pixels.h
- refreshRate: The refresh rate of the video mode (Hz)
- size: An array containing the width and height of the video display mode
- opaque: An opaque pointer value used internally by SDL