rprImageSetWrap
Sets wrap type for an image. This defines the behavior for a texture if the UV is outside the range of [0;1].
Note
This is DEPRECATED in the Northstar plugin. In this plug-in, the wrapping is done inside the RPR_MATERIAL_NODE_IMAGE_TEXTURE
owning the image. Example: rprMaterialNodeSetInputUByKey(materialNodeTexture, RPR_MATERIAL_INPUT_WRAP_U, RPR_IMAGE_WRAP_TYPE_REPEAT);
rpr_status rprImageSetWrap( |
rpr_image image, |
rpr_image_wrap_type type); |
Parameters
Parameter |
Description |
---|---|
image |
The image to set wrap for. |
type |
The type of wrap to set. |
Notes
See rpr_image_wrap_type for options. The default is textures repeat, but other behavior can be specified here.
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.