Best C++ containers for UI in Games.

Posted by Vijayendra on Game Development See other posts from Game Development or by Vijayendra
Published on 2011-06-26T09:27:34Z Indexed on 2011/06/26 16:31 UTC
Read the original article Hit count: 268

Filed under:
|

I am writing some UI stuff for my games in C++. Basically its a very common problem, but I dont know the best answer yet. Suppose inside my UI Library I have a view class which renders 2D/3D scene. This view can contain many subviews. I needs a container which allows me to iterate over these views fast and also insert/delete subviews. I am not sure which container is best for the job - list, vector or something else?

© Game Development or respective owner

Related posts about c++

Related posts about gui