Options
All
  • Public
  • Public/Protected
  • All
Menu

A wrapper for data so that it can be used and uploaded by WebGL

memberof

PIXI

Hierarchy

  • Buffer

Index

Constructors

constructor

  • Parameters

    • Optional data: IArrayBuffer

      the data to store in the buffer.

    • Optional _static: boolean
    • Optional index: boolean

    Returns Buffer

Properties

_glBuffers

_glBuffers: {}

Type declaration

  • [key: number]: GLBuffer

_updateID

_updateID: number

data

disposeRunner

disposeRunner: Runner

id

id: number

index

index: boolean

static

static: boolean

Methods

destroy

  • destroy(): void
  • Destroys the buffer

    Returns void

dispose

  • dispose(): void
  • disposes WebGL resources that are connected to this geometry

    Returns void

update

  • flags this buffer as requiring an upload to the GPU

    Parameters

    Returns void

Static from

  • Helper function that creates a buffer based on an array or TypedArray

    static

    Parameters

    • data: IArrayBuffer | number[]

      the TypedArray that the buffer will store. If this is a regular Array it will be converted to a Float32Array.

    Returns Buffer

    A new Buffer based on the data provided.

Generated using TypeDoc