Initial project import

This commit is contained in:
Agila Forge Importer committed 2026-07-13 15:20:32 +00:00
commit 23f2d29e32
11957 files changed
+1754577

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
# [nothings/stb](https://github.com/nothings/stb)
stb_image.h is a public domain image loader for popular graphics file formats.
## MIT license
```
Copyright (c) 2017 Sean Barrett
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+6
View File
@@ -0,0 +1,6 @@
/*
* stbi set globals var functions
*/
void set_png_compression_level(int level);
void write_force_png_filter(int level);
void write_tga_with_rle(int level);
+39
View File
@@ -0,0 +1,39 @@
#define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_WRITE_IMPLEMENTATION
#define STB_IMAGE_RESIZE_IMPLEMENTATION
#include <stddef.h>
extern void * stbi__callback_malloc(size_t size);
extern void * stbi__callback_realloc(void *ptr, size_t size);
extern void stbi__callback_free(void *ptr);
#define STBI_MALLOC(sz) stbi__callback_malloc(sz)
#define STBI_REALLOC(p,newsz) stbi__callback_realloc(p,newsz)
#define STBI_FREE(p) stbi__callback_free(p)
#define STBIW_MALLOC(sz) stbi__callback_malloc(sz)
#define STBIW_REALLOC(p,newsz) stbi__callback_realloc(p,newsz)
#define STBIW_FREE(p) stbi__callback_free(p)
#include "stb_image.h"
#include "stb_image_write.h"
#include "stb_image_resize2.h"
/*
void set_png_compression_level(int level);
void write_force_png_filter(int level);
void write_tga_with_rle(int level);
*/
void set_png_compression_level(int level) {
stbi_write_png_compression_level = level;
}
void write_force_png_filter(int level){
stbi_write_force_png_filter = level;
}
void write_tga_with_rle(int level) {
stbi_write_tga_with_rle = level;
}