Search Results for

    Show / Hide Table of Contents

    Class TextureAssetHelper

    The texture asset helper class.

    Inheritance
    object
    TextureAssetHelper
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Assets
    Assembly: Evergine.Assets.dll
    Syntax
    public class TextureAssetHelper

    Methods

    FillDataPartFromImage(Image<Rgba32>, TextureDataPart, bool)

    Fills the data part from ImageSharp image.

    Declaration
    public static void FillDataPartFromImage(Image<Rgba32> image, TextureDataPart dataPart, bool premultiplyAlpha)
    Parameters
    Type Name Description
    Image<Rgba32> image

    The image.

    TextureDataPart dataPart

    The data part.

    bool premultiplyAlpha

    Premultiply the alpha.

    FillDataPartFromImage(Image<Rgba32>, TextureDataPart, int, int, bool)

    Fills the data part from ImageSharp image.

    Declaration
    public static void FillDataPartFromImage(Image<Rgba32> image, TextureDataPart dataPart, int textureIndex, int mipmapIndex, bool premultiplyAlpha)
    Parameters
    Type Name Description
    Image<Rgba32> image

    The image.

    TextureDataPart dataPart

    The data part.

    int textureIndex

    Index of the texture.

    int mipmapIndex

    Index of the mipmap.

    bool premultiplyAlpha

    Premultiply the alpha.

    PremultiplyAlpha(ref Span<Rgba32>)

    Premultiplies the alpha of the texture.

    Declaration
    public static void PremultiplyAlpha(ref Span<Rgba32> pixels)
    Parameters
    Type Name Description
    Span<Rgba32> pixels

    The pixels of the texture.

    TextureDataFromAsset(TextureMetaFile, TextureInfoPart)

    Generates the TextureDataPart object from a texture meta file and a textureInfo.

    Declaration
    public static TextureDataPart TextureDataFromAsset(TextureMetaFile textureMeta, TextureInfoPart outTexInfo)
    Parameters
    Type Name Description
    TextureMetaFile textureMeta

    The texture metafile.

    TextureInfoPart outTexInfo

    The texture info part.

    Returns
    Type Description
    TextureDataPart

    The result TextureDataPart object.

    TextureInfoFromAsset(TextureMetaFile, TextureProfile)

    Gets an exported TextureInfo part from an asset.

    Declaration
    public static TextureInfoPart TextureInfoFromAsset(TextureMetaFile texture, TextureProfile profile)
    Parameters
    Type Name Description
    TextureMetaFile texture

    The texture metafile.

    TextureProfile profile

    The desired profile.

    Returns
    Type Description
    TextureInfoPart

    The result texture info part from the asset.

    TextureInfoFromAsset(TextureMetaFile, string)

    Gets an exported TextureInfo part from an asset.

    Declaration
    public static TextureInfoPart TextureInfoFromAsset(TextureMetaFile texture, string profileName)
    Parameters
    Type Name Description
    TextureMetaFile texture

    The texture metafile.

    string profileName

    The desired profile name.

    Returns
    Type Description
    TextureInfoPart

    The result texture info part from the asset.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX