1 | import { TYPES } from '@pixi/constants';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | export declare class Attribute {
|
10 | buffer: number;
|
11 | size: number;
|
12 | normalized: boolean;
|
13 | type: TYPES;
|
14 | stride: number;
|
15 | start: number;
|
16 | instance: boolean;
|
17 | |
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | constructor(buffer: number, size?: number, normalized?: boolean, type?: TYPES, stride?: number, start?: number, instance?: boolean);
|
27 | /** Destroys the Attribute. */
|
28 | destroy(): void;
|
29 | /**
|
30 | * Helper function that creates an Attribute based on the information provided
|
31 | * @param buffer - the id of the buffer that this attribute will look for
|
32 | * @param [size=0] - the size of the attribute. If you have 2 floats per vertex (eg position x and y) this would be 2
|
33 | * @param [normalized=false] - should the data be normalized.
|
34 | * @param [type=PIXI.TYPES.FLOAT] - what type of number is the attribute. Check {@link PIXI.TYPES} to see the ones available
|
35 | * @param [stride=0] - How far apart, in bytes, the start of each value is. (used for interleaving data)
|
36 | * @returns - A new {@link PIXI.Attribute} based on the information provided
|
37 | */
|
38 | static from(buffer: number, size?: number, normalized?: boolean, type?: TYPES, stride?: number): Attribute;
|
39 | }
|