RwTransformCamera(RwCamera *camera,
RwMatrix4d *matrix,
RwCombineOperation op);
Description
Applies a transformation matrix to the cameras 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
RwGetCameraLTM ()