Radeon ProRender

rprCameraSetTransform

Sets world transform for the camera.

Regular matrix transformation in 3D space. Transpose describes the layout of a matrix in memory: true if it is stored in rows, false if it is stored in columns.

rpr_status rprCameraSetTransform( rpr_camera camera,
  rpr_bool transpose,
  rpr_float const * transform);

Parameters

Parameter Description
camera The camera to set transform for.
transpose Choose whether basis vectors for transform are in columns (false) or rows (true).
transform An array of 16  rpr_float values (the major form of storing them is in rows).

Notes

rprCameraSetTransform() is an alternative to rprCameraLookAt().

Return

Returns RPR_SUCCESS in case of success, or RPR_ERROR code if a problem was encountered.

To learn how to handle errors in AMD Radeon ProRender SDK, see Error Handling.