rprShapeSetVisibilityFlag

Sets a visibility flag for a shape.

rpr_status rprShapeSetVisibilityFlag(

rpr_shape shape,

rpr_shape_info visibilityFlag,

rpr_bool visible);

Parameters

Parameter

Description

shape

The shape to set visibility for.

visibilityFlag

One of visibility flags.

visible

Determines if the shape is visible or not.

Notes

Visibility flags are one of:

  • RPR_SHAPE_VISIBILITY_PRIMARY_ONLY_FLAG

  • RPR_SHAPE_VISIBILITY_SHADOW

  • RPR_SHAPE_VISIBILITY_REFLECTION

  • RPR_SHAPE_VISIBILITY_REFRACTION

  • RPR_SHAPE_VISIBILITY_TRANSPARENT

  • RPR_SHAPE_VISIBILITY_DIFFUSE

  • RPR_SHAPE_VISIBILITY_GLOSSY_REFLECTION

  • RPR_SHAPE_VISIBILITY_GLOSSY_REFRACTION

  • RPR_SHAPE_VISIBILITY_LIGHT

  • RPR_SHAPE_VISIBILITY_RECEIVE_SHADOW

Setting that flag makes the shape visible to that type of rays.

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.