SFML community forums

Help => Graphics => Topic started by: moistweb on June 06, 2014, 03:22:06 am

Title: Append multiple textures to a single sprite ?
Post by: moistweb on June 06, 2014, 03:22:06 am
Hello folks,
I'm currently designing the Background class for Skywalk, and so I thought of a solution to achieve a good background management. This solution requires to append multiple loaded textures into one single sprites, but I just can't think of a solution, the only method relating textures to sprites that I know of is setTexture() ( and setTextureRect() of course). Can someone help me figure this thing out such that when I load a texture, I can add it to the end of the sprite  ( i.e. without modifying previously added textures) ?
Title: AW: Append multiple textures to a single sprite ?
Post by: eXpl0it3r on June 06, 2014, 07:54:59 am
A sprite can't have multiple textures, but it's really easy to just use yet another sprite for it.
Title: Re: Append multiple textures to a single sprite ?
Post by: moistweb on June 06, 2014, 11:51:36 pm
Okay, that's what I will be using I guess, thanks for the respond ^^