Appearance
RoyInterface / Exports / scene/RoyWireframeBatchHelper / RoyWireframeBatchHelper
Class: RoyWireframeBatchHelper
scene/RoyWireframeBatchHelper.RoyWireframeBatchHelper
Table of contents
Constructors
Properties
Methods
- destroy
- addWireframeComponent
- removeWireframeComponent
- prepareRender
- addToBatch
- removeFromBatch
- updateWireframeBatches
- getWireframeBatchCount
Constructors
constructor
• new RoyWireframeBatchHelper(): RoyWireframeBatchHelper
Returns
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
Name | Type |
---|---|
wireframeComponent | RoyWireframeComponent |
Returns
void
removeWireframeComponent
▸ removeWireframeComponent(wireframeComponent
): void
Parameters
Name | Type |
---|---|
wireframeComponent | RoyWireframeComponent |
Returns
void
prepareRender
▸ prepareRender(drawWireframe
): void
Parameters
Name | Type |
---|---|
drawWireframe | boolean |
Returns
void
addToBatch
▸ addToBatch(wireframeComponent
): RoyWireframeBatch
Parameters
Name | Type |
---|---|
wireframeComponent | RoyWireframeComponent |
Returns
removeFromBatch
▸ removeFromBatch(wireframeComponent
): void
Parameters
Name | Type |
---|---|
wireframeComponent | RoyWireframeComponent |
Returns
void
updateWireframeBatches
▸ updateWireframeBatches(drawWireframe
): void
Parameters
Name | Type |
---|---|
drawWireframe | boolean |
Returns
void
getWireframeBatchCount
▸ getWireframeBatchCount(): number
Returns
number