aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/include/framebuffer.h
diff options
context:
space:
mode:
authorEmu <89668582+EmulatedSeasons@users.noreply.github.com>2024-05-31 23:38:46 -0400
committerGitHub <noreply@github.com>2024-05-31 23:38:46 -0400
commit27a44e0d79d1c6e01cd832feb8ad958d5999b5e3 (patch)
tree3759eb02fcad7a609a064080d81b7c6f9dbec4c8 /kernel/include/framebuffer.h
parent639240bbf498195912d8ceb6cb396b89391a5b1b (diff)
parentfd5a1699592ce0afafc42ebf22401596abcdfc28 (diff)
Merge pull request #1 from EmulatedSeasons/limineswitch
Limineswitch
Diffstat (limited to 'kernel/include/framebuffer.h')
-rw-r--r--kernel/include/framebuffer.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/include/framebuffer.h b/kernel/include/framebuffer.h
new file mode 100644
index 0000000..7379d90
--- /dev/null
+++ b/kernel/include/framebuffer.h
@@ -0,0 +1,11 @@
+#ifndef FRAMEBUFFER_H
+#define FRAMEBUFFER_H
+
+#include <stdint.h>
+
+void fb_init(uint32_t* addr, uint32_t width, uint32_t height);
+void fb_clear();
+void draw_pixel(const uint32_t x, const uint32_t y, const uint32_t color);
+void draw_bitmap(const uint32_t* bitmap, const uint32_t x_pos, const uint32_t y_pos, const uint32_t width, const uint32_t height);
+
+#endif \ No newline at end of file