adding createGraphics() without renderer params

This commit is contained in:
benfry
2012-04-03 16:16:53 +00:00
parent f0c2ef79b6
commit db4ef45714
9 changed files with 341 additions and 265 deletions
@@ -1485,6 +1485,11 @@ public class PApplet extends Activity implements PConstants, Runnable {
*/
}
public PGraphics createGraphics(int iwidth, int iheight) {
return createGraphics(iwidth, iheight, JAVA2D);
}
/**
* Create an offscreen PGraphics object for drawing. This can be used
@@ -131,9 +131,9 @@ public interface PConstants {
static final String MEDIUM_COLOR_DEPTH = "8:8:8:8:16:0";
static final String HIGH_COLOR_DEPTH = "8:8:8:8:24:8";
static final String P2D = "processing.core.PGraphicsAndroid2D";
static final String JAVA2D = P2D;
static final String P3D = "processing.core.PGraphicsOpenGL";
static final String JAVA2D = "processing.core.PGraphicsAndroid2D";
static final String P2D = "processing.opengl.PGraphics2D";
static final String P3D = "processing.opengl.PGraphics3D";
static final String OPENGL = P3D;
// The PDF and DXF renderers are not available for Android.
@@ -0,0 +1,27 @@
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
Part of the Processing project - http://processing.org
Copyright (c) 2012 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 version 2.1 as published by the Free Software Foundation.
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.opengl;
public class PGraphics2D extends PGraphicsOpenGL {
}
@@ -0,0 +1,27 @@
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
Part of the Processing project - http://processing.org
Copyright (c) 2012 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 version 2.1 as published by the Free Software Foundation.
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.opengl;
public class PGraphics3D extends PGraphicsOpenGL {
}