@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
55 lines • 1.46 kB
TypeScript
export class EmitterAttributeData {
/**
*
* @param {ParticleSpecification} spec
* @param {GLDataBuffer} data
* @param {number} count
* @returns {EmitterAttributeData}
*/
static from(spec: ParticleSpecification, data: GLDataBuffer, count: number): EmitterAttributeData;
/**
*
* @type {ParticleSpecification}
*/
spec: ParticleSpecification;
/**
*
* @type {GLDataBuffer}
*/
data: GLDataBuffer;
/**
* Number of particles
* @type {number}
*/
count: number;
/**
*
* @param {number} attribute_index
* @param {number} index
* @param {number} x
* @param {number} y
* @param {number} z
*/
writeAttributeVector3(attribute_index: number, index: number, x: number, y: number, z: number): void;
/**
*
* @param {number} attribute_index
* @param {number} index
* @returns {number}
*/
readAttributeFloat(attribute_index: number, index: number): number;
/**
*
* @param {number} attribute_index
* @param {number} index
* @param {number} destination
* @param {number} destination_offset
*/
readAttributeVector3(attribute_index: number, index: number, destination: number, destination_offset: number): void;
/**
* @readonly
* @type {boolean}
*/
readonly isEmitterAttributeData: boolean;
}
//# sourceMappingURL=EmitterAttributeData.d.ts.map