NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
import MappedBuffer from 'ngl/src/buffer/mapped-buffer.js'
public interface | source

MappedBuffer

Extends:

Buffer → MappedBuffer

Mapped buffer. Sends mapping attribute to the GPU and repeats data in others attributes. Used to render imposters.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get
public
public get
public get abstract
public get abstract
public get abstract
public get abstract
public get abstract
public get abstract

Method Summary

Public Methods
public
public
public
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

Public Constructors

public constructor() source

Override:

Buffer#constructor

Public Members

public get attributeSize source

Override:

Buffer#attributeSize

public index source

public get indexSize source

public get abstract mapping source

public get abstract mappingIndices source

public get abstract mappingIndicesSize source

public get abstract mappingItemSize source

public get abstract mappingSize source

public get abstract mappingType source

Public Methods

public addAttributes() source

Override:

Buffer#addAttributes

public getAttributeIndex() source

public makeIndex() source

public makeMapping() source

public setAttributes() source

Sets buffer attributes

Override:

Buffer#setAttributes