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
![]()
| © 2001 Solid Graphics, All rights reserved. |
| To view this site, we require use of either Netscape Navigator 4.0 or higher or Internet Explorer 4.0 or higher. |