Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VertexArrayObject

Hierarchy

  • VertexArrayObject

Index

Constructors

constructor

  • Parameters

    Returns VertexArrayObject

Properties

attributes

attributes: Attrib[]

dirty

dirty: boolean

gl

gl: WebGLRenderingContext

indexBuffer

indexBuffer: GLBuffer

Protected nativeState

nativeState: AttribState

Protected nativeVao

Protected nativeVaoExtension

nativeVaoExtension: any

Static FORCE_NATIVE

FORCE_NATIVE: boolean

Methods

activate

addAttribute

  • Parameters

    • buffer: GLBuffer
    • attribute: Attrib
    • type: number
    • normalized: boolean
    • stride: number
    • start: number

    Returns VertexArrayObject

addIndex

  • Parameters

    • buffer: GLBuffer
    • Optional options: any

    Returns VertexArrayObject

bind

clear

destroy

  • destroy(): void
  • Returns void

draw

  • Parameters

    • type: number
    • size: number
    • start: number

    Returns VertexArrayObject

unbind

Generated using TypeDoc