Numbers shared throughout processing.core. An attempt is made to keep the constants as short/non-verbose as possible. For instance, the constant is TIFF instead of FILE_TYPE_TIFF. We'll do this as long as we can get away with it. @usage Web & Application
| 38 | * @usage Web & Application |
| 39 | */ |
| 40 | public interface PConstants { |
| 41 | |
| 42 | static public final int X = 0; |
| 43 | static public final int Y = 1; |
| 44 | static public final int Z = 2; |
| 45 | |
| 46 | |
| 47 | // renderers known to processing.core |
| 48 | |
| 49 | /* |
| 50 | // List of renderers used inside PdePreprocessor |
| 51 | static final StringList rendererList = new StringList(new String[] { |
| 52 | "JAVA2D", "JAVA2D_2X", |
| 53 | "P2D", "P2D_2X", "P3D", "P3D_2X", "OPENGL", |
| 54 | "E2D", "FX2D", "FX2D_2X", // experimental |
| 55 | "LWJGL.P2D", "LWJGL.P3D", // hmm |
| 56 | "PDF" // no DXF because that's only for beginRaw() |
| 57 | }); |
| 58 | */ |
| 59 | |
| 60 | static final String JAVA2D = "processing.awt.PGraphicsJava2D"; |
| 61 | |
| 62 | static final String P2D = "processing.opengl.PGraphics2D"; |
| 63 | static final String P3D = "processing.opengl.PGraphics3D"; |
| 64 | |
| 65 | // When will it be time to remove this? |
| 66 | @Deprecated |
| 67 | static final String OPENGL = P3D; |
| 68 | |
| 69 | // Experimental, higher-performance Java 2D renderer (but no pixel ops) |
| 70 | // static final String E2D = PGraphicsDanger2D.class.getName(); |
| 71 | |
| 72 | // Experimental JavaFX renderer; even better 2D performance |
| 73 | static final String FX2D = "processing.javafx.PGraphicsFX2D"; |
| 74 | |
| 75 | static final String PDF = "processing.pdf.PGraphicsPDF"; |
| 76 | static final String SVG = "processing.svg.PGraphicsSVG"; |
| 77 | static final String DXF = "processing.dxf.RawDXF"; |
| 78 | |
| 79 | // platform IDs for PApplet.platform |
| 80 | |
| 81 | static final int OTHER = 0; |
| 82 | static final int WINDOWS = 1; |
| 83 | static final int MACOSX = 2; |
| 84 | static final int LINUX = 3; |
| 85 | |
| 86 | static final String[] platformNames = { |
| 87 | "other", "windows", "macosx", "linux" |
| 88 | }; |
| 89 | |
| 90 | |
| 91 | static final float EPSILON = 0.0001f; |
| 92 | |
| 93 | |
| 94 | // max/min values for numbers |
| 95 | |
| 96 | /** |
| 97 | * Same as Float.MAX_VALUE, but included for parity with MIN_VALUE, |
nothing calls this directly
no outgoing calls
no test coverage detected