File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
core/src/processing/opengl Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -334,6 +334,13 @@ public PGL(PGraphicsOpenGL pg) {
334334 }
335335
336336
337+ /**
338+ * Return the native canvas the OpenGL context associated to this PGL object
339+ * is rendering to (if any).
340+ */
341+ public abstract Object getCanvas ();
342+
343+
337344 protected abstract void setFps (float fps );
338345
339346
Original file line number Diff line number Diff line change @@ -213,6 +213,17 @@ public PJOGL(PGraphicsOpenGL pg) {
213213 }
214214
215215
216+ @ Override
217+ public Canvas getCanvas () {
218+ return canvas ;
219+ }
220+
221+
222+ // public Object getCanvas() {
223+ // return canvas;
224+ // }
225+
226+
216227 @ Override
217228 protected void setFps (float fps ) {
218229 if (!setFps || targetFps != fps ) {
You can’t perform that action at this time.
0 commit comments