summaryrefslogtreecommitdiff
path: root/include/mercury/kernel/framebuffer.hpp
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2024-01-15 15:44:20 -0500
committerBenji Dial <benji@benjidial.net>2024-01-15 15:44:20 -0500
commitc9a1266d219a83882735a3a8304f3824e0219cdb (patch)
treefea71a0b5b0de8f3a8962dc6ed417273f231e2a9 /include/mercury/kernel/framebuffer.hpp
parent7c6a18d77a81f232ad2e1d3a311bb21ea8f1f5b4 (diff)
downloadhilbert-os-c9a1266d219a83882735a3a8304f3824e0219cdb.tar.gz
redo application paging and system calls, rename mercury to hilbert
Diffstat (limited to 'include/mercury/kernel/framebuffer.hpp')
-rw-r--r--include/mercury/kernel/framebuffer.hpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/include/mercury/kernel/framebuffer.hpp b/include/mercury/kernel/framebuffer.hpp
deleted file mode 100644
index 677a42a..0000000
--- a/include/mercury/kernel/framebuffer.hpp
+++ /dev/null
@@ -1,29 +0,0 @@
-#ifndef MERCURY_KERNEL_FRAMEBUFFER_HPP
-#define MERCURY_KERNEL_FRAMEBUFFER_HPP
-
-#include <cstdint>
-
-namespace mercury::kernel::framebuffer {
-
- extern uint32_t *vaddr;
- extern int width;
- extern int height;
- extern int dword_pitch;
-
- void init_framebuffer(uint64_t vaddr, uint64_t width, uint64_t height, uint64_t pitch);
-
- typedef uint32_t color;
- color encode_color(uint8_t r, uint8_t g, uint8_t b);
-
- void set_pixel(int x, int y, color c);
-
- //[from_start_x, from_end_x) x [from_start_y, from_end_y) -> [to_start_x, ...) x [to_start_y, ...)
- //we assume from_start_x < from_end_x and from_start_y < from_end_y
- void move_region(int from_start_x, int from_start_y, int from_end_x, int from_end_y, int to_start_x, int to_start_y);
-
- //[start_x, end_x) x [start_y, end_y)
- void fill_region(int start_x, int start_y, int end_x, int end_y, color c);
-
-}
-
-#endif