Skip to content

RoyInterface / Exports / scene/RoyWireframeBatchHelper / RoyWireframeBatchHelper

Class: RoyWireframeBatchHelper

scene/RoyWireframeBatchHelper.RoyWireframeBatchHelper

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new RoyWireframeBatchHelper(): RoyWireframeBatchHelper

Returns

RoyWireframeBatchHelper

Properties

m_toAddWireframeComponentMap

Private m_toAddWireframeComponentMap: Map<number, RoyWireframeComponent>


m_wireframeBatchMap

Private m_wireframeBatchMap: Map<number, RoyWireframeBatch>

Methods

destroy

destroy(): void

Returns

void


addWireframeComponent

addWireframeComponent(wireframeComponent): void

Parameters

NameType
wireframeComponentRoyWireframeComponent

Returns

void


removeWireframeComponent

removeWireframeComponent(wireframeComponent): void

Parameters

NameType
wireframeComponentRoyWireframeComponent

Returns

void


prepareRender

prepareRender(drawWireframe): void

Parameters

NameType
drawWireframeboolean

Returns

void


addToBatch

addToBatch(wireframeComponent): RoyWireframeBatch

Parameters

NameType
wireframeComponentRoyWireframeComponent

Returns

RoyWireframeBatch


removeFromBatch

removeFromBatch(wireframeComponent): void

Parameters

NameType
wireframeComponentRoyWireframeComponent

Returns

void


updateWireframeBatches

updateWireframeBatches(drawWireframe): void

Parameters

NameType
drawWireframeboolean

Returns

void


getWireframeBatchCount

getWireframeBatchCount(): number

Returns

number