aboutsummaryrefslogtreecommitdiff
path: root/src/vga.h
blob: 23324137f3c4ce8492fda6e36738401bcca77b06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef _VGA_H
#define _VGA_H

uint8_t *open_framebuffer();
void close_framebuffer();

void set_mode(uint8_t mode);
void wait_vsync();

/* the palette is expected to be 8 bit per color, and will be converted to VGA's 6 bit per color */
void set_palette(const uint8_t *palette);

#endif // _VGA_H