SFML community forums

Help => Graphics => Topic started by: Kordman916 on December 09, 2010, 02:37:06 am

Title: Texturing sf::Shape
Post by: Kordman916 on December 09, 2010, 02:37:06 am
Hey everyone,

I was working on a quick demo to help me learn SFML and C++ and I realized...

I have no idea on how to texture shapes.

All I want to do is apply a box texture to a box/rectangular shape.

Can anyone tell me how or direct me to a place that can instruct me?

Thanks in advance,
Kordman916
Title: Texturing sf::Shape
Post by: Laurent on December 09, 2010, 08:07:58 am
You can't texture shapes, but for a rectangular one you can use a sprite.
Title: Texturing sf::Shape
Post by: Kordman916 on December 09, 2010, 07:29:12 pm
How would I go about doing that?
Title: Texturing sf::Shape
Post by: Nexus on December 09, 2010, 07:36:31 pm
Take a look at the official tutorials, they explain how to work with sf::Sprite.