PDA

View Full Version : Class Reference



fladur
01-13-2010, 06:28 PM
I'm wondering if there is any class reference documentation i have been missing out, i mean, i have been trying to create a hud, but cant find documentation for the HUD class, the members that are owned by HUD, and when are they called?

Thanks in advance

immortius
01-13-2010, 06:50 PM
The HUD class is fairly well commented, but to cut to the important bit:

Once per frame (on non-dedicated servers) the engine calls PostRender() on the HUD. During the lifespan of this function call (and thus any functions PostRender() calls - i.e. DrawHud()) the canvas member can be used to draw to the screen. Typically in a subclass you would override DrawHud() to draw your HUD.