@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
45 lines • 1.15 kB
TypeScript
export class GridDataLayer {
/**
*
* @param {string} id
* @param {BinaryDataType} type
* @param {number} [resolution=1]
* @returns {GridDataLayer}
*/
static from(id: string, type: BinaryDataType, resolution?: number): GridDataLayer;
/**
* Unique ID to reference the layer
* @type {string}
*/
id: string;
/**
* Relationship between size and number of cells in the sampler, higher resolution means more cells in the sampler
* @type {number}
*/
resolution: number;
/**
*
* @type {Sampler2D}
*/
sampler: Sampler2D;
/**
*
* @type {Vector2}
*/
size: Vector2;
/**
*
* @param {number} x
* @param {number} y
*/
resize(x: number, y: number): void;
/**
* @readonly
* @type {boolean}
*/
readonly isGridDataLayer: boolean;
}
import { Sampler2D } from "../../../engine/graphics/texture/sampler/Sampler2D.js";
import Vector2 from "../../../core/geom/Vector2.js";
import { BinaryDataType } from "../../../core/binary/type/BinaryDataType.js";
//# sourceMappingURL=GridDataLayer.d.ts.map