Commit Graph

9 Commits

Author SHA1 Message Date
Mikko Mononen
c53c48759d Added typedefs to structs
- typedef’d structs
- added named parameters
2014-06-12 20:53:00 +03:00
Mikko Mononen
1acb9f0c9b Fixed issue #11
- fixed compiler warnings
- supper single and double quotes
2014-06-12 20:01:32 +03:00
Mikko Mononen
135a658741 Added viewBox and unit coversion support
- added exact bounds calculation for bezier curves, paths, shapes
- added unit coversion for svg length values (use px internally)
- added viewBox and preserveAspectRatio handling
- removed some test SVGs
2014-01-29 19:50:41 +02:00
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
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
e4f10ab851 Initial commit. 2013-10-05 18:03:07 +03:00