coastline 0.0.4
Loading...
Searching...
No Matches
viint.h File Reference

The two video contexts the VI manager swaps on every retrace, and the manager's state. More...

#include <ultra64.h>
Include dependency graph for viint.h:

Go to the source code of this file.

Macros

#define VI_STATE_MODE_UPDATED   0x01
#define VI_STATE_XSCALE_UPDATED   0x02
#define VI_STATE_YSCALE_UPDATED   0x04
#define VI_STATE_CTRL_UPDATED   0x08
#define VI_STATE_BUFFER_UPDATED   0x10
#define VI_STATE_BLACK   0x20
#define VI_STATE_REPEATLINE   0x40
#define VI_STATE_FADE   0x80
#define VI_CTRL_GAMMA_DITHER_ON   0x00004
#define VI_CTRL_GAMMA_ON   0x00008
#define VI_CTRL_DIVOT_ON   0x00010
#define VI_CTRL_ANTIALIAS_MASK   0x00300
#define VI_CTRL_DITHER_FILTER_ON   0x10000
#define VI_SCALE_MASK   0xFFF
#define VI_2_10_FPART_MASK   0x3FF
#define VI_SUBPIXEL_SH   0x10

Detailed Description

The two video contexts the VI manager swaps on every retrace, and the manager's state.

Macro Definition Documentation

◆ VI_STATE_MODE_UPDATED

#define VI_STATE_MODE_UPDATED   0x01

The video mode changed.

◆ VI_STATE_XSCALE_UPDATED

#define VI_STATE_XSCALE_UPDATED   0x02

The horizontal scale changed.

◆ VI_STATE_YSCALE_UPDATED

#define VI_STATE_YSCALE_UPDATED   0x04

The vertical scale changed.

◆ VI_STATE_CTRL_UPDATED

#define VI_STATE_CTRL_UPDATED   0x08

The control register changed.

◆ VI_STATE_BUFFER_UPDATED

#define VI_STATE_BUFFER_UPDATED   0x10

The frame buffer changed.

◆ VI_STATE_BLACK

#define VI_STATE_BLACK   0x20

The screen is black.

◆ VI_STATE_REPEATLINE

#define VI_STATE_REPEATLINE   0x40

Every line repeats the first.

◆ VI_STATE_FADE

#define VI_STATE_FADE   0x80

The screen fades.

◆ VI_CTRL_GAMMA_DITHER_ON

#define VI_CTRL_GAMMA_DITHER_ON   0x00004

Dither before the gamma correction.

◆ VI_CTRL_GAMMA_ON

#define VI_CTRL_GAMMA_ON   0x00008

Apply the gamma correction.

◆ VI_CTRL_DIVOT_ON

#define VI_CTRL_DIVOT_ON   0x00010

Remove the divots the anti-aliasing leaves.

◆ VI_CTRL_ANTIALIAS_MASK

#define VI_CTRL_ANTIALIAS_MASK   0x00300

The bits of the anti-aliasing mode.

◆ VI_CTRL_DITHER_FILTER_ON

#define VI_CTRL_DITHER_FILTER_ON   0x10000

Filter the dithering of 16-bit frame buffers.

◆ VI_SCALE_MASK

#define VI_SCALE_MASK   0xFFF

The bits of the scale factor.

◆ VI_2_10_FPART_MASK

#define VI_2_10_FPART_MASK   0x3FF

The bits of the fraction of the scale factor.

◆ VI_SUBPIXEL_SH

#define VI_SUBPIXEL_SH   0x10

The shift of the subpixel offset in a scale register.