Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VertexBuffer

Hierarchy

  • VertexBuffer

Index

Constructors

constructor

Accessors

attributes

id

  • get id(): string

indices

  • get indices(): undefined | number[]
  • set indices(indices: number[] | undefined): void

isDynamic

  • get isDynamic(): boolean
  • set isDynamic(dynamic: boolean): void

name

  • get name(): undefined | string
  • set name(name: string | undefined): void

primitiveType

  • get primitiveType(): "POINTS" | "LINE_STRIP" | "LINE_LOOP" | "LINES" | "TRIANGLE_STRIP" | "TRIANGLE_FAN" | "TRIANGLES"
  • set primitiveType(type: PrimitiveType): void

vertexCount

  • get vertexCount(): number
  • set vertexCount(count: number): void

Methods

begin

bindAttributes

bindBuffers

  • bindBuffers(): void

copy

dirtifyAttribute

draw

  • draw(): void

end

hasAttribute

  • hasAttribute(attribute: string): boolean

load

  • load(): void

setAttribute

unbindAttributes

unload

  • unload(): void

updateBufferDatas

  • updateBufferDatas(): void