stb
stb copied to clipboard
stb single-file public domain libraries for C/C++
**Is your feature request related to a problem? Please describe.** Using C++ comments in public headers causes compilation errors in projects that enforce the C98/C90 standard or use the C99-incompatible...
Tiny little one-char change to stop the basic usage example from throwing a missing-semicolon error. This one's bugged me for years, I always end up metaphorically stubbing my toe on...
This writer takes linear float data and losslessly outputs files with the same number of components as the input. The images it writes contain 32-bit full floats from the original...
This patch adds write support for 16-bit PNG. I tried to mimic the way it is done on the read side, by having a special _16 function. I didn't modify...
The 16-bpc file formats loaded by stb_image currently (PNG and PSD) just discard the bottom 8-bits, since there's nothing reasonable to do on the 8-bit path. However, they should also...
**Is your feature request related to a problem? Please describe.** Radiance .hdr does not support negative values. Thus, any out-of-gamut colors get clipped in the normal RGBE format. Meaning, the...
**Is your feature request related to a problem? Please describe.** I'm actively developing a game for a legacy system. The compiler does not provide `stdint.h`, which seems to be a...
Allow users to define their own STBTT_DEF. Other headers such as stb_image.h and stb_image_write.h have a similar mechanism. I ran into a "STBTT_DEF redefined" compiler warning and figured that stb_truetype.h...
**Describe the bug** Apparently there's a division by zero in `stbtt__fill_active_edges_new()` on that line: ``` dy = (y_final - y_crossing ) / (x2 - (x1+1)); // if denom=0, y_final =...