visualization-tools

Home > @visualization-tools/core > IGraphicsComponent

IGraphicsComponent interface

Base graphics component.

Signature:

export interface IGraphicsComponent<TComponentRenderer extends TUnknownComponentRenderer, TUpdateArg, TEntityTraits> extends IGraphicsComponentSpecification<TComponentRenderer> 

Extends: IGraphicsComponentSpecification<TComponentRenderer>

Properties

Property Type Description
transform ITransformProvider<TUnknownComponentRenderer, TUpdateArg, TEntityTraits>  
type EGraphicsComponentType.Entity  

Methods

Method Description
initialize(componentRenderer)  
onBeforeUpdate(componentRenderer, updateArg) Invariant by entity for a given frame, called either once or entity count times before update, depending on update strategy.
update(entity, componentRenderer, updateArg) Called once per entity per frame.