summaryrefslogtreecommitdiff
path: root/stage3/gfx.h
blob: d81f54b9088b6416a814f2ada1d8b0788b840cf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef GFX_H
#define GFX_H

#include "def.h"

typedef struct __attribute__((packed)) {
	u8 r, g, b, a;
} color;

u32 make_color(color col);
void gfx_set_pixel(u16 x, u16 y, u32 col);
void gfx_set_area(u16 x, u16 y, u16 w, u16 h, u32 col);
void gfx_draw_img(u16 x, u16 y, u16 w, u16 h, u32 *img);

#endif