diff options
author | Sven Gothel <[email protected]> | 2023-02-15 04:18:17 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-02-15 04:18:17 +0100 |
commit | f8d23faf8655453c65ccc0262697676ca47e91c1 (patch) | |
tree | 32887d38dbfa2a2206c640c9ab9bc1cb19a50f81 /src/jogl/classes/com/jogamp/graph | |
parent | 91f5d1019c59f56654f40ce18d70d15117b7f302 (diff) |
Graph: RegionRenderer: Offer borrowing current viewport w/o copy
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph')
-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 */ |