Jump to content
  • Advertisement
Sign in to follow this  
thedodgeruk

muliple deep bucket sorting ?

This topic is 2534 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i have entitys which i would like sorting and then apply differt funtons to each level

i.e

i have entitys , would like to bucket sort them ,by effect file shader then mesh
so i would end up like this

loop every effect
{
apply effect data
loop every shader
{
aplly shader info
loop every model
{
apply local model info
render
}
}
}



what would be the best way to do this , i thought a map , or a multimap but they dont go far enough
what way would i need ?

Share this post


Link to post
Share on other sites
Advertisement
I would just use std::vector and std::sort. Put everything in the vector, then sort it into the above order.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!