VR-Forces 4.0.4 Class Documentation
2D Rendering

An overlay is a 2D scene that is drawn on top of a 3D scene.

The 2D scene can contain any number of the 2D primitives, which include: DtLineSegment, DtQuad, DtFilledPolygon, and DtOutlinedPolygon. The class that implements the overlay concept is the DtOverlayRenderer. The DtOverlayRenderer does the actual drawing of the graphical primitives.

To draw an overlay you must add a DtOverlayDrawable to the scene. The DtOverlayDrawable is responsible for telling overlays (instances of DtOverlayRenderer) to render themselves at the appropriate time.

The DtOverlayDrawable is told which DtOverlayRenderer it should draw. During the render phase, the DtOverlayDrawable tells the DtOverlayRenderer to render itself and the graphics primitives are then rendered.

The exampleLogo example shows how to create an overlay.

[Home]


Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)