Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GLBuffer

Hierarchy

  • GLBuffer

Index

Constructors

constructor

  • new GLBuffer(gl: WebGLRenderingContext, type: number, data: ArrayBuffer | ArrayBufferView | any, drawType: number): GLBuffer
  • Parameters

    • gl: WebGLRenderingContext
    • type: number
    • data: ArrayBuffer | ArrayBufferView | any
    • drawType: number

    Returns GLBuffer

Properties

Protected Optional _updateID

_updateID: number

buffer

buffer: WebGLBuffer

data

data: ArrayBuffer | ArrayBufferView | any

drawType

drawType: number

gl

gl: WebGLRenderingContext

type

type: number

Methods

bind

  • bind(): void
  • Returns void

destroy

  • destroy(): void
  • Returns void

upload

  • upload(data: ArrayBuffer | ArrayBufferView | any, offset?: number, dontBind?: boolean): void
  • Parameters

    • data: ArrayBuffer | ArrayBufferView | any
    • Optional offset: number
    • Optional dontBind: boolean

    Returns void

Static create

  • create(gl: WebGLRenderingContext, type: number, data: ArrayBuffer | ArrayBufferView | any, drawType: number): GLBuffer
  • Parameters

    • gl: WebGLRenderingContext
    • type: number
    • data: ArrayBuffer | ArrayBufferView | any
    • drawType: number

    Returns GLBuffer

Static createIndexBuffer

  • createIndexBuffer(gl: WebGLRenderingContext, data: ArrayBuffer | ArrayBufferView | any, drawType: number): GLBuffer
  • Parameters

    • gl: WebGLRenderingContext
    • data: ArrayBuffer | ArrayBufferView | any
    • drawType: number

    Returns GLBuffer

Static createVertexBuffer

  • createVertexBuffer(gl: WebGLRenderingContext, data: ArrayBuffer | ArrayBufferView | any, drawType: number): GLBuffer
  • Parameters

    • gl: WebGLRenderingContext
    • data: ArrayBuffer | ArrayBufferView | any
    • drawType: number

    Returns GLBuffer

Generated using TypeDoc