aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/include/framebuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/framebuffer.h')
-rw-r--r--kernel/include/framebuffer.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/kernel/include/framebuffer.h b/kernel/include/framebuffer.h
new file mode 100644
index 0000000..6080810
--- /dev/null
+++ b/kernel/include/framebuffer.h
@@ -0,0 +1,18 @@
+#ifndef FRAMEBUFFER_H
+#define FRAMEBUFFER_H
+
+#include <stdint.h>
+
+class Framebuffer {
+ private:
+ uint32_t* addr;
+ const uint64_t width;
+ const uint64_t height;
+
+ public:
+ Framebuffer(uint32_t* addr, const uint64_t width, const uint64_t height);
+ void clear();
+ void drawpixel(const uint64_t x, const uint64_t y, const uint32_t color);
+};
+
+#endif \ No newline at end of file