omega-game-engine
    Preparing search index...

    An enumeration representing the different primitive types used for rendering in WebGL.

    • The values are the corresponding WebGL constants, which define how vertices are interpreted and assembled into graphics primitives.
    Index

    Enumeration Members

    LINE_LOOP: 3

    Renders a connected series of line segments, with the last vertex connected to the first, forming a loop.

    LINE_STRIP: 2

    Renders a connected series of line segments. Each successive vertex is connected to the previous one.

    LINES: 1

    Renders a series of disconnected line segments. Pairs of vertices define a separate line.

    POINTS: 0

    Renders a series of disconnected points. Each vertex is a point.

    TRIANGLE_FAN: 6

    Renders a connected group of triangles that all share a common first vertex.

    TRIANGLE_STRIP: 5

    Renders a connected group of triangles. Each new vertex adds a new triangle, connecting to the two previous vertices.

    TRIANGLES: 4

    Renders a series of disconnected triangles. Every three vertices define a new triangle.