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

ImageBuffer

Extends:

Buffer → ImageBuffer

Image buffer. Draw a single image. Optionally interpolate.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public get
public get
public
public

tex

public get

Method Summary

Public Methods
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(data: Object, params: BufferParameters) source

Override:

Buffer#constructor

Params:

NameTypeAttributeDescription
data Object

buffer data

data.position Float32Array

image position

data.imageData Float32Array

image data, rgba channels

data.width Float32Array

image width

data.height Float32Array

image height

data.picking Picker
  • optional

picking ids

params BufferParameters
  • optional

parameters object

Public Members

public filter source

public forceTransparent source

Override:

Buffer#forceTransparent

public get fragmentShader source

Override:

Buffer#fragmentShader

public get parameters source

Override:

Buffer#parameters

public pickingTex source

public tex source

public get vertexShader source

Override:

Buffer#vertexShader

Public Methods

public getDefines() source

Override:

Buffer#getDefines

public makeMaterial() source

Override:

Buffer#makeMaterial

public setUniforms() source

Override:

Buffer#setUniforms

public updateTexture() source