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_FLAGRPR_CURVE_VISIBILITY_SHADOWRPR_CURVE_VISIBILITY_REFLECTIONRPR_CURVE_VISIBILITY_REFRACTIONRPR_CURVE_VISIBILITY_TRANSPARENTRPR_CURVE_VISIBILITY_DIFFUSERPR_CURVE_VISIBILITY_GLOSSY_REFLECTIONRPR_CURVE_VISIBILITY_GLOSSY_REFRACTIONRPR_CURVE_VISIBILITY_LIGHTRPR_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.