vtlib library
Public Member Functions | List of all members
vtHUD Class Reference
Inheritance diagram for vtHUD:
Inheritance graph
[legend]

Public Member Functions

 vtHUD (bool bPixelCoords=true)
 
- Public Member Functions inherited from NodeExtension
void SetEnabled (bool bOn)
 
bool GetEnabled () const
 
void SetCastShadow (bool b)
 Set this node to cast a shadow, if it is under a vtShadow node. Default is false.
 
bool GetCastShadow ()
 Get whether this node casts a shadow.
 
void GetBoundSphere (FSphere &sphere, bool bGlobal=false)
 Get the Bounding Sphere of the node.
 

Detailed Description

A HUD ("heads-up display") is a group whose whose children are transformed to be drawn in window coordinates, rather than world coordinates.

Constructor & Destructor Documentation

vtHUD::vtHUD ( bool  bPixelCoords = true)

Create a HUD node. A HUD ("heads-up display") is a group whose whose children are transformed to be drawn in window coordinates, rather than world coordinates.

You should only ever create one HUD node in your scenegraph.

Parameters
bPixelCoordsIf true, the child transforms should be interpreted as pixel coordinates, from (0,0) in the lower-left of the viewpoint. Otherwise, they are considered in normalized window coordinates, from (0,0) in the lower-left to (1,1) in the upper right.