DiffGeometryFactory

class DiffGeometryFactory extends BatchGeometryFactory

Summary


Properties from DiffGeometryFactory

_geometryCache

Cache of the geometries drawn in the last frame.

_geometryPipeline

The geometries already drawn this frame.

Methods from DiffGeometryFactory

Properties inherited from BatchGeometryFactory

Methods inherited from BatchGeometryFactory

void
append(targetObject: PIXI.DisplayObject, batch_: any)
PIXI.Geometry
build()
void
init(verticesBatched: number, indiciesBatched: number)
PIXI.ViewableBuffer
protected getAttributeBuffer(size: number)

Allocates an attribute buffer with sufficient capacity to hold size elements.

Uint16Array
protected getIndexBuffer(size: number)

Allocates an index buffer (Uint16Array) with sufficient capacity to hold size indices.

Public Properties


_geometryCache DiffGeometryFactory.ts:50
_geometryCache

Cache of the geometries drawn in the last frame.

_geometryPipeline DiffGeometryFactory.ts:55
_geometryPipeline

The geometries already drawn this frame.

Public Methods


release DiffGeometryFactory.ts:94
release(geom: DiffGeometry) → {void}

DiffGeometryFactory

Parameters:
Name Type Description
geom DiffGeometry
Returns:
Type Description
void

Protected Methods


diffCache DiffGeometryFactory.ts:128
protected diffCache(cache: ArrayLike<number>, data: ArrayLike<number>) → {void}

Calculates the regions different in the cached & updated versions of a buffer. The cache is expected to not be smaller than the updated data.

Parameters:
Name Type Description
cache ArrayLike<number>
data ArrayLike<number>
Returns:
Type Description
void
releaseCache DiffGeometryFactory.ts:179
protected releaseCache() → {void}

Release the geometry cache

Returns:
Type Description
void

Powered by webdoc!