Share via


MaterialProcessor.BuildTexture Method

Builds texture content.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Processors
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

Syntax

protected virtual ExternalReference<TextureContent> BuildTexture (
         string textureName,
         ExternalReference<TextureContent> texture,
         ContentProcessorContext context
)

Parameters

  • textureName
    The name of the texture. This should correspond to the key used to store the texture in Textures.
  • texture
    The asset to build. This should be a member of Textures.
  • context
    Context for the specified processor.

Return Value

The built texture content.

Remarks

textureName can be used to determine which processor to use. For example, if a texture is being used as a normal map, the user may not want to use the ModelTextureProcessor on it, which compresses textures.

See Also

Reference

MaterialProcessor Class
MaterialProcessor Members
Microsoft.Xna.Framework.Content.Pipeline.Processors Namespace

Platforms

Windows XP SP2, Windows Vista