Started with font rendering

This commit is contained in:
2026-04-01 17:39:05 +02:00
parent 8cce172c95
commit 435a96d203
6 changed files with 633 additions and 207 deletions

18
cvideo.h Normal file
View File

@@ -0,0 +1,18 @@
#pragma once
#include <stdint.h>
// ---------------------------
// Video format
// ---------------------------
#define VIDEO_WIDTH 768
#define VIDEO_HEIGHT 576
#define WORDS_PER_LINE (VIDEO_WIDTH / 32)
#define LINES_PER_FIELD (VIDEO_HEIGHT / 2)
typedef uint32_t video_framebuffer_t[VIDEO_HEIGHT][WORDS_PER_LINE];
typedef uint32_t (*video_framebuffer_ptr_t)[WORDS_PER_LINE];
void video_init(video_framebuffer_t fb);
void video_set_framebuffer(video_framebuffer_t fb);
void video_set_framebuffer_switched_cb(void (*cb)());