소스 검색

documentation & license

Sean Barrett 11 년 전
부모
커밋
e8dbc6d9db
2개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 0
      data/herringbone/license.txt
  2. 3 3
      stb_herringbone_wang_tile.h

+ 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,
  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)
 // returns non-zero on success, 0 on error
 // 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,
                      unsigned char *pixels, int stride_in_bytes, int w, int h);