Sign in to follow this  

SFML render many sprites...

Recommended Posts

I am new to SFML and was wondering if I use a renderlist and just want to render the whole list, how can I avoid call window.draw() 10 million times?


Is there some array call that one can send the whole list in one function call?




Oh and what is the correct way to setup a list to hold the many render types in SFML?


Is this correct?

std::list<sf::Drawble*> renderList;

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this