Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • GLBuffer

Index

Constructors

  • new GLBuffer(dataType?: number, targetBufferType?: number, mode?: number): GLBuffer
  • Class constructor.

    Parameters

    • dataType: number = GLUtility.gl.FLOAT
    • targetBufferType: number = GLUtility.gl.ARRAY_BUFFER
    • mode: number = GLUtility.gl.TRIANGLES

    Returns GLBuffer

Properties

_attributes: AttributeInfo[] = ...
_buffer: WebGLBuffer
_data: number[] = ...
_dataType: number
_elementSize: number
_hasAttributeLocation: boolean = false
_mode: number
_stride: number
_targetBufferType: number
_typeSize: number = 0

Methods

  • bind(normalize?: boolean): void
  • Binds the current buffer to read or write from.

    Parameters

    • normalize: boolean = false

    Returns void

    void

  • clear(): void
  • destroy(): void
  • draw(): void
  • push(data: number[]): void
  • setData(data: number[]): void
  • unbind(): void

Generated using TypeDoc