TriLib 2.2.8
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
TriLibCore.Mappers.TextureMapper Class Reference

Represents a Mapper used to load Textures using the original Texture filename or the embedded Texture data. More...

Inheritance diagram for TriLibCore.Mappers.TextureMapper:
TriLibCore.Mappers.PerFilenameTextureMapper TriLibCore.Mappers.ZipFileTextureMapper

Public Member Functions

virtual TextureLoadingContext Map (AssetLoaderContext assetLoaderContext, ITexture texture)
 
virtual void Map (TextureLoadingContext textureLoadingContext)
 Tries to retrieve a Stream to the Texture native data based on the given context.
 

Public Attributes

int CheckingOrder
 Defines the mapper priority when using other mappers in the same AssetLoaderOptions.
 

Detailed Description

Represents a Mapper used to load Textures using the original Texture filename or the embedded Texture data.

Member Function Documentation

◆ Map() [1/2]

virtual TextureLoadingContext TriLibCore.Mappers.TextureMapper.Map ( AssetLoaderContext  assetLoaderContext,
ITexture  texture 
)
virtual
Deprecated:
Tries to retrieve a Stream to the Texture native data based on the given context.
Parameters
assetLoaderContextThe Asset Loader Context reference. Asset Loader Context contains the Model loading data.
textureThe source Texture to load the Stream from.
Returns
Return the Context containing the texture data.

◆ Map() [2/2]

virtual void TriLibCore.Mappers.TextureMapper.Map ( TextureLoadingContext  textureLoadingContext)
virtual

Tries to retrieve a Stream to the Texture native data based on the given context.

Parameters
textureLoadingContextThe context containing all the Texture data.

Reimplemented in TriLibCore.Mappers.PerFilenameTextureMapper, and TriLibCore.Mappers.ZipFileTextureMapper.