Quality


Description

This optional callback serves two purposes, one of which is to set a certain quality level preset on existing render options and the other which is to return a measure of a quality level of the same. The quality levels are currently used by the render region to quickly dial levels from draft to super-fine.


Applies To

Custom Renderers


Syntax

CStatus <renderer_name>_Quality( CRef& in_context )

{ 

	... 

}

<renderer_name> is the name specified in the call to PluginRegistrar::RegisterRenderer, with any spaces converted to underscores.


Parameters

Parameter Language Type Description
in_context C++ CRef& A reference to the RendererContext object. Context::GetSource returns the Renderer.


Context Attributes

Attribute Description
Property The renderer property to set or get the quality level of.
Quality If this attribute exists in the context when the callback is called, then the callback should use this quality level to change the given renderer property to that level. If the attribute does not exist, the callback should set it to a quality level that best corresponds to the settings in the given renderer property. See siRenderQualityType for quality levels and their interpretation.


See Also