more with method naming, add XML hasChildren() method · codeanticode/processing-android@4b3397e · GitHub
Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Commit 4b3397e

Browse files
committed
more with method naming, add XML hasChildren() method
1 parent 1995ec9 commit 4b3397e

4 files changed

Lines changed: 31 additions & 3 deletions

File tree

core/src/processing/core/PApplet.java

Lines changed: 10 additions & 0 deletions

core/src/processing/core/PGraphics.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
import java.util.HashMap;
2727

28+
import processing.opengl.PGL;
2829
import processing.opengl.PShader;
2930

3031
import android.graphics.Bitmap;
@@ -675,6 +676,17 @@ public void endDraw() { // ignore
675676
public void flush() {
676677
// no-op, mostly for P3D to write sorted stuff
677678
}
679+
680+
681+
public PGL beginGL() {
682+
showMethodWarning("beginGL");
683+
return null;
684+
}
685+
686+
687+
public void endGL() {
688+
showMethodWarning("endGL");
689+
}
678690

679691

680692
protected void checkSettings() {

core/src/processing/data/XML.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ public int getChildCount() {
238238
checkChildren();
239239
return children.length;
240240
}
241+
242+
243+
public boolean hasChildren() {
244+
checkChildren();
245+
return children.length > 0;
246+
}
241247

242248

243249
/**

core/src/processing/opengl/PGraphicsOpenGL.java

Lines changed: 3 additions & 3 deletions

0 commit comments

Comments
 (0)