Let's assumeAssuming you have some classes like Player, Enemy, Map and Tile.
The first approach to structuring rendering code would be to give each a render() method and let the thingsit draw themself, e.g.itself:
void render(){
player.draw();
enemy.draw();
// etc.
}
But considering the Model-View-Controller perspective, that doesn't feels rightwrong... the nextAnother idea would be to make a class Renderer class, but then I wonder how you give the Renderer information what to draw, so how to approach it.
Which one should I choose and why?