diff options
| author | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-05-10 01:44:59 -0400 |
|---|---|---|
| committer | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-05-10 01:44:59 -0400 |
| commit | 975a9ec96e282e437ccc1bdf1e660dcbf4542791 (patch) | |
| tree | 29bdbd7769d59df82c6bace1d653c8be310c2d08 /kernel/include/framebuffer.h | |
| parent | abaab98bd757cd0818cfcddc983eee25ab7672ed (diff) | |
Added GDT and basic IDT as well as a bitmap drawing function
Diffstat (limited to 'kernel/include/framebuffer.h')
| -rw-r--r-- | kernel/include/framebuffer.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/kernel/include/framebuffer.h b/kernel/include/framebuffer.h index 6080810..b7f8ba2 100644 --- a/kernel/include/framebuffer.h +++ b/kernel/include/framebuffer.h @@ -3,16 +3,9 @@ #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);
-};
+void fb_init(uint32_t* addr, uint64_t width, uint64_t height);
+void fb_clear();
+void draw_pixel(const uint64_t x, const uint64_t y, const uint32_t color);
+void draw_bitmap(const uint32_t* bitmap, const uint64_t x_pos, const uint64_t y_pos, const uint64_t width, const uint64_t height);
#endif
\ No newline at end of file |
