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

Author Topic: Primative with texturing  (Read 14473 times)

0 Members and 1 Guest are viewing this topic.

Caspin

  • Newbie
  • *
  • Posts: 10
    • MSN Messenger - j_nick_terry@hotmail.com
    • View Profile
Primative with texturing
« on: March 07, 2008, 07:27:28 am »
I'm really impressed with the API to draw primitives. Well, done.

I know it's experimental but the primitives would be of much more useful to me if I could specify an image and image coordinates with each point instead of colors. I'm requesting a extension the current API doesn't need to change.

My particular problem is I need to draw several triangles from a tessellated polygon. With the current API I have supreme control over the color but I can't use images to color the triangles.

-caspin

PS: it posted a similar comment in the thread about the new primitives API.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Primative with texturing
« Reply #1 on: March 07, 2008, 07:36:11 am »
Quote
I'm really impressed with the API to draw primitives. Well, done.

Thanks you :)

Quote
I know it's experimental but the primitives would be of much more useful to me if I could specify an image and image coordinates with each point instead of colors.

I already though about it before writing the current class. I didn't add it in this version to keep it simple and see what users really need ; however it could be part of a future version.
I think it wouldn't require much modifications.

Quote
PS: it posted a similar comment in the thread about the new primitives API.

I've removed it, there's no need to split the discussion in 2 separate threads ;)
Laurent Gomila - SFML developer