I have made a little particle system for a game, and it works just fine in Linux and on Mac, but in Windows, the graphics of the particles just flicker by, and might not even show up in screen shots. This also holds true for Wine.
This is what it looks like in Linux:
In OS X:
Then, in Windows, no trail of particles is left. They just flicker from the opening of the bottle, and then disappear entirely. Is this an SFML issue? A Windows issue? Because of all of these images being drawn. Not sure what to do any longer.
Well. It's the same image. The same sprite object, which is just moved using SetPosition, and gets its alpha changed using SetColor, and drawn, once for each particle, in a loop, every frame, like so:
for (unsigned int i(0); i < particles.size(); ++ i)
{
// Move the image accordingly.
image.getSFMLSprite()->SetPosition(...);
image.getSFMLSprite()->SetColor(...);
// Draw the image.
image.draw(window);
}
This loop is within a member function of a class of which the image object is a member variable. The datatype is my own
Image class, which contains an sf::Image and an sf::Sprite, and its draw() member function simply draws this internal sf::Sprite into the sf::RenderWindow * that is passed to the function.