API reference
Preparing search index…

VertexBuffer

GPU storage owned by Native; draw records a handle without uploading vertices.

Type hierarchy

Hierarchy (View Summary)

Source & inheritance
Member directory17

Constructors

Properties

Methods

Constructors

Properties

Usage: typeof VertexBufferUsage = VertexBufferUsage

Vertex buffer usage enumeration.

Source & inheritance

Methods

  • Allocates the specified number of vertices on the GPU and returns success; submits previously queued draws.

    Parameters

    vertexCount
    number

    Returns

    boolean
    Source & inheritance
  • Returns the OpenGL buffer identifier, or 0 if not yet allocated.

    Returns

    number
    Source & inheritance
  • Returns whether the current environment supports GPU vertex buffers.

    Returns

    boolean
    Source & inheritance

Symbol members

"[vertexBufferId]": number
Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0