summaryrefslogtreecommitdiff
path: root/include/video.h
diff options
context:
space:
mode:
authorElizabeth Alexander Hunt <me@liz.coffee>2026-10-11 14:22:26 -0700
committerElizabeth Alexander Hunt <me@liz.coffee>2026-10-11 14:27:23 -0700
commit7c870e6eabd53f7a8cb0c9b5ecb477797b4de09a (patch)
tree9c52c9ffb4f036ffcbeb785b8ed2b8bd0dfbf61a /include/video.h
parentc74bd1baa844eac1fcb17a266ef720ed0c1ae616 (diff)
downloadmacaroni-7c870e6eabd53f7a8cb0c9b5ecb477797b4de09a.tar.gz
macaroni-7c870e6eabd53f7a8cb0c9b5ecb477797b4de09a.zip
Scroll some pixels on the fuckin screenHEADmain
Diffstat (limited to 'include/video.h')
-rw-r--r--include/video.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/video.h b/include/video.h
new file mode 100644
index 0000000..85a670c
--- /dev/null
+++ b/include/video.h
@@ -0,0 +1,23 @@
+#include <stdint.h>
+#include "multiboot.h"
+
+#ifndef VIDEO_H
+#define VIDEO_H
+
+#define MULTIBOOT_GODS_WIDTH 640
+#define MULTIBOOT_GODS_HEIGHT 480
+#define MULTIBOOT_VIDEO_BPP 24
+
+typedef uint32_t macaroni_color;
+static macaroni_color RED = 0xFF0000;
+static macaroni_color GREEN = 0x00FF00;
+static macaroni_color BLUE = 0x0000FF;
+
+static uint8_t* video_framebuffer;
+static uint32_t pitch;
+static uint32_t pixel_width;
+
+void init_video(multiboot_info_t* p_multiboot_info);
+void put_pixel(macaroni_color color, uint16_t x, uint16_t y);
+
+#endif // VIDEO_H