magic-pixels
    Preparing search index...

    Variable DrawModeConst

    DrawMode: {
        LINE_LOOP: "line-loop";
        LINE_STRIP: "line-strip";
        LINES: "lines";
        POINTS: "points";
        TRIANGLE_FAN: "triangle-fan";
        TRIANGLE_STRIP: "triangle-strip";
        TRIANGLES: "triangles";
    } = ...

    Renderer-agnostic enums. They are plain strings so scene objects never carry GPU API constants; each renderer maps them to its own values (see src/webgl/gl-constants.ts for WebGL2).

    Both the object form (DrawMode.TRIANGLES) and the string literal ('triangles') are accepted wherever the type is expected.

    Type Declaration

    • ReadonlyLINE_LOOP: "line-loop"
    • ReadonlyLINE_STRIP: "line-strip"
    • ReadonlyLINES: "lines"
    • ReadonlyPOINTS: "points"
    • ReadonlyTRIANGLE_FAN: "triangle-fan"
    • ReadonlyTRIANGLE_STRIP: "triangle-strip"
    • ReadonlyTRIANGLES: "triangles"