I've been going through threads and other useful pages like this http://realtimecollisiondetection.net/blog/?p=86 but there's something I'd like to get a confirmation on that I'm not going to do something wrong...
So how does this work in praxis...I've got my scene where I define what I want to draw and what material should be put on it...etc...
But is this already where I create the corresponding command for the render queue ?
Let's say I've defined this command and sent it (either alone or as an array of commands) to the render queue (a higher level class that processes and sorts this). For this to work don't I need to have a multiple pages long if/else branch to basically parse this information first ? How else would I translate the bitmask to their corresponding commands. E.g. I want to clear the screen, so I set my bitmask to something predefined that defines the specific action and send this command to the render queue. But now I need to process this command and see which corresponds to what.
Is this correct or is there a small thing that I'm missing that makes this a little more elegant ?