Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Simple

Hierarchy

  • Simple

Index

Constructors

constructor

  • Creates a simple cull Note, options.dirtyTest defaults to false. Set to true for much better performance--this requires additional work to ensure displayObject.dirty is set when objects change)

    Parameters

    Returns Simple

Properties

dirtyTest

dirtyTest: boolean

options

options: SimpleOptions

Methods

add

addList

  • addList(array: DisplayObjectWithCullingArray, staticObject?: boolean): object[]
  • add an array of objects to be culled, eg: simple.addList(container.children)

    Parameters

    • array: DisplayObjectWithCullingArray
    • Optional staticObject: boolean

    Returns object[]

    array

cull

  • cull(bounds: AABB, skipUpdate?: boolean): void
  • cull the items in the list by changing the object.visible

    Parameters

    • bounds: AABB
    • Optional skipUpdate: boolean

    Returns void

query

queryCallback

remove

removeList

  • removeList(array: DisplayObjectWithCullingArray): DisplayObjectWithCullingArray
  • remove an array added by addList()

    Parameters

    • array: DisplayObjectWithCullingArray

    Returns DisplayObjectWithCullingArray

    array

stats

updateObject

updateObjects

  • updateObjects(): void
  • update the AABB for all objects automatically called from update() when calculatePIXI=true and skipUpdate=false

    Returns void

Generated using TypeDoc