Lab5
 All Data Structures Functions Variables Groups
Functions
video_gr

Functions

void * vg_init (unsigned short mode)
 Initializes the video module in graphics mode.
int vg_exit (void)
 Returns to default Minix 3 text mode (0x03: 25 x 80, 16 colors)

Detailed Description

Functions for outputing data to screen in graphics mode

Function Documentation

void* vg_init ( unsigned short  mode)

Initializes the video module in graphics mode.

Uses the VBE INT 0x10 interface to set the desired graphics mode, maps VRAM to the process' address space and initializes static global variables with the resolution of the screen, and the number of colors

Parameters
mode16-bit VBE mode to set
Returns
Virtual address VRAM was mapped to. NULL, upon failure.
int vg_exit ( void  )

Returns to default Minix 3 text mode (0x03: 25 x 80, 16 colors)

Returns
0 upon success, non-zero upon failure