summaryrefslogtreecommitdiff
path: root/vendor/text.h
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-28 21:07:13 -0300
committerGabriel Schneider <[email protected]>2026-11-12 13:22:02 -0300
commit590ba7b9b579b97e34b51ab7e3460ebc85713343 (patch)
tree6a73a7570ff4f79f41deff078455877b9bc6571b /vendor/text.h
parentbc8e6eb1bfef0c5e9b3c40fc1e4fd5a1659e2b03 (diff)
downloadsketchbook-590ba7b9b579b97e34b51ab7e3460ebc85713343.tar.gz
sketchbook-590ba7b9b579b97e34b51ab7e3460ebc85713343.zip
sketchbook: Zig 0.17, a Store on disk, requests, a scope (waveform, spectrum, spectrogram), audio codecs and fonts, web host
Diffstat (limited to 'vendor/text.h')
-rw-r--r--vendor/text.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/text.h b/vendor/text.h
new file mode 100644
index 0000000..bf4f363
--- /dev/null
+++ b/vendor/text.h
@@ -0,0 +1,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