Updated README.

This commit is contained in:
Branimir Karadžić 2014-04-30 22:27:30 -07:00
parent bc399eb317
commit bf9ed535fc
3 changed files with 10 additions and 3 deletions

2
3rdparty/sdf/sdf.h vendored
View File

@ -113,7 +113,7 @@ static float sdf__clamp01(float x)
return x < 0.0f ? 0.0f : (x > 1.0f ? 1.0f : x);
}
void sdfCoverageToDistance(unsigned char* out, int outstride, float maxdist,
void sdfCoverageToDistance(unsigned char* out, int outstride,
const unsigned char* img, int width, int height, int stride)
{
int x, y;

View File

@ -482,6 +482,13 @@ NanoVG is small antialiased vector graphics rendering library.
https://github.com/memononen/nanovg
### SDF (MIT)
Sweep-and-update Euclidean distance transform of an antialised image for contour
texturing.
https://github.com/memononen/SDF
### stb_image, stb_truetype (Public Domain)
http://nothings.org

View File

@ -3,7 +3,7 @@
* License: http://www.opensource.org/licenses/BSD-2-Clause
*/
#define USE_EDTAA3 1
#define USE_EDTAA3 0
#include "../common.h"
@ -347,7 +347,7 @@ static void makeDistanceMap(const uint8_t* _img, uint8_t* _outImg, uint32_t _wid
free(outside);
free(inside);
#else
sdfBuild(_outImg, _width, 2.0f, _img, _width, _height, _width);
sdfBuild(_outImg, _width, 8.0f, _img, _width, _height, _width);
#endif // USE_EDTAA3
}