class ARRenderFeatureProvider (Niantic.ARDK.Rendering.ARRenderFeatureProvider)
Overview
Base class for render state providers. Render state provider components maintain a two sets: More…
class ARRenderFeatureProvider: Niantic.ARDK.Extensions.ARConfigChanger, Niantic.ARDK.Rendering.IRenderFeatureProvider { public: // properties ArdkEventHandler<RenderFeaturesChangedArgs> ActiveFeaturesChanged; ISet<string> Features; RenderTarget? Target; // methods virtual abstract void UpdateRenderState(Material material) = 0; }; // direct descendants class ARDepthManager; class ARSemanticSegmentationManager;
Inherited Members
public: // properties bool AreFeaturesEnabled; bool CanInitialize; bool Initialized; ISet<string> Features; RenderTarget? Target; // events event ActiveFeaturesChanged(); // methods void Deinitialize(); void DisableFeatures(); void EnableFeatures(); void Initialize(); virtual abstract void ApplyARConfigurationChange(ARSessionChangesCollector.ARSessionRunProperties properties) = 0; void UpdateRenderState(Material material);
Detailed Documentation
Base class for render state providers. Render state provider components maintain a two sets:
A list of all possible render features they may be enabled
A list of the render features that are actually need to be enabled A render feature is just a shader keyword that triggers the compilation of additional code to the shader that renders the background.
Properties
ArdkEventHandler<RenderFeaturesChangedArgs> ActiveFeaturesChanged
Invoked when the provider reconfigures its active features.
ISet<string> Features
A set of all render features this provider may enable or disable.
RenderTarget? Target
The active render target of this provider.
Methods
virtual abstract void UpdateRenderState(Material material) = 0
Called when it is time to copy the current render state to the main rendering material.
Parameters:
material |
Material used to render the frame. |