Skip to content

kamirr/sf-svg

Repository files navigation

sf-svg

SFML-based library to draw .svg files and Bézier Curves.

What it does:

  • SVG images drawing;
  • Loading SVG from files / memory / stream;
  • SVG rasterization;
  • Implements Square- and Cubic Bézier curves;
  • Curves inherit sf::Shape;
  • Provides interface for Bézier curves;
  • Provides debug-friendly features like "helper lines" etc.

What it lacks (yet):

  • n-th level Bézier curves;
  • Better rasterizer.

Documentation

You can find docs here.
Generated using doxygen, It's not good-looking, but I don't have time to change doxygen's .css files.

Usage:

Compilation

$ git clone https://github.com/KoczurekK/sf-svg.git
$ cd sf-svg
$ qmake curves-shared.pro
$ make

Installation & usage

Copy SFC headers to /usr/include/SFC or to any other path supported on your OS. Then copy .so/.dll files wherever you want to and remember to pass linker option -lsfsvg.