From dda7d72841f6ce976c2b83948b0f1c7341088302 Mon Sep 17 00:00:00 2001 From: Kevin Schmidt Date: Tue, 18 Apr 2017 15:57:24 +0200 Subject: [PATCH 1/2] Add STB_DXT_STATIC option. --- stb_dxt.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/stb_dxt.h b/stb_dxt.h index 5399799..c352b76 100644 --- a/stb_dxt.h +++ b/stb_dxt.h @@ -35,8 +35,14 @@ extern "C" { #endif -void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src_rgba_four_bytes_per_pixel, int alpha, int mode); -void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src_rg_two_byte_per_pixel); +#ifdef STB_DXT_STATIC +#define STBDDEF static +#else +#define STBDDEF extern +#endif + +STBDDEF void stb_compress_dxt_block(unsigned char *dest, const unsigned char *src_rgba_four_bytes_per_pixel, int alpha, int mode); +STBDDEF void stb_compress_bc5_block(unsigned char *dest, const unsigned char *src_rg_two_byte_per_pixel); #ifdef __cplusplus } From 96e1f0474c4dec5a8a17a20a0fa1efc3040ed436 Mon Sep 17 00:00:00 2001 From: Kevin Schmidt Date: Tue, 18 Apr 2017 17:42:41 +0200 Subject: [PATCH 2/2] Edit contributor list. --- stb_dxt.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stb_dxt.h b/stb_dxt.h index c352b76..e68c7a8 100644 --- a/stb_dxt.h +++ b/stb_dxt.h @@ -19,6 +19,9 @@ // v1.01 - (stb) fix bug converting to RGB that messed up quality, thanks ryg & cbloom // v1.00 - (stb) first release // +// contributors: +// Kevin Schmidt +// // LICENSE // // See end of file for license information.