Question

I'm currently developing a game with friends. We are searching for informations about design patterns for User Interface in order to implement a simple UI including: buttons, progress bar (for health, exp, mana, ...), text, views/subviews, and scroll views.

The first goal is to have something simple but working. We are not looking for patterns about making an UI loading from XML/JSON files, we just need information about the inheritance of our classes and their relationship.

While it doesn't matter while we talk about design patterns and algorithms, we develop in C++, using SFML/OpenGL 2.x for rendering.
Any additional information about implementation in C++/OpenGL are welcome :)

EDIT: I already know about the common design patterns and the MVC architecture, but I look for a far more simple alternative since our goal is not to recreate Qt or Cocoa.
My question is more about an alternative and how to organize these patterns.

Était-ce utile?

La solution

I suggest you go over this site, it has a great example from "Gang of 4" (look it up)

great web for design patterns

and there is also a great tutorial in youtube

http://www.youtube.com/user/derekbanas

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top