Which are the cons of using only non-member functions and POD?

Posted by Miro on Game Development See other posts from Game Development or by Miro
Published on 2012-10-16T13:52:42Z Indexed on 2012/10/17 17:22 UTC
Read the original article Hit count: 342

Filed under:
|

I'm creating my own game engine. I've read these articles and this question about DOD and it was written to not use member functions and classes. I also heard some criticism to this idea.

I can write it using member functions or non-member functions it would be similar. So what are the benefits/cons of that approach or when the project grows, does any of these approaches give clearer and better manageable code?

With POD & non-member functions I don't have to make struct members public I can still use object id outside of engine like OpenGL does with all it's stuff, so It's not about encapsulation.

POD - plain old data

DOD - data oriented design

© Game Development or respective owner

Related posts about design-patterns

Related posts about dod