Class: GeneratedGeometry

(abstract) GeneratedGeometry(webglContext, …args)

Base class for geometries that generate their buffers from constructor arguments. Subclasses implement the static `createGeometryData` method. GPU resources and their lifetime are managed by `Geometry`.

Constructor

(abstract) new GeneratedGeometry(webglContext, …args)

Parameters:
Name Type Attributes Description
webglContext WebGL2RenderingContext WebGL2 rendering context.
args * <repeatable>
Arguments passed to the subclass generator.
Source:

Classes

GeneratedGeometry

Methods

(abstract, protected, static) createGeometryData() → {GeneratedGeometryData}

Generates CPU buffers before any GPU resources are created. Subclasses define their own input arguments.
Source:
Throws:
When a subclass has not implemented the generator.
Type
Error
Returns:
- Buffers passed to `Geometry`.
Type
GeneratedGeometryData