Radeon ProRender

rprSceneAttachShape

Attaches a mesh object or an instance to a scene.

rpr_status rprSceneAttachShape( rpr_scene scene,
  rpr_shape shape);

Parameters

Parameter Description
scene The scene to attach a mesh to.
light The mesh to attach.

Notes

Shapes in AMD Radeon ProRender can be either meshes or instances of meshes created with rprContextCreateInstance().

Mesh geometry can be imported using the helper library. The imported data will then be put through a call to rprContextCreateMesh() and this mesh can then be attached to a scene instance.

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.