diff options
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java b/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java index 6222c6265..1014553d3 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java +++ b/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java @@ -163,6 +163,10 @@ public class RegionRenderer { System.arraycopy(viewport, 0, target, 0, 4); return target; } + /** Borrows the current viewport w/o copying. */ + public final int[/*4*/] getViewport() { + return viewport; + } /** Return width of current viewport */ public final int getWidth() { return viewport[2]; } /** Return height of current viewport */ |