SFML community forums

General => Feature requests => Topic started by: ptrxyz on December 07, 2010, 07:56:08 pm

Title: Primitives
Post by: ptrxyz on December 07, 2010, 07:56:08 pm
Hm, maybe someone asked this before, but I wasn't able to find a post about it, so ... here we go:

I wonder if SFML will bring support for drawing simple stuff like lines, rectangles, ellipses, splines and paths.
The GDI+ API seems to be pretty powerful and a lot of people like it because of it's simplicity. However, it is not hardware accelerated and maybe SFML could fix this issue. Transfer the powerful GDI+ API to SFML and I would not see a better 2D library out there!
Title: Re: Primitives
Post by: Nexus on December 07, 2010, 08:02:54 pm
Quote from: "ptrxyz"
I wonder if SFML will bring support for drawing simple stuff like lines, rectangles, ellipses, splines and paths.
Some of those primitives are already available in the sf::Shape class.
Title: Primitives
Post by: Laurent on December 07, 2010, 08:04:15 pm
Accelerated graphics use point based geometry (points, lines, triangles). So lines and rectangles are ok, ellipses are straight-forward to triangulate, but splines and paths can't be implemented easily.

Maybe you should combine a SVG renderer to SFML? Someone already did that, maybe you can find some info on the forum.