Skip to content

Commit e3abb40

Browse files
committed
Add shape primitive type constants (GROUP/POINT/LINE/TRIANGLE/QUAD/PATH/RECT/ELLIPSE/ARC/SPHERE/BOX)
1 parent d446904 commit e3abb40

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/Processing.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,22 @@ static constexpr int MITER = 8;
12171217
static constexpr int BEVEL = 32;
12181218

12191219
// beginShape() kinds
1220+
// Shape primitive type constants (for createShape/PShape)
1221+
static constexpr int GROUP = 0;
1222+
static constexpr int POINT = 2;
1223+
static constexpr int LINE = 4;
1224+
static constexpr int TRIANGLE = 8;
1225+
static constexpr int QUAD = 16;
1226+
static constexpr int POLYGON = 20;
1227+
static constexpr int PATH = 21;
1228+
static constexpr int RECT = 30;
1229+
static constexpr int ELLIPSE = 31;
1230+
static constexpr int ARC = 32;
1231+
static constexpr int SPHERE = 40;
1232+
static constexpr int BOX = 41;
1233+
// LINE_STRIP and LINE_LOOP
1234+
static constexpr int LINE_STRIP = 50;
1235+
static constexpr int LINE_LOOP = 51;
12201236
static constexpr int POINTS = 3;
12211237
static constexpr int LINES = 5;
12221238
static constexpr int TRIANGLES = 9;

0 commit comments

Comments
 (0)