XR8.GlTextureRenderer
Description
Provides a camera pipeline module that draws the camera feed to a canvas as well as extra utilities for GL drawing operations.
Functions
| Function | Description | 
|---|---|
| configure | Configures the pipeline module that draws the camera feed to the canvas. | 
| create | Creates an object for rendering from a texture to a canvas or another texture. | 
| fillTextureViewport | Convenience method for getting a Viewport struct that fills a texture or canvas from a source without distortion. This is passed to the render method of the object created by XR8.GlTextureRenderer.create() | 
| getGLctxParameters | Gets the current set of WebGL bindings so that they can be restored later. | 
| pipelineModule | Creates a pipeline module that draws the camera feed to the canvas. | 
| setGLctxParameters | Restores the WebGL bindings that were saved with XR8.GlTextureRenderer.getGLctxParameters(). | 
| setTextureProvider | Sets a provider that passes the texture to draw. | 
| setForegroundTextureProvider | Sets a provider that passes a list of foreground textures and alpha masks to draw. |