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

Represents a context used to process Model Textures. More...

Inheritance diagram for TriLibCore.TextureLoadingContext:
TriLibCore.Interfaces.IAssetLoaderContext TriLibCore.Interfaces.IAwaitable

Public Member Functions

 TextureLoadingContext (bool createTextureData=true)
 The TextureLoadingContext used to create/load/process the texture.
 

Public Attributes

TextureType TextureType
 Texture Type.
 
TextureDataContext TextureDataContext
 The TextureDataContext used to load this texture.
 
MaterialMapperContext MaterialMapperContext
 The MaterialMapperContext used to load this texture.
 
bool TextureProcessed
 Indicates whether the Texture has been processed.
 
int CreationBytesPerPixel
 
int CreationBitsPerChannel
 The bytes per pixel from the original image data.
 

Properties

bool Completed [get, set]
 Indicates whether this Awaitable is completed.
 
AssetLoaderContext Context [get, set]
 The Asset Loader Context reference. Asset Loader Context contains the Model loading data.
 
ITexture Texture [get, set]
 
Texture UnityTexture [get, set]
 
Stream Stream [get, set]
 
bool Has8BPC [get]
 
bool Has16BPC [get]
 
NativeArray< ushort > Data16 [get]
 The 16-bits texture raw data when the texture has a RGBA16 format.
 
NativeArray< byte > Data [get]
 The 8-bits texture raw data when the texture has a RGBA8 format.
 
bool HasAlpha [get, set]
 Does the texture contains alpha channel?
 
bool TextureLoaded [get, set]
 Indicates whether the texture was loaded.
 
int Width [get, set]
 The texture width.
 
int Height [get, set]
 The texture height.
 
int Components [get, set]
 The texture color components count. (3 for RGB, 4 for RGBA)
 
Texture OriginalUnityTexture [get, set]
 The original Unity texture generated from this texture.
 
bool TextureCreated [get, set]
 Indicates whether the texture was created.
 
- Properties inherited from TriLibCore.Interfaces.IAssetLoaderContext
AssetLoaderContext Context [get]
 Gets/Sets the Asset Loader Context reference. Asset Loader Context contains the Model loading data.
 
- Properties inherited from TriLibCore.Interfaces.IAwaitable
bool Completed [get, set]
 Indicates whether this Awaitable is completed.
 

Detailed Description

Represents a context used to process Model Textures.

Constructor & Destructor Documentation

◆ TextureLoadingContext()

TriLibCore.TextureLoadingContext.TextureLoadingContext ( bool  createTextureData = true)

The TextureLoadingContext used to create/load/process the texture.

Parameters
createTextureDataPass true when the internal texture data representation has to be created.

Property Documentation

◆ Completed

bool TriLibCore.TextureLoadingContext.Completed
getset

Indicates whether this Awaitable is completed.

Implements TriLibCore.Interfaces.IAwaitable.

◆ Context

AssetLoaderContext TriLibCore.TextureLoadingContext.Context
getset

The Asset Loader Context reference. Asset Loader Context contains the Model loading data.

Implements TriLibCore.Interfaces.IAssetLoaderContext.