File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1217,6 +1217,22 @@ static constexpr int MITER = 8;
12171217static 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 ;
12201236static constexpr int POINTS = 3 ;
12211237static constexpr int LINES = 5 ;
12221238static constexpr int TRIANGLES = 9 ;
You can’t perform that action at this time.
0 commit comments