aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com/jogamp/graph/ui/Shape.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-04-14 06:26:58 +0200
committerSven Gothel <[email protected]>2023-04-14 06:26:58 +0200
commit94e58738b8f7aa4db46081ab6f96d5f16e2b681e (patch)
tree987e6bcd3217712d268e0dd9cbd836daa7c62b50 /src/graphui/classes/com/jogamp/graph/ui/Shape.java
parent582614bf3c1e0bac4ecb2689410c9673838e62c4 (diff)
GraphUI Shape.validate(*): Return this for chaining
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/Shape.java')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/Shape.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/Shape.java b/src/graphui/classes/com/jogamp/graph/ui/Shape.java
index 9b32c0ee0..132521f0a 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/Shape.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/Shape.java
@@ -438,7 +438,7 @@ public abstract class Shape {
* @param gl current {@link GL2ES2} object
* @see #validate(GLProfile)
*/
- public final void validate(final GL2ES2 gl) {
+ public final Shape validate(final GL2ES2 gl) {
synchronized ( dirtySync ) {
if( isShapeDirty() ) {
box.reset();
@@ -446,6 +446,7 @@ public abstract class Shape {
validateImpl(gl.getGLProfile(), gl);
dirty = 0;
}
+ return this;
}
/**
@@ -456,7 +457,7 @@ public abstract class Shape {
* </p>
* @see #validate(GL2ES2)
*/
- public final void validate(final GLProfile glp) {
+ public final Shape validate(final GLProfile glp) {
synchronized ( dirtySync ) {
if( isShapeDirty() ) {
box.reset();
@@ -464,6 +465,7 @@ public abstract class Shape {
validateImpl(glp, null);
dirty = 0;
}
+ return this;
}
/**