Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Primitives  (Read 2742 times)

0 Members and 1 Guest are viewing this topic.

ptrxyz

  • Newbie
  • *
  • Posts: 32
    • View Profile
Primitives
« 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!

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Primitives
« Reply #1 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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Primitives
« Reply #2 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.
Laurent Gomila - SFML developer

 

anything