COpenGL::SetUnits

void SetUnits( int UnitIdentifier, float UnitsPerMeter = 1.0f );

Parameters

UnitIdentifier

Identifies units of the coordinate system. This parameter can be one of the following values :

UI_MILIMETER   Specifies milimeter as coordinate system unit.
UI_METER       Specifies meter as coordinate system unit.
UI_KILOMETER   Specifies kilometer as coordinate system unit.
UI_INCH        Specifies inch as coordinate system unit.
UI_FEET        Specifies feet as coordinate system unit.
UI_YARD        Specifies yard as coordinate system unit.
UI_MILE        Specifies mile as coordinate system unit.
UI_CUSTOM      
        
            
        
             
             
             
             
      Specifies custom coordinate system unit.
UnitsPerMeter This parameter has effect only with the UnitIdentifier set to UI_CUSTOM. Specifies the units per one meter value for custom coordinate system units (for units not available through regular UnitIdentifier values).

Remarks

Use the SetUnits method function to specify the COpenGL objectís coordinate system units. The COpenGL object uses the coordinate system unit information in the SetScale method function.

The default coordinate system unit set by object initialization is UI_METER.

See Also

GetUnits, SetScale, GetScale