2
0
Sean Barrett 11 жил өмнө
parent
commit
e8dbc6d9db

+ 4 - 0
data/herringbone/license.txt

@@ -0,0 +1,4 @@
+All files in this directory are in the public domain. Where
+a public domain declaration is not recognized, you are granted
+a license to freely use, modify, and redistribute them in
+any way you choose.

+ 3 - 3
stb_herringbone_wang_tile.h

@@ -1,5 +1,5 @@
-/* stbhw-v0.5 - public domain - http://nothings.org/stb/stb_herringbone_wang_tile.h
-   Herringbone Wang Tile Generator - Sean Barrett 2014
+/* stbhw - v0.5 -  http://nothings.org/stb/stb_herringbone_wang_tile.h
+   Herringbone Wang Tile Generator - Sean Barrett 2014 - public domain
 
 
  This file is in the public domain. In case that declaration is ineffective,
  This file is in the public domain. In case that declaration is ineffective,
  you are also granted a license to use and modify it without restriction.
  you are also granted a license to use and modify it without restriction.
@@ -173,7 +173,7 @@ STBHW_EXTERN void stbhw_free_tileset(stbhw_tileset *ts);
 // generate a map that is w * h pixels (3-bytes each)
 // generate a map that is w * h pixels (3-bytes each)
 // returns non-zero on success, 0 on error
 // returns non-zero on success, 0 on error
 // not thread-safe (uses a global data structure to avoid memory management)
 // not thread-safe (uses a global data structure to avoid memory management)
-// weighting can be NULL, or it 
+// weighting should be NULL, as non-NULL weighting is currently untested
 STBHW_EXTERN int stbhw_generate_image(stbhw_tileset *ts, int **weighting,
 STBHW_EXTERN int stbhw_generate_image(stbhw_tileset *ts, int **weighting,
                      unsigned char *pixels, int stride_in_bytes, int w, int h);
                      unsigned char *pixels, int stride_in_bytes, int w, int h);