From d7fa6ecd26c1c695b5a6e69a6b9bb885d287bfbf Mon Sep 17 00:00:00 2001 From: benfry Date: Tue, 18 Jul 2006 04:24:10 +0000 Subject: [PATCH] renaming classes inside core for 1.0 changes --- core/src/processing/core/PConstants.java | 8 ++--- core/src/processing/core/PGraphics2D.java | 36 +++++++++++++++++++++++ core/src/processing/core/PGraphics3D.java | 5 ++-- 3 files changed, 43 insertions(+), 6 deletions(-) create mode 100644 core/src/processing/core/PGraphics2D.java diff --git a/core/src/processing/core/PConstants.java b/core/src/processing/core/PConstants.java index 7350183e4..b3b7553da 100644 --- a/core/src/processing/core/PConstants.java +++ b/core/src/processing/core/PConstants.java @@ -39,10 +39,10 @@ public interface PConstants { // renderers known to processing.core - static final String P2D = "processing.core.PGraphics2"; - static final String P3D = "processing.core.PGraphics3"; - static final String JAVA2D = "processing.core.PGraphicsJava"; - static final String OPENGL = "processing.opengl.PGraphicsGL"; + static final String P2D = "processing.core.PGraphics2D"; + static final String P3D = "processing.core.PGraphics3D"; + static final String JAVA2D = "processing.core.PGraphicsJava2D"; + static final String OPENGL = "processing.opengl.PGraphicsOpenGL"; static final String PDF = "processing.pdf.PGraphicsPDF"; static final String DXF = "processing.dxf.RawDXF"; //static final String SVG = "processing.dxf.PGraphicsSVG"; diff --git a/core/src/processing/core/PGraphics2D.java b/core/src/processing/core/PGraphics2D.java new file mode 100644 index 000000000..411293e8b --- /dev/null +++ b/core/src/processing/core/PGraphics2D.java @@ -0,0 +1,36 @@ +/* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */ + +/* + Part of the Processing project - http://processing.org + + Copyright (c) 2006 Ben Fry and Casey Reas + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General + Public License along with this library; if not, write to the + Free Software Foundation, Inc., 59 Temple Place, Suite 330, + Boston, MA 02111-1307 USA +*/ + +package processing.core; + +//import java.awt.*; +//import java.awt.image.*; + + +/** + * Subclass of PGraphics that handles fast 2D rendering, + * more commonly referred to as P2D. + */ +public class PGraphics2D extends PGraphics { + // not finished yet +} \ No newline at end of file diff --git a/core/src/processing/core/PGraphics3D.java b/core/src/processing/core/PGraphics3D.java index 20734f78e..80f018f24 100644 --- a/core/src/processing/core/PGraphics3D.java +++ b/core/src/processing/core/PGraphics3D.java @@ -24,8 +24,9 @@ package processing.core; -import java.awt.*; -import java.awt.image.*; +import java.awt.Toolkit; +import java.awt.image.DirectColorModel; +import java.awt.image.MemoryImageSource; /**