UNPKG

852 BTypeScriptView Raw
1import { Buffer } from '../geometry/Buffer';
2import { Geometry } from '../geometry/Geometry';
3import type { Rectangle } from '@pixi/math';
4/**
5 * Helper class to create a quad with uvs like in v4
6 * @memberof PIXI
7 */
8export declare class QuadUv extends Geometry {
9 vertexBuffer: Buffer;
10 uvBuffer: Buffer;
11 /** An array of vertices. */
12 vertices: Float32Array;
13 /** The Uvs of the quad. */
14 uvs: Float32Array;
15 constructor();
16 /**
17 * Maps two Rectangle to the quad.
18 * @param targetTextureFrame - The first rectangle
19 * @param destinationFrame - The second rectangle
20 * @returns - Returns itself.
21 */
22 map(targetTextureFrame: Rectangle, destinationFrame: Rectangle): this;
23 /**
24 * Legacy upload method, just marks buffers dirty.
25 * @returns - Returns itself.
26 */
27 invalidate(): this;
28}