Files
esp32vga/main/content.h
T
jimmyandClaude Opus 5.5 9f84330b91 Move project to repo root and add Makefile
The Makefile wraps the build, USB and WiFi flashing, the serial monitor
and font generation, with toolchain paths that can be overridden.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 12:45:11 +13:00

15 lines
620 B
C

#pragma once
#include "app.h"
// The display task calls enter() once when the content is selected (the whole
// canvas is then copied to both buffers), then every frame tick() followed by
// draw() on the buffer being prepared. Any of them may be NULL.
typedef struct {
void (*enter)(const show_t *s); // draw static parts into the canvas
void (*tick)(void); // update the canvas; mark changes with canvas_dirty()
bool (*draw)(uint8_t *fb, int buf); // draw into the frame buffer; true if it changed
} content_ops_t;
const content_ops_t *content_ops(content_id_t c);