Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
This method is available only when developing for Windows.
Gets a value from the Textures collection.
Syntax
'Declaration
Protected Function GetTexture ( _
key As String _
) As ExternalReference(Of TextureContent)
protected ExternalReference<TextureContent> GetTexture (
string key
)
protected:
ExternalReference<TextureContent> GetTexture(
String key
)
Parameters
- key
Type: String
Key of the texture being retrieved.
Return Value
Type: ExternalReference<TextureContent>
Reference to a texture from the collection.
Requirements
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
See Also
Reference
MaterialContent Class
MaterialContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace
Platforms
Windows 7, Windows Vista, Windows XP