UNPKG

pixi-cull

Version:

a library to visibly cull objects designed to work with pixi.js

23 lines (20 loc) 435 B
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 }