MaterialContent.SetTexture Method

Sets a value in the contained TextureReferenceDictionary object.

If null is passed, the value is removed.

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

protected void SetTexture (
         string key,
         ExternalReference<TextureContent> value
)

Parameters

key
Name of the key being modified.
value
Value being set.

Windows XP SP2, Windows Vista

Show: