Skip to content

Commit 2e91948

Browse files
committed
Add platform and orientation constants (OTHER/WINDOWS/MACOS/LINUX/PORTRAIT/LANDSCAPE/SPAN)
1 parent 7d7564e commit 2e91948

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/Processing.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,6 +1287,15 @@ static constexpr const char* SVG = "processing.svg.PGraphicsSVG";
12871287
static constexpr const char* PDF = "processing.pdf.PGraphicsPDF";
12881288
static constexpr const char* DXF = "processing.dxf.RawDXF";
12891289
static constexpr const char* WEBGL = "processing.webgl.PGraphicsWebGL";
1290+
// Platform constants
1291+
static constexpr int OTHER = 0;
1292+
static constexpr int WINDOWS = 1;
1293+
static constexpr int MACOS = 2;
1294+
static constexpr int LINUX = 3;
1295+
// Orientation constants (Android/mobile)
1296+
static constexpr int PORTRAIT = 1;
1297+
static constexpr int LANDSCAPE = 2;
1298+
static constexpr int SPAN = 0;
12901299

12911300
// Texture / image modes
12921301
static constexpr int IMAGE = 100;

0 commit comments

Comments
 (0)