From e8dbc6d9db15a04af180f389b6cbe9d01ee3e09a Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Mon, 7 Jul 2014 07:34:37 -0700 Subject: [PATCH] documentation & license --- data/herringbone/license.txt | 4 ++++ stb_herringbone_wang_tile.h | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 data/herringbone/license.txt diff --git a/data/herringbone/license.txt b/data/herringbone/license.txt new file mode 100644 index 0000000..11ffc42 --- /dev/null +++ b/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. \ No newline at end of file diff --git a/stb_herringbone_wang_tile.h b/stb_herringbone_wang_tile.h index ce27689..35cda55 100644 --- a/stb_herringbone_wang_tile.h +++ b/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);