Classes | Methods |
---|---|
Data loading strategies for different WebGL versions.
Should you have your own data format, change/re-define these
to correctly load the textures to GPU, based on the WebGL version used.
The processing accepts arrays of images to feed to the shader built from configuration.
This implementation supports data as Image or Canvas objects. We will refer to them as
Implemented texture loaders support
- working with object - image data chunks are vertically concatenated
- working with [] object - images are in array
- Source:
Methods
(static) dataAsHtmlElement(data) → {HTMLElement}
In case the system is fed by anything but 'Image' (or the like) data object,
implement here conversion so that debug mode can draw it.
Parameters:
Name | Type | Description |
---|---|---|
data |
* |
- Source:
Returns:
Dom Element