ThreePipe
    Preparing search index...

    Interface ITexture<TE>

    interface ITexture<TE extends ITextureEventMap = ITextureEventMap> {
        _appliedMaterials?: Set<IMaterial<IMaterialEventMap>>;
        _target?: IRenderTarget;
        assetType?: "texture";
        is3DDataTexture?: boolean;
        isCanvasTexture?: boolean;
        isCompressedTexture?: boolean;
        isCubeTexture?: boolean;
        isDataTexture?: boolean;
        isTexture: true;
        isVideoTexture?: boolean;
        source: Source & {
            _canSerialize?: boolean;
            _sourceImgBuffer?: ArrayBuffer | Uint8Array<ArrayBufferLike>;
        };
        userData: ITextureUserData;
        setDirty(): void;
    }

    Type Parameters

    Hierarchy

    Index

    Properties

    _appliedMaterials?: Set<IMaterial<IMaterialEventMap>>
    _target?: IRenderTarget
    assetType?: "texture"
    is3DDataTexture?: boolean
    isCanvasTexture?: boolean
    isCompressedTexture?: boolean
    isCubeTexture?: boolean
    isDataTexture?: boolean
    isTexture: true

    Read-only flag to check if a given object is of type Texture.

    This is a constant value

    true

    isVideoTexture?: boolean
    source: Source & {
        _canSerialize?: boolean;
        _sourceImgBuffer?: ArrayBuffer | Uint8Array<ArrayBufferLike>;
    }

    The data definition of a texture. A reference to the data source can be shared across textures. This is often useful in context of spritesheets where multiple textures render the same data but with different Texture transformations.

    An object that can be used to store custom data about the texture.

    It should not hold references to functions as these will not be cloned.

    {}

    Methods