From f8d23faf8655453c65ccc0262697676ca47e91c1 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 15 Feb 2023 04:18:17 +0100 Subject: Graph: RegionRenderer: Offer borrowing current viewport w/o copy --- src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/jogl/classes/com/jogamp/graph') 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 */ -- cgit v1.2.3