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

Video display modes and management More...

Topics

 Cables
 Cable/connector types and management for display
 
 Flags
 vid_mode_t Field Flags
 
 Pixel Modes
 Pixel mode settings for the framebuffer
 
 Types
 Display mode type values
 

Data Structures

struct  vid_mode_t
 Video mode structure. More...
 

Functions

void vid_set_mode (int dm, vid_pixel_mode_t pm)
 Set the video mode.
 
void vid_set_mode_ex (vid_mode_t *mode)
 Set the video mode.
 

Variables

vid_mode_t vid_builtin [DM_MODE_COUNT]
 The list of builtin video modes.
 
vid_mode_tvid_mode
 The current video mode.
 

Detailed Description

Video display modes and management

Function Documentation

◆ vid_set_mode()

void vid_set_mode ( int dm,
vid_pixel_mode_t pm )

Set the video mode.

This function sets the current video mode to the one specified by the parameters.

Parameters
dmThe display mode to use. One of the DM_* values.
pmThe pixel mode to use. One of the PM_* values.

◆ vid_set_mode_ex()

void vid_set_mode_ex ( vid_mode_t * mode)

Set the video mode.

This function sets the current video mode to the mode structure passed in. You can use this to add support to your program for modes that KOS doesn't have support for built-in (of course, you should tell us the settings so we can add them into KOS if you do this).

Parameters
modeA filled in vid_mode_t for the mode wanted.

Variable Documentation

◆ vid_builtin

vid_mode_t vid_builtin[DM_MODE_COUNT]
extern

The list of builtin video modes.

Do not modify these!

◆ vid_mode

vid_mode_t* vid_mode
extern

The current video mode.

Do not modify directly!