Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Determine the amount of sprites loaded

Author
Message
Helium
15
Years of Service
User Offline
Joined: 13th Oct 2008
Location:
Posted: 13th Oct 2008 19:50
Hello forums! I'm trying to determine the amount of sprites loaded in my program in order to use each of them in a loop. The solution should be quite easy, but I can't figure out what it could be. If this isn't clear enough, ask for details and I'll provide them as needed.

Sylerean Online - Sushibox Productions
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 13th Oct 2008 20:17
It's easy - keep track of them as you create them/delete them. An STL set is fairly useful for that, or you could use a map so that you can also record extra information about the sprite at the same time.

Login to post a reply

Server time is: 2024-09-30 09:34:34
Your offset time is: 2024-09-30 09:34:34