Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • VertexArrayObject

Index

Constructors

constructor

Properties

Protected _buffer

_buffer: Buffer

Protected Optional _dataOrLength

_dataOrLength: TypedArrayLike | number

Protected _enabledAttributes

_enabledAttributes: Attribute[] | null

Protected _glContext

_glContext: WebGL2RenderingContext | null

Protected _glVertexArrayObject

_glVertexArrayObject: WebGLVertexArrayObject | null

Protected _isInitialized

_isInitialized: boolean

Protected _mustWriteData

_mustWriteData: boolean

Accessors

buffer

glVertexArrayObject

  • get glVertexArrayObject(): WebGLVertexArrayObject
  • Returns WebGLVertexArrayObject if the vertex array object is initialized. Otherwise, throws an error.

    Returns WebGLVertexArrayObject

Methods

Private _init

  • _init(context: WebGL2RenderingContext, program: WebGLProgram): void
  • Initializes the vertex array object. Do not call this method manually.

    Parameters

    • context: WebGL2RenderingContext
    • program: WebGLProgram

    Returns void

Generated using TypeDoc