Timeline for When entities don't draw themselves, who actually does?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 18, 2014 at 15:34 | comment | added | user1430 | You would achieve separation by making them free functions, but you still don't achieve a unified code path. It's a step in the right direction though. | |
Mar 18, 2014 at 7:58 | comment | added | futlib |
But one thing I'm wondering about: Wouldn't I get to the proper logical separation by simply turning all my entity specific render functions into free functions? Or do you think I can't call my renderer thingie renderer if I don't put something like a RenderObject in the middle?
|
|
Mar 18, 2014 at 7:56 | comment | added | futlib | Free functions sounds like a good approach - that way I can easily have class-based rendering logic and also put the logic wherever I think it belongs without adding it to the hierarchy. | |
Mar 18, 2014 at 0:51 | history | edited | user1430 | CC BY-SA 3.0 |
added 750 characters in body
|
Mar 18, 2014 at 0:46 | history | answered | user1430 | CC BY-SA 3.0 |