RenderWare V2.1

Previous Page Index Next Page

RwCamera *

RwTransformCamera(RwCamera *camera, RwMatrix4d *matrix,
RwCombineOperation op);

Description

Applies a transformation matrix to the camera’s current position and orientation.

Arguments

camera Pointer to the camera.

matrix Pointer to the transformation matrix.

op Combination operator.

Return Value

The argument camera if successful and NULL otherwise.

Comments

This function may be used to align a camera with a clump or a light. The following code fragment demonstrates this.

RwGetClumpLTM(Clump, RwScratchMatrix());
RwTransformCamera(Camera, RwScratchMatrix(), rwREPLACE);

See Also

RwCreateCamera()

RwGetCameraLookAt()

RwGetCameraLookRight()

RwGetCameraLookUp()

RwGetCameraPosition()

RwGetCameraLTM ()

RwGetClumpLTM()

RwGetLightLTM()

RwResetCamera()

RwSetCameraLookAt()

RwSetCameraLookUp()

RwSetCameraPosition()

RwTransformClump()

RwTransformLight()