TriLib
Search Results for

    Show / Hide Table of Contents

    Interface ITexture

    Represents a TriLib Texture.

    Inherited Members
    IObject.Name
    IObject.Used
    Namespace: TriLibCore.Interfaces
    Assembly: TriLibCore.dll
    Syntax
    public interface ITexture : IObject

    Properties

    DataStream

    Gets/Sets the embedded Texture pixel data stream, in case of embedded textures, otherwise, the value should be null.

    Declaration
    Stream DataStream { get; set; }
    Property Value
    Type Description
    Stream

    Filename

    Gets/Sets the Texture filename.

    Declaration
    string Filename { get; set; }
    Property Value
    Type Description
    string

    IsValid

    Checks if this Texture is valid.

    Declaration
    bool IsValid { get; }
    Property Value
    Type Description
    bool

    Offset

    Gets/Sets the Texture offset.

    Declaration
    Vector2 Offset { get; set; }
    Property Value
    Type Description
    Vector2

    ResolvedFilename

    Gets/Sets the full path to the file when TriLib resolves it.

    Declaration
    string ResolvedFilename { get; set; }
    Property Value
    Type Description
    string

    TextureFormat

    Gets/Sets the format of this texture.

    Declaration
    TextureFormat TextureFormat { get; set; }
    Property Value
    Type Description
    TextureFormat

    Tiling

    Gets/Sets the Texture tilling.

    Declaration
    Vector2 Tiling { get; set; }
    Property Value
    Type Description
    Vector2

    WrapModeU

    Gets/Sets Texture horizontal Wrap Mode.

    Declaration
    TextureWrapMode WrapModeU { get; set; }
    Property Value
    Type Description
    TextureWrapMode

    WrapModeV

    Gets/Sets the Texture vertical Wrap Mode.

    Declaration
    TextureWrapMode WrapModeV { get; set; }
    Property Value
    Type Description
    TextureWrapMode

    Methods

    AddTexture(ITexture)

    Adds a sub-texture to the Texture.

    Declaration
    void AddTexture(ITexture texture)
    Parameters
    Type Name Description
    ITexture texture

    The Sub-texture to be added.

    GetSubTexture(int)

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

    Declaration
    ITexture GetSubTexture(int index)
    Parameters
    Type Name Description
    int index

    The Sub-Texture index.

    Returns
    Type Description
    ITexture

    The sub-texture, if exists, otherwise, returns this instance.

    GetSubTextureCount()

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

    Declaration
    int GetSubTextureCount()
    Returns
    Type Description
    int

    The sub-textures count.

    GetWeight(int)

    Gets a sub-texture weight.

    Declaration
    float GetWeight(int index)
    Parameters
    Type Name Description
    int index

    The Sub-Texture index.

    Returns
    Type Description
    float

    The sub-texture weight.

    Extension Methods

    IObjectExtensions.TryToDispose<T>(object)
    TextureLoaders.ResolveFilename(ITexture, AssetLoaderContext)
    In this article
    Back to top Generated by DocFX