KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
vid_mode_t Struct Reference

Video mode structure. More...

#include <dc/video.h>

Data Fields

uint16_t generic
 Generic mode type for vid_set_mode()
 
uint16_t width
 Width of the display, in pixels.
 
uint16_t height
 Height of the display, in pixels.
 
uint32_t flags
 Combination of one or more VID_* flags.
 
int16_t cable_type
 Allowed cable type.
 
vid_pixel_mode_t pm
 Pixel mode.
 
uint16_t scanlines
 Number of scanlines.
 
uint16_t clocks
 Clocks per scanline.
 
uint16_t bitmapx
 Bitmap window X position.
 
uint16_t bitmapy
 Bitmap window Y position (automatically increased for PAL)
 
uint16_t scanint1
 First scanline interrupt position.
 
uint16_t scanint2
 Second scanline interrupt position (automatically doubled for VGA)
 
uint16_t borderx1
 Border X starting position.
 
uint16_t borderx2
 Border X stop position.
 
uint16_t bordery1
 Border Y starting position.
 
uint16_t bordery2
 Border Y stop position.
 
uint16_t fb_curr
 Current framebuffer.
 
uint16_t fb_count
 Number of framebuffers.
 
size_t fb_size
 Size of each framebuffer.
 

Detailed Description

Video mode structure.

KOS maintains a list of valid video modes internally that correspond to the specific display modes enumeration. Each of them is built of one of these.

Field Documentation

◆ bitmapx

uint16_t vid_mode_t::bitmapx

Bitmap window X position.

◆ bitmapy

uint16_t vid_mode_t::bitmapy

Bitmap window Y position (automatically increased for PAL)

◆ borderx1

uint16_t vid_mode_t::borderx1

Border X starting position.

◆ borderx2

uint16_t vid_mode_t::borderx2

Border X stop position.

◆ bordery1

uint16_t vid_mode_t::bordery1

Border Y starting position.

◆ bordery2

uint16_t vid_mode_t::bordery2

Border Y stop position.

◆ cable_type

int16_t vid_mode_t::cable_type

Allowed cable type.

◆ clocks

uint16_t vid_mode_t::clocks

Clocks per scanline.

◆ fb_count

uint16_t vid_mode_t::fb_count

Number of framebuffers.

◆ fb_curr

uint16_t vid_mode_t::fb_curr

Current framebuffer.

◆ fb_size

size_t vid_mode_t::fb_size

Size of each framebuffer.

◆ flags

uint32_t vid_mode_t::flags

Combination of one or more VID_* flags.

◆ generic

uint16_t vid_mode_t::generic

Generic mode type for vid_set_mode()

◆ height

uint16_t vid_mode_t::height

Height of the display, in pixels.

◆ pm

vid_pixel_mode_t vid_mode_t::pm

Pixel mode.

◆ scanint1

uint16_t vid_mode_t::scanint1

First scanline interrupt position.

◆ scanint2

uint16_t vid_mode_t::scanint2

Second scanline interrupt position (automatically doubled for VGA)

◆ scanlines

uint16_t vid_mode_t::scanlines

Number of scanlines.

◆ width

uint16_t vid_mode_t::width

Width of the display, in pixels.


The documentation for this struct was generated from the following file: