KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
Display

Display and framebuffer configuration More...

Topics

 Framebuffer
 API for framebuffer management
 
 Modes
 Video display modes and management
 

Files

file  video.h
 Functions related to video output.
 

Functions

uint32_t vid_border_color (uint8_t r, uint8_t g, uint8_t b)
 Set the border color of the display.
 
bool vid_get_enabled (void)
 Get the state of video output.
 
void vid_set_enabled (bool val)
 Enable/disable the display.
 

Detailed Description

Display and framebuffer configuration

Function Documentation

◆ vid_border_color()

uint32_t vid_border_color ( uint8_t r,
uint8_t g,
uint8_t b )

Set the border color of the display.

This sets the color of the border area of the display.

Note
On some screens, the border area may not be shown at all, whereas on some displays you may see the whole thing.
Parameters
rThe red value of the color (0-255).
gThe green value of the color (0-255).
bThe blue value of the color (0-255).
Returns
Old border color value (RGB888)

◆ vid_get_enabled()

bool vid_get_enabled ( void )

Get the state of video output.

This function gets the state of video output as set via vid_set_enabled.

Returns
true if enabled, false if not.

◆ vid_set_enabled()

void vid_set_enabled ( bool val)

Enable/disable the display.

This function enables or disables video output

Parameters
valtrue to enable video output, false to disable.
Note
Unlike vid_clear/vid_empty this does not modify any framebuffer. Instead it merely sets registers that immediately disable output.