Original Post
Im just wondering a good way to render a whole game.
I don't want to start code till I know that the method im thinking of is not bad.
Lets say I have a CWorld and CTrees class each with a render() method. The render method would look something like:
render()
{
select vertex buffer
drawprimitives
}
and then in my game loop:
if( render )
{
BeginScene
World->render()
Trees->render()
EndScene
}
Is this a correct way to do the rendering?
Is there any other logic to do it?
[edited by - Enselic on January 31, 2003 10:33:44 AM]