MaterialContent.GetTexture Method

Gets a value from the Textures collection.

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

Syntax

protected ExternalReference<TextureContent> GetTexture (
         string key
)

Parameters

  • key
    Key of the texture being retrieved.

Return Value

Reference to a texture from the collection.

See Also

Reference

MaterialContent Class
MaterialContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows XP SP2, Windows Vista