rprCurveSetVisibilityFlag

Sets a visibility flag for a curve.

rpr_status rprCurveSetVisibilityFlag(

rpr_curve curve,

rpr_curve_parameter visibilityFlag,

rpr_bool visible);

Parameters

Parameter

Description

curve

The curve 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_CURVE_VISIBILITY_PRIMARY_ONLY_FLAG

  • RPR_CURVE_VISIBILITY_SHADOW

  • RPR_CURVE_VISIBILITY_REFLECTION

  • RPR_CURVE_VISIBILITY_REFRACTION

  • RPR_CURVE_VISIBILITY_TRANSPARENT

  • RPR_CURVE_VISIBILITY_DIFFUSE

  • RPR_CURVE_VISIBILITY_GLOSSY_REFLECTION

  • RPR_CURVE_VISIBILITY_GLOSSY_REFRACTION

  • RPR_CURVE_VISIBILITY_LIGHT

  • RPR_CURVE_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.