aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-02-15 04:18:17 +0100
committerSven Gothel <[email protected]>2023-02-15 04:18:17 +0100
commitf8d23faf8655453c65ccc0262697676ca47e91c1 (patch)
tree32887d38dbfa2a2206c640c9ab9bc1cb19a50f81 /src/jogl/classes
parent91f5d1019c59f56654f40ce18d70d15117b7f302 (diff)
Graph: RegionRenderer: Offer borrowing current viewport w/o copy
Diffstat (limited to 'src/jogl/classes')
-rw-r--r--src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java4
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 */