NGL@0.10.4 Home Manual Reference Source GalleryRepository
import GeometryBuffer from 'ngl/src/buffer/geometry-buffer.js'
public interface | source

GeometryBuffer

Extends:

BufferMeshBuffer → GeometryBuffer

Geometry buffer. Base class for geometry-based buffers. Used to draw geometry primitives given a mesh.

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, geo: BufferGeometry) source

Override:

MeshBuffer#constructor

Params:

NameTypeAttributeDescription
data Object

buffer data

data.position Float32Array

positions

data.color Float32Array

colors

data.radius Float32Array

radii

data.picking Picker
  • optional

picking ids

params BufferParameters
  • optional

parameters object

geo BufferGeometry

geometry object