COpenGL::SetUpDirection

void SetUpDirection( const float* UpDirection );

Parameters

UpDirection  Pointer to an array of three float values. Specifies new up direction vector. The vector cannot be parallel with the current looking direction .

Remarks

Use the SetUpDirection method function to change the up direction vector. The up direction vector specifies the “head up direction” of your eye point.

If the up direction vector specification is parallel to the current looking direction, the function fails and the up direction vector remains unchanged.

The SetUpDirection method will correct internally the provided UpDirection vector to be perpendicular to the current looking direction. If the provided UpDirection vector is parallel to the current looking direction then the up direction vector remains unchanged.

The default up direction is set by object initialization to [ 0, 1, 0 ].

See Also

SetReferencePoint, GetReferencePoint, SetEyePoint, GetEyePoint, GetUpDirection , SetLookDistance, GetLookDistance, LookAt