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