Hello my friends.
I am new to SFML.
Is there faster way to load one image to 16 part than this:
for(int i=0;i<4;i++)
for(int j=0;j<4;j++)
{
Texture1[i][j].loadFromFile("test.jpg",sf::IntRect(i*60,j*60,60,60));
Sprite1[i][j].setTexture(Texture1[i][j]);
Sprite1[i][j].setPosition(i*60,j*60);
}
my way is so slow!