Skip to content

Commit 7d7564e

Browse files
committed
Add JAVA2D/FX2D/SVG/PDF/DXF/WEBGL renderer string constants
1 parent 31bc4b1 commit 7d7564e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/Processing.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,13 @@ static constexpr float RAD_TO_DEG = static_cast<float>(180.0 / M_PI);
12801280
// Renderer flags for size()
12811281
static constexpr int P2D = 2;
12821282
static constexpr int P3D = 3;
1283+
// Renderer string constants (ignored in CppMode, accepted for compatibility)
1284+
static constexpr const char* JAVA2D = "processing.awt.PGraphicsJava2D";
1285+
static constexpr const char* FX2D = "processing.javafx.PGraphicsFX2D";
1286+
static constexpr const char* SVG = "processing.svg.PGraphicsSVG";
1287+
static constexpr const char* PDF = "processing.pdf.PGraphicsPDF";
1288+
static constexpr const char* DXF = "processing.dxf.RawDXF";
1289+
static constexpr const char* WEBGL = "processing.webgl.PGraphicsWebGL";
12831290

12841291
// Texture / image modes
12851292
static constexpr int IMAGE = 100;

0 commit comments

Comments
 (0)