UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

98 lines 2.29 kB
export class AttributeDataTexture { /** * * @return {AttributeDataTexture} * @param {AttributeSpec} spec * @param {number} column_count * @param {number} slot_width */ static from(spec: AttributeSpec, column_count: number, slot_width: number): AttributeDataTexture; /** * * @param {AttributeSpec} spec * @param {number} column_count * @param {number} slot_width number of data points stored per slot */ constructor(spec: AttributeSpec, column_count: number, slot_width: number); /** * * @type {AttributeSpec} * @private */ private __spec; /** * In slots * @type {number} * @private */ private __capacity; /** * How many patches are written per texture row * @type {number} * @private */ private __column_count; /** * * @type {DataTexture|null} * @private */ private __texture; /** * Number of data points stored per slot * @type {number} * @private */ private __slot_width; /** * * @return {AttributeSpec} */ get spec(): AttributeSpec; clear(): void; computeSlotSize(): number; computeSlotWidth(): number; /** * * @param {number} slot_count */ resize(slot_count: number): void; build(): void; /** * * @param {number} slot * @param {number[]} indices * @param {number[]} source * @returns {boolean} */ is_slot_data_equal(slot: number, indices: number[], source: number[]): boolean; /** * * @param {number} slot * @param {number[]} indices triangle indices (index buffer) * @param {number[]} source vertex data */ write_slot_from_indexed(slot: number, indices: number[], source: number[]): void; /** * * @param {number} index */ zero_fill_slot(index: number): void; /** * * @return {Uint8Array|Float32Array} */ get data(): Uint8Array | Float32Array; /** * * @return {DataTexture} */ get texture(): DataTexture; /** * * @return {number} */ estimateByteSize(): number; } import { DataTexture } from "three"; //# sourceMappingURL=AttributeDataTexture.d.ts.map