Texture processor interface for dynamic atlas management

动态图集管理的纹理处理器接口

interface ITextureProcessor {
    addTexture(texture: Texture): void;
    cleanupUnused(): void;
    onUpdate(): void;
    shouldAddToDynamicAtlas(texture: Texture): boolean;
}

实现于

方法

  • 参数

    返回 boolean

    true if should be added

    Check if texture should be added to dynamic atlas

    检查纹理是否应该添加到动态图集