Sign in to follow this  
thedodgeruk

muliple deep bucket sorting ?

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
[code]
loop every effect
{
apply effect data
loop every shader
{
aplly shader info
loop every model
{
apply local model info
render
}
}
}
[/code]


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

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