Skip to main content
gamedev.net
🔒 Locked

Interface Panel

Started by Tamior Aug 25, 2005 at 2:38 PM 3 replies 550+ views
Original Post
Tamior
Tamior
'lo guys :). Now I have a following question. What would be the best way to implement an interface pannel, so that it is not in the world window. And since it doesnt need to be updated and rendered as often as the game does should I copy it's pixel area and just redisplaying it the next frame when it doesn't need updating? And also there are parts of it that need not be updated at all (i. e. its background). Generally speaking what are the main tricks of making a good interface panel (nice tutorials on the web are also welcomed)? Thanks in advance :)
iNsAn1tY
iNsAn1tY
Hi. Do you mean an interface panel like the ones in Doom III?
My opinion is a recombination and regurgitation of the opinions of those around me. I bring nothing new to the table, and as such, can be safely ignored.[ Useful things - Firefox | GLee | Boost | DevIL ]
Tamior
Tamior
No, I mean plain UI panel with stuff like lives left and the score etc.
benatkin
benatkin
Use something along the lines of MVC (Model-View-Controller).

In the setters for the number of lives and things (the model), call the code to redraw the interface panel. Also redraw on paint() or expose() (whatever terminology you use).

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.