NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
import RibbonBuffer from 'ngl/src/buffer/ribbon-buffer.js'
public class | source

RibbonBuffer

Extends:

BufferMeshBuffer → RibbonBuffer

Ribbon buffer. Draws a thin ribbon.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public get

Method Summary

Public Methods
public
public

Inherited Summary

From class Buffer
public get
public get
public get abstract
public get
public set
public get
public get
public get
public get
public get abstract
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
private
public
public
public

Free buffer resources

public
public
public
public
public
public
public
public
public
public
public
public
public
public

Sets buffer attributes

public
public

Set buffer parameters

public
public
public

Set buffer visibility

public
public
public
private
From class MeshBuffer
public get
public get

Public Constructors

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

Override:

MeshBuffer#constructor

Params:

NameTypeAttributeDescription
data Object

attribute object

data.position Float32Array

positions

data.normal Float32Array

normals

data.dir Float32Array

binormals

data.color Float32Array

colors

data.size Float32Array

sizes

data.picking Picker

picking ids

params BufferParameters

parameter object

Public Members

public meshIndex source

public get vertexShader source

Override:

MeshBuffer#vertexShader

Public Methods

public makeIndex() source

public setAttributes() source

Sets buffer attributes

Override:

Buffer#setAttributes