Commit Graph

14 Commits

Author SHA1 Message Date
Mikko Mononen
b3f906a393 Updated documentation 2014-01-09 23:22:38 +02:00
Mikko Mononen
8e47686015 Added pool alloc for active edges, improved tesselation algo, better guessing of image size
- added pool alloc for active edges
- improved tesselation algo
- better guessing of image size
- reverted tiger to default state
2014-01-09 23:05:52 +02:00
Mikko Mononen
ad2841fccb Changed struct names, fixed color parser bug and added rasterizer
- changed struct names from NSVGShape to NSVGshape
- fixed silly bug in color parser (plus reversed the r/b)
- changed the shape order so that they are in order they are parsed
- added super simple svg rasterizer based on stb_truetype rasterizer
- added example for the rasterizer
2014-01-09 22:15:26 +02:00
Mikko Mononen
297c2d5252 Fixed issue #3
- added missing break after 'm'/'M' path command
- path command 'm'/'M' is converted to 'l'/'L' so that multiple
coordinate pairs behave correctly
- fixed rendering of first point on path
2014-01-02 20:43:27 +02:00
Mikko Mononen
f5b57c1876 Fox for Issue #2
- reset current point only at the start of path command
2014-01-02 20:28:15 +02:00
Mikko Mononen
8f4ad842e0 Merge pull request #1 from jlauha/master
fixed bunch of VS2010 warnings/errors (when compiled as C code)
2013-10-10 11:54:57 -07:00
Jetro Lauha
9ea087a788 removed dummy references and replaced with pragma to ignore C4100 warning & removed one unreachable return 2013-10-10 20:17:06 +03:00
Jetro Lauha
c7baafd493 fixed bunch of VS2010 warnings/errors (when compiled as C code) 2013-10-10 15:21:36 +03:00
Mikko Mononen
f52dd2cf2c Removed debug printfs 2013-10-08 23:48:46 +03:00
Mikko Mononen
572bbb2d4d Changed the structure of returned SVG data to image, shapes and paths
- Needed support to SVG image size, hence added following:
- added NSVGImage, which holds image size and list of shapes
- added NSVGShape which holds color/store and list of paths
2013-10-08 23:48:46 +03:00
Mikko Mononen
d79b9db71f Be more specific which version if AGG was used for inspiration 2013-10-07 15:58:59 +03:00
Mikko Mononen
4ba0c79055 Added more documentation, removed unused tol, added shapeId
- added more documentation to NSVGPath
- removed unused 'tol'
- added shapeId to paths, used to identify path belonging to same shape
- small text change to readme
2013-10-06 01:46:50 +03:00
Mikko Mononen
ba093228f0 Initial commit 2013-10-05 18:03:55 +03:00
Mikko Mononen
e4f10ab851 Initial commit. 2013-10-05 18:03:07 +03:00