NGL@0.10.4 Home Manual Reference Source GalleryRepository
import VectorBuffer from 'ngl/src/buffer/vector-buffer.js'
public class | source

VectorBuffer

Extends:

Buffer → VectorBuffer

Vector buffer. Draws vectors as lines.

Constructor Summary

Public Constructor
public

Inherited Summary

From class Buffer
public get abstract
public get abstract
public

Free buffer resources

public

Set buffer parameters

public

Set buffer visibility

Public Constructors

public constructor(data: Object, params: BufferParameters) source

Override:

Buffer#constructor

Params:

NameTypeAttributeDescription
data Object

attribute object

data.position Float32Array

positions

data.vector Float32Array

vectors

params BufferParameters

parameter object