| DRTextureImporterImport Method |
Called by the XNA Framework when importing an texture file to be used as a game asset. This
is the method called by the XNA Framework when an asset is to be imported into an object
that can be recognized by the Content Pipeline.
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 public override TextureContent Import(
string filename,
ContentImporterContext context
)
Public Overrides Function Import (
filename As String,
context As ContentImporterContext
) As TextureContent
public:
virtual TextureContent^ Import(
String^ filename,
ContentImporterContext^ context
) override
abstract Import :
filename : string *
context : ContentImporterContext -> TextureContent
override Import :
filename : string *
context : ContentImporterContext -> TextureContent
Parameters
- filename
- Type: SystemString
Name of a game asset file. - context
- Type: ContentImporterContext
Contains information for importing a game asset, such as a logger interface.
Return Value
Type:
TextureContentResulting game asset.
See Also