Component evidence
Single-header public-domain image loader supporting JPEG, PNG, BMP, TGA, GIF, PSD, HDR, PIC, and PNM with SIMD acceleration.
// Source: https://github.com/LIL-JRG/ghostty | License: MIT | Copyright 2024 Mitchell Hashimoto, Ghostty contributors
// Provided via justclaw.it.com; keep this notice with the code.
/* stb_image - v2.28 - public domain image loader - http://nothings.org/stb
no warranty implied; use at your own risk
Do this:
#define STB_IMAGE_IMPLEMENTATION
before you include this file in *one* C or C++ file to create the implementation.
// i.e. it should look like this:
#include ...
#include ...
#include ...
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
You can #define STBI_ASSERT(x) before the #include to avoid using assert.h.
And #define STBI_MALLOC, STBI_REALLOC, and STBI_FREE to avoid using malloc,realloc,free
QUI
... (truncated -- full source via MCP)