0 Members and 1 Guest are viewing this topic.
sf::Image Image; if (!Image.LoadFromFile("cute_image2.bmp")) return EXIT_FAILURE; Image.CreateMaskFromColor(sf::Color(0, 255, 0, 255), 0); #define NumberOfSprites 400 sf::Sprite Sprites[NumberOfSprites]; for (uint16_t index = 0; index < NumberOfSprites; index++) Sprites[index].SetImage(Image);// delete Image;// <- compiler ERROR, why? How do I delete Image???