WoW:How the user interface is rendered: Difference between revisions

m
Line 1: Line 1:
== Page Composition ==
{{uitech}}
 


(Posted in the WoW UI Forum by Slouken on 2005-05-26)
(Posted in the WoW UI Forum by Slouken on 2005-05-26)
== Page Composition ==


Well, an understanding of how the UI is rendered would help:
Well, an understanding of how the UI is rendered would help:
Line 25: Line 29:
Each time the screen is re-rendered (i.e. each Frame, in the FPS sense), the process runs as follows:
Each time the screen is re-rendered (i.e. each Frame, in the FPS sense), the process runs as follows:


1. Handle pending UI Events, Key presses, Mouse Clicks.
# Handle pending UI Events, Key presses, Mouse Clicks.
2. Execute OnUpdate on each visible Frame with a handler.
# Execute OnUpdate on each visible Frame with a handler.
3. Repaint UI over the top of the game world.
# Repaint UI over the top of the game world.


The most important part of this is that OnUpdates happen right before painting the UI, so you can defer making rendering decisions until then without any visible impact.
The most important part of this is that OnUpdates happen right before painting the UI, so you can defer making rendering decisions until then without any visible impact.
[[Category:UI Technical Details]]
Anonymous user