ShapeBase
Hierarchy
Implements
Constructors
new ShapeBase(context: Context): ShapeBase
Properties
attributes: ObjectMap<object>
The vertex attributes of this Shape.
context: Context
indexBuffer: WebGLBuffer
The WebGL index buffer for this Shape.
indices: number[] = []
The indices of each triangles of this Shape.
needsUpdate: boolean = true
Whether the buffer of this Shape should be updated. Set it to true after this shape is changed.
shader: Shader
The shader class of this Shape.
transform: Transform = new Transform()
The transform of this Shape.
uniforms: ObjectMap<UniformValue>
The uniform values passed to the shader.
usage: ShapeUsage = "dynamic"
The usage hint of this Shape.
vertexBuffer: WebGLBuffer
The WebGL vertex buffer for this Shape.
The base class of Shape.