muliple deep bucket sorting ?

Started by
0 comments, last by Hodgman 12 years, 6 months ago
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 ?
Advertisement
I would just use std::vector and std::sort. Put everything in the vector, then sort it into the above order.

This topic is closed to new replies.

Advertisement