Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sadebegam

Pages: [1]
1
Graphics / Re: image to multipart texture
« on: January 12, 2016, 10:57:28 pm »
thank You too!
I try your way soon!

2
Graphics / Re: image to multipart texture
« on: January 12, 2016, 10:42:21 pm »
 reading from ram is so faster
thank You!

3
Graphics / image to multipart texture
« on: January 12, 2016, 10:20:28 pm »
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!

Pages: [1]