RenderWare V2.1

Previous Page Index Next Page

RwV3d *

RwGetCameraViewOffset(RwCamera *camera, RwV3d *offset);

Description

Retrieves the view offset of the camera.

Arguments

camera Pointer to the camera.

offset Pointer to the vector to receive the view offset.

Return Value

The argument offset if successful, and NULL otherwise.

Comments

The X field of offset will be set to the offset in the direction of the camera’s "Look Right" vector, the Y field will be set to the offset in the direction "Look Up" vector, whilst the Z field will be set to CREAL(0.0).

See Also

RwResetCamera()

RwSetCameraViewOffset()