diff --git a/core/src/processing/opengl/PGL.java b/core/src/processing/opengl/PGL.java index 58405b745..0a302c1e4 100644 --- a/core/src/processing/opengl/PGL.java +++ b/core/src/processing/opengl/PGL.java @@ -334,6 +334,13 @@ public abstract class PGL { } + /** + * Return the native canvas the OpenGL context associated to this PGL object + * is rendering to (if any). + */ + public abstract Object getCanvas(); + + protected abstract void setFps(float fps); diff --git a/core/src/processing/opengl/PJOGL.java b/core/src/processing/opengl/PJOGL.java index 597d63ae3..4ebb60f6e 100644 --- a/core/src/processing/opengl/PJOGL.java +++ b/core/src/processing/opengl/PJOGL.java @@ -213,6 +213,17 @@ public class PJOGL extends PGL { } + @Override + public Canvas getCanvas() { + return canvas; + } + + +// public Object getCanvas() { +// return canvas; +// } + + @Override protected void setFps(float fps) { if (!setFps || targetFps != fps) {