summaryrefslogtreecommitdiff
path: root/stage3/gfx.h
blob: 47e98dba37ff716e51e668199cee3c87fd40791f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef GFX_H
#define GFX_H

#include "def.h"

extern struct __attribute__((packed)) GfxInfo {
	u16 pitch;
	u16 width;
	u16 height;
	u32 framebuffer;
} *gfx_info;

typedef struct {
	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);

#endif