| DRModelProcessorOnBuildMaterial Method |
Called by the framework when a material asset needs to be built.
Namespace: DigitalRune.Graphics.Content.PipelineAssembly: DigitalRune.Graphics.Content.Pipeline (in DigitalRune.Graphics.Content.Pipeline.dll) Version: 1.2.0.0 (1.2.0.14454)
Syntax protected virtual ExternalReference<DRMaterialContent> OnBuildMaterial(
ExternalReference<DRMaterialContent> material,
ContentProcessorContext context
)
Protected Overridable Function OnBuildMaterial (
material As ExternalReference(Of DRMaterialContent),
context As ContentProcessorContext
) As ExternalReference(Of DRMaterialContent)
protected:
virtual ExternalReference<DRMaterialContent^>^ OnBuildMaterial(
ExternalReference<DRMaterialContent^>^ material,
ContentProcessorContext^ context
)
abstract OnBuildMaterial :
material : ExternalReference<DRMaterialContent> *
context : ContentProcessorContext -> ExternalReference<DRMaterialContent>
override OnBuildMaterial :
material : ExternalReference<DRMaterialContent> *
context : ContentProcessorContext -> ExternalReference<DRMaterialContent>
Parameters
- material
- Type: ExternalReferenceDRMaterialContent
The material asset. - context
- Type: ContentProcessorContext
The context of this processor.
Return Value
Type:
ExternalReferenceDRMaterialContentA reference to the processed material.
Remarks
This method is called when the model uses a material defined in an XML file.
See Also