From e2d859411d9dabf770962f0f89125867b1b62b6f Mon Sep 17 00:00:00 2001 From: codeanticode Date: Mon, 13 Jul 2015 15:55:17 -0400 Subject: [PATCH] addition attrib*() methods in PApplet --- core/src/processing/core/PApplet.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 44ea61124..f332978ca 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -10651,6 +10651,24 @@ public class PApplet implements PConstants { } + public void attribPosition(String name, float x, float y, float z) { + if (recorder != null) recorder.attribPosition(name, x, y, z); + g.attribPosition(name, x, y, z); + } + + + public void attribNormal(String name, float nx, float ny, float nz) { + if (recorder != null) recorder.attribNormal(name, nx, ny, nz); + g.attribNormal(name, nx, ny, nz); + } + + + public void attribColor(String name, int color) { + if (recorder != null) recorder.attribColor(name, color); + g.attribColor(name, color); + } + + public void attrib(String name, float... values) { if (recorder != null) recorder.attrib(name, values); g.attrib(name, values);