gulp-structify
Version:
Generates WebGL-compatible Structs and StructBuffers from a template file.
16 lines (15 loc) • 352 B
TypeScript
import { TypedArray } from './typedarray';
/**
* Struct backed by a TypedArray.
*/
export declare class Struct<T extends TypedArray> {
/**
* The TypedArray backing this item.
*/
data: T;
/**
* Creates a struct backed by a TypedArray.
* @param data the backing array.
*/
constructor(data: T);
}