VR-Vantage API Documentation
12.3 - Major Classes

The Remote Draw API uses three classes extensively when creating and modifying objects.

DtVdcVector2D is a 2D vector class that is similar in functionality to the VR-Link DtVector class - without the need to set a Z-value to 0.0. This is used in all the 2D object classes.

DtVdcColor is used to specify colors in either RGBA (Red, Green, Blue, Alpha) or HSVA (Hue, Saturation, Value, Alpha) formats. DtVdcColor also defines const values for several of the most commonly used colors. DtVdc3DAttachPoint is only used by 3D Objects, and is discussed in 12.6 - 3D Objects.

The following example creates a 2D position in the middle of the window:

DtVdcVector2D position( 0.5, 0.5 );

The following example creates a color class and sets it to red:

DtVdcColor color( 255, 0, 0, 255 );

The following example creates a color class and sets it to red using a predefined constant:

DtVdcColor color = DtVdcColor::DtVdcRed;

The following example changes the color to blue using the Hue parameter:

color.setHue( 160 );

[<< The VR-Vantage Remote Draw API] [Home] [Top of Page] [Objects >>]



Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)