aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-01-09 03:13:20 +0100
committerSven Göthel <[email protected]>2024-01-09 03:13:20 +0100
commitbb11c498b7d4fe269e7273a1b164e46f3c7a3b50 (patch)
treeb613bdfa633df28841a68b45fe0e0f36e5385763 /src/graphui/classes/com
parentf836fbd9201034010ecbf591348433f23920f527 (diff)
Graph Clipping: Initial Region impl of AABBox clipping using GLSL shader (Convenient using Graph/GraphUI produced AABBox)
Simple demo, setting clip-bbox manually: - src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeClippingDemo00.java TODO: - GLSL: Add missing Mv-multiplication of vertex-position -> gcv_ClipBBoxCoord -- AABBox min/max should be set pre-multiplied w/ Mv covering an independent area, not per Shape/Region. -- This to properly work with moving/scaling of each Shape/Region etc
Diffstat (limited to 'src/graphui/classes/com')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/shapes/Rectangle.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/Rectangle.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/Rectangle.java
index fd564c800..ae2af3960 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/shapes/Rectangle.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/Rectangle.java
@@ -108,6 +108,9 @@ public class Rectangle extends GraphShape {
this( renderModes, 0, 0, width, height, lineWidth, 0);
}
+ public final float getX() { return minX; }
+ public final float getY() { return minY; }
+ public final float getZ() { return zPos; }
public final float getWidth() { return width; }
public final float getHeight() { return height; }
public final float getLineWidth() { return lineWidth; }