UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

39 lines (33 loc) 639 B
export class VirtualTextureTile { /** * * @type {number} */ finger_print = 0; /** * * @type {number} */ last_used_time = 0; /** * Currently occupied page slot, only valid when page is resident * @type {number} */ page_slot = -1; /** * * @type {Sampler2D|null} */ data = null; /** * * @param {VirtualTextureTile} other * @returns {boolean} */ equals(other) { return this.finger_print === other.finger_print; } hash() { return this.finger_print; } }