diff options
author | Sven Gothel <[email protected]> | 2023-04-14 06:26:58 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-04-14 06:26:58 +0200 |
commit | 94e58738b8f7aa4db46081ab6f96d5f16e2b681e (patch) | |
tree | 987e6bcd3217712d268e0dd9cbd836daa7c62b50 /src/graphui | |
parent | 582614bf3c1e0bac4ecb2689410c9673838e62c4 (diff) |
GraphUI Shape.validate(*): Return this for chaining
Diffstat (limited to 'src/graphui')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/Shape.java | 6 |
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; } /** |