This repository was archived by the owner on May 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7210,6 +7210,16 @@ public void flush() {
72107210 }
72117211
72127212
7213+ public PGL beginGL () {
7214+ return g .beginGL ();
7215+ }
7216+
7217+
7218+ public void endGL () {
7219+ g .endGL ();
7220+ }
7221+
7222+
72137223 /**
72147224 * Enable a hint option.
72157225 * <P>
Original file line number Diff line number Diff line change 2525
2626import java .util .HashMap ;
2727
28+ import processing .opengl .PGL ;
2829import processing .opengl .PShader ;
2930
3031import 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 () {
Original file line number Diff line number Diff 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 /**
Original file line number Diff line number Diff line change @@ -1729,18 +1729,18 @@ public void endDraw() {
17291729 }
17301730
17311731
1732- public PGL beginPGL () {
1732+ public PGL beginGL () {
17331733 flush ();
17341734 return pgl ;
17351735 }
17361736
17371737
1738- public void endPGL () {
1738+ public void endGL () {
17391739 restoreGL ();
17401740 }
17411741
17421742
1743- public void restartPGL () {
1743+ protected void restartPGL () {
17441744 pgl .initialized = false ;
17451745 }
17461746
You can’t perform that action at this time.
0 commit comments