1 | import { AbstractMultiResource } from './AbstractMultiResource';
|
2 | import type { ISize } from '@pixi/math';
|
3 | import type { Renderer } from '../../Renderer';
|
4 | import type { BaseTexture } from '../BaseTexture';
|
5 | import type { GLTexture } from '../GLTexture';
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export declare class ArrayResource extends AbstractMultiResource {
|
11 | |
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | constructor(source: number | Array<any>, options?: ISize);
|
19 | /**
|
20 | * Set a baseTexture by ID,
|
21 | * ArrayResource just takes resource from it, nothing more
|
22 | * @param baseTexture
|
23 | * @param index - Zero-based index of resource to set
|
24 | * @returns - Instance for chaining
|
25 | */
|
26 | addBaseTextureAt(baseTexture: BaseTexture, index: number): this;
|
27 | /**
|
28 | * Add binding
|
29 | * @param baseTexture
|
30 | */
|
31 | bind(baseTexture: BaseTexture): void;
|
32 | /**
|
33 | * Upload the resources to the GPU.
|
34 | * @param renderer
|
35 | * @param texture
|
36 | * @param glTexture
|
37 | * @returns - whether texture was uploaded
|
38 | */
|
39 | upload(renderer: Renderer, texture: BaseTexture, glTexture: GLTexture): boolean;
|
40 | }
|