diff options
author | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2022-10-06 16:45:17 +0200 |
---|---|---|
committer | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2022-10-06 16:45:17 +0200 |
commit | f8397815545adb7d0da36614e0065aa68453a2e4 (patch) | |
tree | a771f526970c6724b2511577dceece8783450a49 /stage3/gfx.h | |
download | cuddles-f8397815545adb7d0da36614e0065aa68453a2e4.tar.xz |
Initial commit
Diffstat (limited to 'stage3/gfx.h')
-rw-r--r-- | stage3/gfx.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/stage3/gfx.h b/stage3/gfx.h new file mode 100644 index 0000000..e4e5d8b --- /dev/null +++ b/stage3/gfx.h @@ -0,0 +1,21 @@ +#ifndef _GFX_H_ +#define _GFX_H_ + +#include "def.h" + +extern struct __attribute__((packed)) GfxInfo { + u16 pitch; + u16 width; + u16 height; + u32 framebuffer; +} *gfxinfo; + +typedef struct { + u8 r, g, b, a; +} color; + +u32 make_color(color col); +void set_pixel(u16 x, u16 y, u32 col); +void set_region(u16 x, u16 y, u16 w, u16 h, u32 col); + +#endif |