Class: Renderer<ResultT>
@geenee/armature.Renderer
Core generic renderer
Renderer is the core visualization part of any application. It's attached to Engine. Results of processing and captured frame are provided to renderer that updates scene, visualization and application logic according to this data. Basically, renders define two methods load() and update(). The first one is used to initialize all assets and prepare the scene e.g. set up lightning, environment map. Engine will call load() method during pipeline initialization. The second one is used to update the scene using results of video processing. This's where all the logic happens. By overriding/extending () and () you can add any custom logic, interactions, animations, post-processing effects, gesture recognition, physics, etc. to an app. Renderer is a generic abstract class defining common core interfaces.
Type parameters
Name | Description |
---|---|
ResultT | Type of processing results |
Hierarchy
-
EventEmitterT
<RendererEvents
>↳
Renderer