pixi-cull
Version:
a library to visibly cull objects designed to work with pixi.js
21 lines (20 loc) • 447 B
TypeScript
import * as PIXI from 'pixi.js';
export interface AABB {
x: number;
y: number;
width: number;
height: number;
}
export interface DisplayObjectSpatial {
xStart?: number;
yStart?: number;
xEnd?: number;
yEnd?: number;
hashes: string[];
}
export interface DisplayObjectWithCulling extends PIXI.DisplayObject {
staticObject?: boolean;
AABB?: AABB;
dirty?: boolean;
spatial?: DisplayObjectSpatial;
}