From 6686e89ce17423709977b0a897864fb8f7e379cd Mon Sep 17 00:00:00 2001 From: REAS Date: Mon, 5 Oct 2015 11:07:41 -0700 Subject: [PATCH] Correcting error to PApplet, I edited text in the auto-generated area --- core/src/processing/core/PApplet.java | 10 --------- core/src/processing/core/PGraphics.java | 30 ++++++++++++++++++------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 2479042e7..7fa0261d8 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -10689,16 +10689,6 @@ public class PApplet implements PConstants { } - /** - * ( begin auto-generated from hint.xml ) - * - * Description to come... - * - * ( end auto-generated ) - * - * @webref rendering - * @param which the constant to enable or disable the hint - */ public void hint(int which) { if (recorder != null) recorder.hint(which); g.hint(which); diff --git a/core/src/processing/core/PGraphics.java b/core/src/processing/core/PGraphics.java index 952cd9206..0095142e1 100644 --- a/core/src/processing/core/PGraphics.java +++ b/core/src/processing/core/PGraphics.java @@ -1958,12 +1958,20 @@ public class PGraphics extends PImage implements PConstants { // CLIPPING - /* - * @webref rendering:shaders - * @param a x-coordinate of the rectangle by default - * @param b y-coordinate of the rectangle by default - * @param c width of the rectangle by default - * @param d height of the rectangle by default + /** + * ( begin auto-generated from clip.xml ) + * + * Limits the rendering to the boundaries of a rectangle defined + * by the parameters. The boundaries are drawn based on the state + * of the imageMode() fuction, either CORNER, CORNERS, or CENTER. + * + * ( end auto-generated ) + * + * @webref rendering + * @param a x-coordinate of the rectangle, by default + * @param b y-coordinate of the rectangle, by default + * @param c width of the rectangle, by default + * @param d height of the rectangle, by default */ public void clip(float a, float b, float c, float d) { if (imageMode == CORNER) { @@ -2002,8 +2010,14 @@ public class PGraphics extends PImage implements PConstants { showMissingWarning("clip"); } - /* - * @webref rendering:shaders + /** + * ( begin auto-generated from noClip.xml ) + * + * Disables the clipping previously started by the clip() function. + * + * ( end auto-generated ) + * + * @webref rendering */ public void noClip() { showMissingWarning("noClip");