TriLib 2.2.8
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
TriLibCore.Interfaces.ITexture Interface Reference

Represents a TriLib Texture. More...

Inheritance diagram for TriLibCore.Interfaces.ITexture:
TriLibCore.Interfaces.IObject

Public Member Functions

ITexture GetSubTexture (int index)
 Gets a sub-texture, in case of layered Textures.
 
int GetSubTextureCount ()
 Gets the sub-textures count. (Zero in case of a non-layered Texture)
 
float GetWeight (int index)
 Gets a sub-texture weight.
 
void AddTexture (ITexture texture)
 Adds a sub-texture to the Texture.
 

Properties

byte[] Data [get, set]
 
Stream DataStream [get, set]
 Gets/Sets the Texture raw pixel data, in case of embedded textures, otherwise, should contain a null value.
 
string Filename [get, set]
 Gets/Sets the Texture filename.
 
TextureWrapMode WrapModeU [get, set]
 Gets/Sets Texture horizontal Wrap Mode.
 
TextureWrapMode WrapModeV [get, set]
 Gets/Sets the Texture vertical Wrap Mode.
 
Vector2 Tiling [get, set]
 Gets/Sets the Texture tilling.
 
Vector2 Offset [get, set]
 Gets/Sets the Texture offset.
 
int TextureId [get, set]
 Gets/Sets the identifier used to identify the Texture in case two Textures uses the same filename, but have different settings.
 
string ResolvedFilename [get, set]
 Gets/Sets the full path to the file when TriLib resolves it.
 
bool IsValid [get]
 Checks if this Texture is valid.
 
General.TextureFormat TextureFormat [get, set]
 Gets/Sets the format of this texture.
 
- Properties inherited from TriLibCore.Interfaces.IObject
string Name [get, set]
 Gets/Sets the Object name.
 
bool Used [get, set]
 Gets/Sets the flag indicating whether this object used somewhere.
 

Detailed Description

Represents a TriLib Texture.

Member Function Documentation

◆ AddTexture()

void TriLibCore.Interfaces.ITexture.AddTexture ( ITexture  texture)

Adds a sub-texture to the Texture.

Parameters
textureThe Sub-texture to be added.

◆ GetSubTexture()

ITexture TriLibCore.Interfaces.ITexture.GetSubTexture ( int  index)

Gets a sub-texture, in case of layered Textures.

Parameters
indexThe Sub-Texture index.
Returns
The sub-texture, if exists, otherwise, returns this instance.

◆ GetSubTextureCount()

int TriLibCore.Interfaces.ITexture.GetSubTextureCount ( )

Gets the sub-textures count. (Zero in case of a non-layered Texture)

Returns
The sub-textures count.

◆ GetWeight()

float TriLibCore.Interfaces.ITexture.GetWeight ( int  index)

Gets a sub-texture weight.

Parameters
indexThe Sub-Texture index.
Returns
The sub-texture weight.

Property Documentation

◆ Data

byte [] TriLibCore.Interfaces.ITexture.Data
getset
Deprecated:
Gets/Sets the Texture raw pixel data, in case of embedded textures, otherwise, should contain a null value.