API reference
Preparing search index…

Typed view of a native Rml::Vertex allocation.

Field reads copy values; typed arrays share native memory. Views survive mesh resize, geometry transfer, collection and shutdown, retaining old storage.

Source & inheritance
Member directory8

Constructors

Accessors

Methods

Constructors

Accessors

  • get colourView(): Uint8Array

    Writable premultiplied Rml::Vertex::colour bytes.

    Returns

    Uint8Array

    Shared RGBA bytes; no automatic premultiplication.

    Source & inheritance
  • get positionView(): Float32Array

    Writable Rml::Vertex::position mapping.

    Returns

    Float32Array

    Shared x/y float32 fields.

    Source & inheritance
  • get texCoordView(): Float32Array

    Writable Rml::Vertex::tex_coord mapping.

    Returns

    Float32Array

    Shared u/v float32 fields.

    Source & inheritance

Methods

  • Compare fields using Rml::Vertex::operator== semantics.

    Parameters

    other

    Vertex to compare.

    Returns

    boolean

    Field equality, with NaN unequal and signed zeros equal.

    Source & inheritance

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