Files
VS-map-previewer/src/nk.c
alex-eg 5ad62524f1 show the generated region maps in the viewer
Tiles are single maps of single regions, generated on worker threads
that each own a worldgen, since the layers keep RNG state. Only the
visible tiles are queued, nearest first, so the viewer never computes
more than the window shows and sleeps once it has drawn it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 18:24:59 +03:00

11 lines
203 B
C

#include <stdio.h>
#define NK_IMPLEMENTATION
#define NK_SDL3_RENDERER_IMPLEMENTATION
#include "nk.h"
char *vsmv_dtoa(char *s, double n)
{
snprintf(s, NK_MAX_NUMBER_BUFFER, "%g", n);
return s;
}