How can be data oriented programming applied for GUI system?

Posted by Miro on Game Development See other posts from Game Development or by Miro
Published on 2012-09-27T14:39:10Z Indexed on 2012/09/27 15:52 UTC
Read the original article Hit count: 256

I've just learned basics of Data oriented programming design, but I'm not very familiar with that yet. I've also read Pitfalls of Object Oriented Programming GCAP 09. It seems that data oriented programming is much better idea for games, than OOP.

I'm just creating my own GUI system and it's completely OOP. I'm thinking if is data oriented programming design applicable for structured things like GUI.

The main problem I see is that every type widget has different data, so I can hardly group them into arrays. Also every type of widget renders differently so I still need to call virtual functions.

© Game Development or respective owner

Related posts about programming

Related posts about design-patterns