SFML community forums

Help => Graphics => Topic started by: underww on July 20, 2015, 12:21:02 pm

Title: is it ok to load texture object multiple times?
Post by: underww on July 20, 2015, 12:21:02 pm
Hello there,

I use only one sf::Texture object as a tileset at the same time.
but sometimes I need to change a tileset in game. (runtime)
in this case, can I call loadFromFile function again?
is there any drawback like waste memory? or should I delete and create the object?

Thanks.
Title: Re: is it ok to load texture object multiple times?
Post by: Laurent on July 20, 2015, 01:20:44 pm
Quote
in this case, can I call loadFromFile function again?
Yes.