I want to print all images from a folder.
I read it all with a function that is not really important in this problem imo
I have something like
image.gif
image2.gif
etc etc
so then i create as many objects of a class that looks similar to the one i posted before, as many images there are
then in a loop i set the parameters of the somesprite like size etc.
and then i use the loadtxt function, to load the sprite with texture
then there is a piece of unrelated code
at the end of program i display all of loaded images in positions set before in a loop
all loops mentioned above display the images depending on the count of the images gathered at the loading process, so the display looks something like
window display someclass[i].somesprite
where i is the counter that counts towards the number of all images
i hope the explanation is clear, if it is not ill just post code here