rprContextCreateSpotLight
Creates a spot light source.
rpr_status rprContextCreateSpotLight( |
rpr_context context, |
rpr_light * light); |
Parameters
Parameter |
Description |
---|---|
context |
The context to create a light for. |
light |
A pointer to the created light object. |
Notes
Spot lights are created from a single point and have a cone shape and radial falloff of light in that cone.
Output
A pointer to a light object.
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.
Errors
Possible error codes:
RPR_ERROR_OUT_OF_VIDEO_MEMORY
RPR_ERROR_OUT_OF_SYSTEM_MEMORY