aboutsummaryrefslogtreecommitdiff
path: root/src/vga.h
blob: be90b292369ee480d3be8988ad99f652288bbd21 (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 */