1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

stbi: add image writing functions (#12754)

This commit is contained in:
penguindark
2021-12-07 23:31:37 +01:00
committed by GitHub
parent a19dd36473
commit 7a0b63e795
6 changed files with 1901 additions and 25 deletions

View File

@ -1,3 +1,22 @@
#define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image.h"
#include "stb_image_write.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;
}