summaryrefslogtreecommitdiff
path: root/vendor/text.h
blob: bf4f363d8acb34e013c1da5966119f74f73adeae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#ifndef SKETCHBOOK_TEXT_H
#define SKETCHBOOK_TEXT_H
#include <SDL3/SDL.h>
#include <stddef.h>
/* x/y are the logical line-box top. Scale 1 is 13 px Go Mono (roughly
   eight-pixel ASCII advance and a 16-pixel line box); fallback uses Fontconfig. */
bool sk_text_draw(SDL_Renderer *, float x, float y, float scale,
                  const char *utf8, size_t len, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
void sk_text_begin_frame(SDL_Renderer *);
#endif