Skip to content

@orillusion/core


Class: OutlinePostData ​

Defined in: src/io/OutlinePostData.ts:22

Holds the per-slot outline data consumed by the outline post-process, grouping highlighted entities into a fixed set of colored slots.

Constructors ​

Constructor ​

new OutlinePostData(groupCount?): OutlinePostData

Defined in: src/io/OutlinePostData.ts:34

Parameters ​

groupCount? ​

number = 8

Returns ​

OutlinePostData

Properties ​

SlotCount ​

readonly SlotCount: number = 8

Defined in: src/io/OutlinePostData.ts:25

Number of color slots (capped at 8).


MaxEntities ​

readonly MaxEntities: number = 16

Defined in: src/io/OutlinePostData.ts:27

Maximum entities per slot.


defaultColor ​

readonly defaultColor: Color

Defined in: src/io/OutlinePostData.ts:29

Default outline color used when a slot is cleared.

Methods ​

clear() ​

clear(): void

Defined in: src/io/OutlinePostData.ts:45

Reset every slot to the default color and empty its entity list.

Returns ​

void


clearAt() ​

clearAt(slotIndex): this

Defined in: src/io/OutlinePostData.ts:52

Reset a single slot to the default color and empty its entity list.

Parameters ​

slotIndex ​

number

Returns ​

this


fillDataAt() ​

fillDataAt(slot, indexList, color): this

Defined in: src/io/OutlinePostData.ts:62

Populate a slot with the given entity indices and outline color.

Parameters ​

slot ​

number

indexList ​

number[]

color ​

Color

Returns ​

this


fetchData() ​

fetchData(target): this

Defined in: src/io/OutlinePostData.ts:77

Copy the dirty flag and slots into the target, then clear the dirty flag.

Parameters ​

target ​
dirty ​

boolean

slots ​

OutlinePostSlot[]

Returns ​

this