Which of these choices is the better design for drawing objects?

Posted by Adir on Stack Overflow See other posts from Stack Overflow or by Adir
Published on 2010-04-02T13:29:17Z Indexed on 2010/04/02 13:53 UTC
Read the original article Hit count: 159

Filed under:
|
|

What would be a better parctice, writing the drawing method inside the GameObject class or in the Game class?

GameObject obj = new GameObject();
obj.Draw();

Or

GameObject obj = new GameObject();
DrawGameObject(obj);

© Stack Overflow or respective owner

Related posts about XNA

Related posts about drawing