TriLib 2.2.8
|
Represents a TriLib Texture. More...
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. | |
Represents a TriLib Texture.
void TriLibCore.Interfaces.ITexture.AddTexture | ( | ITexture | texture | ) |
Adds a sub-texture to the Texture.
texture | The Sub-texture to be added. |
ITexture TriLibCore.Interfaces.ITexture.GetSubTexture | ( | int | index | ) |
Gets a sub-texture, in case of layered Textures.
index | The Sub-Texture index. |
int TriLibCore.Interfaces.ITexture.GetSubTextureCount | ( | ) |
Gets the sub-textures count. (Zero in case of a non-layered Texture)
float TriLibCore.Interfaces.ITexture.GetWeight | ( | int | index | ) |
Gets a sub-texture weight.
index | The Sub-Texture index. |
|
getset |
null
value.