SFML community forums

General => Feature requests => Topic started by: simmerd on September 20, 2009, 07:04:05 pm

Title: Wrap mode on sprites
Post by: simmerd on September 20, 2009, 07:04:05 pm
Sprites are a great feature, but I want to use them for quick gui backgrounds, but I can't b/c the sprite texturing mode is set to clamp - which totally makes sense for a normal sprite.

But, it would be cool if there were a setting on the sprite to set the clamp mode to wrap/repeat.

Yes, I know I could use OpenGL... ;)
Title: Wrap mode on sprites
Post by: Laurent on September 21, 2009, 08:48:13 am
It's impossible because textures can be padded with white pixels (for GPUs not supporting NPOT dimensions).

Quote
Yes, I know I could use OpenGL...

You can also clone/repeat your sprite ;)
Title: Wrap mode on sprites
Post by: Tank on September 21, 2009, 11:41:24 am
Quote
You can also clone/repeat your sprite ;)

Which will be a bit hakish because we don't have clipping, yet. *shove* ;)
Title: Wrap mode on sprites
Post by: Laurent on September 21, 2009, 02:47:24 pm
But you have SetSubRect :)
Title: ok, request rescinded
Post by: simmerd on September 21, 2009, 04:01:33 pm
Good point, I will repeat the sprite instead.. thanks...