Browse Source

update version number, minor docs

Sean Barrett 10 years ago
parent
commit
6e0ae49f87
2 changed files with 11 additions and 4 deletions
  1. 1 1
      README.md
  2. 10 3
      stb_image.h

+ 1 - 1
README.md

@@ -6,7 +6,7 @@ single-file public domain libraries for C/C++
 library    | lastest version | category | description
 library    | lastest version | category | description
 --------------------- | ---- | -------- | --------------------------------
 --------------------- | ---- | -------- | --------------------------------
 **stb_vorbis.c** | 1.04 | audio | decode ogg vorbis files from file/memory to float/16-bit signed output
 **stb_vorbis.c** | 1.04 | audio | decode ogg vorbis files from file/memory to float/16-bit signed output
-**stb_image.h** | 1.48 | graphics | image loading/decoding from file/memory: JPG, PNG, TGA, BMP, PSD, GIF, HDR, PIC
+**stb_image.h** | 2.00 | graphics | image loading/decoding from file/memory: JPG, PNG, TGA, BMP, PSD, GIF, HDR, PIC
 **stb_truetype.h** | 1.02 | graphics | parse, decode, and rasterize characters from truetype fonts
 **stb_truetype.h** | 1.02 | graphics | parse, decode, and rasterize characters from truetype fonts
 **stb_image_write.h** | 0.95 | graphics | image writing to disk: PNG, TGA, BMP
 **stb_image_write.h** | 0.95 | graphics | image writing to disk: PNG, TGA, BMP
 **stb_image_resize.h** | 0.90 | graphics | resize images larger/smaller with good quality
 **stb_image_resize.h** | 0.90 | graphics | resize images larger/smaller with good quality

+ 10 - 3
stb_image.h

@@ -1,12 +1,19 @@
-/* stb_image - v1.49 - public domain JPEG/PNG reader - http://nothings.org/stb_image.c
+/* stb_image - v2.00 - public domain image loader - http://nothings.org/stb_image.h
                                      no warranty implied; use at your own risk
                                      no warranty implied; use at your own risk
 
 
    Do this:
    Do this:
       #define STB_IMAGE_IMPLEMENTATION
       #define STB_IMAGE_IMPLEMENTATION
    before you include this file in *one* C or C++ file to create the implementation.
    before you include this file in *one* C or C++ file to create the implementation.
 
 
-   #define STBI_ASSERT(x) to avoid using assert.h.
-   #define STBI_MALLOC, STBI_REALLOC, and STBI_FREE to avoid using malloc,realloc,free
+   // i.e. it should look like this:
+   #include ...
+   #include ...
+   #include ...
+   #define STB_IMAGE_IMPLEMENTATION
+   #include "stb_image.h"
+
+   You can #define STBI_ASSERT(x) before the #include to avoid using assert.h.
+   And #define STBI_MALLOC, STBI_REALLOC, and STBI_FREE to avoid using malloc,realloc,free
 
 
 
 
    QUICK NOTES:
    QUICK NOTES: