Skip to content

Commit 19f6edb

Browse files
committed
Fix beginShape kind constants to match Processing Java values (POINTS=3, LINES=5, TRIANGLES=9, etc.)
1 parent 52e499e commit 19f6edb

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/Processing.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,13 +1197,13 @@ static constexpr int MITER = 8;
11971197
static constexpr int BEVEL = 32;
11981198

11991199
// beginShape() kinds
1200-
static constexpr int POINTS = 0;
1201-
static constexpr int LINES = 1;
1202-
static constexpr int TRIANGLES = 2;
1203-
static constexpr int TRIANGLE_FAN = 3;
1204-
static constexpr int TRIANGLE_STRIP = 4;
1205-
static constexpr int QUADS = 5;
1206-
static constexpr int QUAD_STRIP = 6;
1200+
static constexpr int POINTS = 3;
1201+
static constexpr int LINES = 5;
1202+
static constexpr int TRIANGLES = 9;
1203+
static constexpr int TRIANGLE_FAN = 11;
1204+
static constexpr int TRIANGLE_STRIP = 10;
1205+
static constexpr int QUADS = 16;
1206+
static constexpr int QUAD_STRIP = 17;
12071207
static constexpr int CLOSE = 2;
12081208
// Arc modes
12091209
static constexpr int OPEN = 1;

0 commit comments

Comments
 (0)