chore: sync from fn-registry agent

This commit is contained in:
fn-registry agent
2026-05-11 16:28:46 +02:00
commit 49a9f3273d
4 changed files with 375 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
// Dedicated TU for sokol_gfx implementation. Including sokol_gfx.h with
// SOKOL_IMPL elsewhere (e.g. main.cpp) plus then including any other header
// that re-includes sokol_gfx.h re-emits the impl block — link/compile errors.
//
// Convention: this is the ONLY file in this app that defines SOKOL_IMPL.
#define SOKOL_IMPL
#if defined(__EMSCRIPTEN__)
#define SOKOL_GLES3
#else
#define SOKOL_GLCORE
#endif
#include "sokol_gfx.h"
#include "sokol_log.h"