EXT_texture_avif.d.ts 1.0 KB

1234567891011121314151617181920212223242526
  1. import type { IGLTFLoaderExtension } from "../glTFLoaderExtension";
  2. import { GLTFLoader } from "../glTFLoader";
  3. import type { ITexture } from "../glTFLoaderInterfaces";
  4. import type { BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture.js";
  5. import type { Nullable } from "@babylonjs/core/types.js";
  6. /**
  7. * [glTF PR](https://github.com/KhronosGroup/glTF/pull/2235)
  8. * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_texture_avif/README.md)
  9. */
  10. export declare class EXT_texture_avif implements IGLTFLoaderExtension {
  11. /** The name of this extension. */
  12. readonly name = "EXT_texture_avif";
  13. /** Defines whether this extension is enabled. */
  14. enabled: boolean;
  15. private _loader;
  16. /**
  17. * @internal
  18. */
  19. constructor(loader: GLTFLoader);
  20. /** @internal */
  21. dispose(): void;
  22. /**
  23. * @internal
  24. */
  25. _loadTextureAsync(context: string, texture: ITexture, assign: (babylonTexture: BaseTexture) => void): Nullable<Promise<BaseTexture>>;
  26. }