SFML community forums

Help => Graphics => Topic started by: JayArby on December 11, 2012, 06:13:55 am

Title: patterned textures
Post by: JayArby on December 11, 2012, 06:13:55 am
Hi,

Is it currently possible to draw a shape with a texture patterned across it? If not, this would be a very useful feature. Is hardware accelerated patterning possible with opengl? I assume it must be.

Thanks!
Title: Re: patterned textures
Post by: cire on December 11, 2012, 07:46:28 am
http://www.sfml-dev.org/documentation/2.0/classsf_1_1Texture.php#aaa87d1eff053b9d4d34a24c784a28658

I don't know what "patterned" means but if you want the texture to repeat, then yes.
Title: Re: patterned textures
Post by: JayArby on December 12, 2012, 02:56:35 am
Ah, perfect! I don't know how I missed that.