UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

22 lines (21 loc) 425 B
/** * Base class that implements reference counting for objects. */ export class RefCountedObject { /** @private */ private _refCount; /** * Increments the reference counter. */ incRefCount(): void; /** * Decrements the reference counter. */ decRefCount(): void; /** * Gets the current reference count. * * @type {number} */ get refCount(): number; }