Skip to content

Commit 00fbac9

Browse files
committed
Fix NORMAL/IMAGE/CLAMP/REPEAT to match PConstants; add MODEL/SHAPE/DIAMETER
1 parent e7514ae commit 00fbac9

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/Processing.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,10 +1308,13 @@ static constexpr int LANDSCAPE = 2;
13081308
static constexpr int SPAN = 0;
13091309

13101310
// Texture / image modes
1311-
static constexpr int IMAGE = 100;
1312-
static constexpr int NORMAL = 101;
1313-
static constexpr int CLAMP = 102;
1314-
static constexpr int REPEAT = 103;
1311+
static constexpr int IMAGE = 2;
1312+
static constexpr int NORMAL = 1;
1313+
static constexpr int CLAMP = 0;
1314+
static constexpr int REPEAT = 1;
1315+
static constexpr int MODEL = 4; // textMode
1316+
static constexpr int SHAPE = 5; // textMode
1317+
static constexpr int DIAMETER = 3; // synonym for CENTER in ellipseMode
13151318

13161319
// hint() flags
13171320
static constexpr int ENABLE_DEPTH_TEST = 1;

0 commit comments

Comments
 (0)