scaffolding for framebuffer functions

This commit is contained in:
Lukas Höppner
2026-08-12 22:44:54 +02:00
parent 84ba0a609a
commit 7c87a38a6a
9 changed files with 384 additions and 113 deletions
+1 -2
View File
@@ -2,6 +2,7 @@
#define NOVA64_FRAMEBUFFER_H
#include "nova64_core.h"
#include "nova64_ppu_interface.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
@@ -11,8 +12,6 @@
#define NOVA64_DISPLAY_HEIGHT 800
#define NOVA64_DISPLAY_PIXELS (NOVA64_DISPLAY_WIDTH * NOVA64_DISPLAY_HEIGHT)
// Pixel format: RGB565 (uint16_t)
typedef uint16_t pixel_t;
// Framebuffer size in bytes (768,000 bytes)
#define NOVA64_FRAMEBUFFER_SIZE_BYTES (NOVA64_DISPLAY_PIXELS * sizeof(pixel_t))