Search Results for

    Show / Hide Table of Contents

    Class ITextureOwner

    Interface for objects that can manage streamable texture

    Inheritance
    ITextureOwner
    Assembly: FlaxEngine.dll
    File: Engine/Graphics/Textures/ITextureOwner.h
    Syntax
    public class ITextureOwner

    Methods

    GetMipData(int32 mipIndex, BytesContainer& data)

    Gets texture mip map data. May fail if not data requested. See RequestMipDataAsync.

    Declaration
    public virtual void GetMipData(int32 mipIndex, BytesContainer& data) const = 0
    Parameters
    int32 mipIndex

    Mip map index

    BytesContainer data

    Result data

    GetMipDataCustomPitch(int32 mipIndex, uint32& rowPitch, uint32& slicePitch)

    Gets texture mip map data row and slice pitch. Cna be used to override the default values.

    Declaration
    public virtual bool GetMipDataCustomPitch(int32 mipIndex, uint32& rowPitch, uint32& slicePitch) const
    Parameters
    int32 mipIndex

    Mip map index

    uint32 rowPitch

    Data row pitch (in bytes).

    uint32 slicePitch

    Data slice pitch (in bytes).

    Returns
    bool

    True if has a custom row/slice pitch values, otherwise false (to use default values).

    GetMipDataWithLoading(int32 mipIndex, BytesContainer& data)

    Gets texture mip map data. Performs loading if data is not in memory (may stall the callee thread).

    Declaration
    public virtual void GetMipDataWithLoading(int32 mipIndex, BytesContainer& data) const
    Parameters
    int32 mipIndex

    Mip map index

    BytesContainer data

    Result data

    GetOwnerLocker()

    Gets the texture owner mutex used to synchronize texture logic.

    Declaration
    public virtual CriticalSection GetOwnerLocker() const = 0
    Returns
    CriticalSection

    LockData()

    Prepares texture data. May lock data chunks to be keep in cache for a while.

    Declaration
    public virtual FlaxStorage::LockData LockData() = 0
    Returns
    FlaxStorage::LockData

    RequestMipDataAsync(int32 mipIndex)

    Get texture mip map data

    Declaration
    public virtual Task* RequestMipDataAsync(int32 mipIndex) = 0
    Parameters
    int32 mipIndex

    Mip map index

    Returns
    Task

    Task that will get asset data (may be null if data already loaded).

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat