![stb image stb image](https://f4.bcbits.com/img/0008359083_10.jpg)
You to use multiple source files, one for each CPU configuration.īecause stb_image is a header-file library that compiles in only The approved path in GCC for runtime-detection require Processor at runtime and handle it correctly. Will not use any SIMD at all, rather than trying to detect the Stb_image will either use SSE2 (if you compile with -msse2) or
![stb image stb image](https://www.digitaltveurope.com/files/2022/02/Allente-STB-and-remote-control-image-3.png)
What's the deal with SSE support in GCC-based compilers?
#Stb image license
No, because it's public domain you can freely relicense it to whatever license your new If I wrap an stb library in a new library, does the new library have to be public domain/MIT? Are there other single-file public-domain/open source libraries with minimal dependencies out there? The right macro to define is pointed out right at the top of each of these libraries.
![stb image stb image](https://ekt-pim.s3.amazonaws.com/assets/products/Mira/DxD4825/DXD4825_NanoMira_frontpanel.png)
Include stb_image.h regularly, but instead does Specific macro (this is documented per-library) to actually enable the function definitions.įor example, to use stb_image, you should have exactly one C/C++ file that doesn't The code, preferably a file you're not editing frequently. So in addition, you should select exactly one C/C++ source file that actually instantiates
#Stb image code
they declare the functions contained in the file but don'tĪctually result in any code getting compiled. The idea behind single-header file libraries is that they're easy to distribute and deployīecause all the code is contained in a single file. Every source file includes an explicitĭual-license for you to choose from. They are also licensed under the MIT open source license, if you have lawyers To do anything else, although I appreciate attribution. These libraries are in the public domain. Total lines of C code: 42599 FAQ What's the license? Implement recursive #include support, particularly for GLSL Quick-and-dirty malloc/free leak-checking Incrementally compute reachability on grids Simplify writing parsers for C-like languages Quick-and-dirty easy-to-deploy bitmap font for printing frame rate, etc Minecraft-esque voxel rendering "engine" with many more featuresįabian "ryg" Giesen's real-time DXT compressor Guts of a text editor for games etc implementing them from scratch Typesafe dynamic array and hash tables for C, will compile in C++ Simple 2D rectangle packer with decent quality Resize images larger/smaller with good quality Parse, decode, and rasterize characters from truetype fonts Image loading/decoding from file/memory: JPG, PNG, TGA, BMP, PSD, GIF, HDR, PIC "VinoBS" Rodriguez, and stb_sprintf by Jeff Roberts.ĭecode ogg vorbis files from file/memory to float/16-bit signed output Most libraries by stb, except: stb_dxt by Fabian "ryg" Giesen, stb_image_resizeīy Jorge L. Single-file public domain (or MIT licensed) libraries for C/C++