VR-Forces 4.1.1 Class Documentation
9 - 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 Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)