1 | import { Resource } from './Resource';
|
2 | import type { Renderer } from '../../Renderer';
|
3 | import type { BaseTexture, ImageSource } from '../BaseTexture';
|
4 | import type { GLTexture } from '../GLTexture';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | export declare class BaseImageResource extends Resource {
|
10 | |
11 |
|
12 |
|
13 |
|
14 |
|
15 | source: ImageSource;
|
16 | |
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | noSubImage: boolean;
|
23 | |
24 |
|
25 |
|
26 | constructor(source: ImageSource);
|
27 | /**
|
28 | * Set cross origin based detecting the url and the crossorigin
|
29 | * @param element - Element to apply crossOrigin
|
30 | * @param url - URL to check
|
31 | * @param crossorigin - Cross origin value to use
|
32 | */
|
33 | static crossOrigin(element: HTMLImageElement | HTMLVideoElement, url: string, crossorigin?: boolean | string): void;
|
34 | /**
|
35 | * Upload the texture to the GPU.
|
36 | * @param renderer - Upload to the renderer
|
37 | * @param baseTexture - Reference to parent texture
|
38 | * @param glTexture
|
39 | * @param {PIXI.ImageSourcee} [source] - (optional)
|
40 | * @returns - true is success
|
41 | */
|
42 | upload(renderer: Renderer, baseTexture: BaseTexture, glTexture: GLTexture, source?: ImageSource): boolean;
|
43 | |
44 |
|
45 |
|
46 |
|
47 | update(): void;
|
48 |
|
49 | dispose(): void;
|
50 | }
|