1
Graphics / Preferred (fastest) method of getting an Image onto a RenderWindow?
« on: April 23, 2012, 09:55:42 pm »
Hello, I am giving a SFML a test run to in preparation for migrating from using SDL for my games. Right now I am getting myself familiar with all the classes and functions. Something that is crucial thing I took advantage of in SDL was being able to directly modify the pixels on the screen as well as on sprites that would be drawn to the screen almost immediately (An example where I use this is for drawing an image with a "TV static" effect, or a sky full of stars that constantly shift hue in the background)
It appears that the only class where this is possible in SFML is the sf::Image class, which apparently can't be drawn directly to an sf::RenderWindow. So would I have to copy it to an sf::Texture first, or would that be too slow to do rapidly? Is there a better method I'm not thinking of?
It appears that the only class where this is possible in SFML is the sf::Image class, which apparently can't be drawn directly to an sf::RenderWindow. So would I have to copy it to an sf::Texture first, or would that be too slow to do rapidly? Is there a better method I'm not thinking of?