diff options
author | Sven Gothel <sgothel@jausoft.com> | 2023-04-20 04:18:27 +0200 |
---|---|---|
committer | Sven Gothel <sgothel@jausoft.com> | 2023-04-20 04:18:27 +0200 |
commit | 593b9c6360fd32fdca7d4e3da71525be15157726 (patch) | |
tree | 7db4dcfd40e5899cec0b0b3bbadae4a0842225b4 /src/jogl/classes/com/jogamp/graph/curve/Region.java | |
parent | 8041c69644acb5bd68bb6404ba8744163e8f2a30 (diff) |
Graph GLRegion*: Utilize interleaved GLSL buffers for vertices, curveParams and the optional colors (GPU effeciency and performance; Increased CPU buffer growth performance)
Besides simplification, interleaved GPU memory boosts
- effeciency
- performance
Since only one underlying backing buffer on the CPU (host) has to be managed,
it also increases buffer growth performance.
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph/curve/Region.java')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/curve/Region.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/Region.java b/src/jogl/classes/com/jogamp/graph/curve/Region.java index ef2bbf494..820911bbf 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/Region.java +++ b/src/jogl/classes/com/jogamp/graph/curve/Region.java @@ -275,7 +275,7 @@ public abstract class Region { /** See {@link #MAX_QUALITY} */ public final void setQuality(final int q) { quality=q; } - protected void clearImpl() { + protected final void clearImpl() { dirty = DIRTY_SHAPE | DIRTY_STATE; numVertices = 0; box.reset(); @@ -313,7 +313,7 @@ public abstract class Region { * @see #addOutlineShape(OutlineShape, AffineTransform, float[]) * @see com.jogamp.graph.curve.opengl.RegionRenderer#setColorStatic(com.jogamp.opengl.GL2ES2, float, float, float, float) */ - public boolean hasColorChannel() { + public final boolean hasColorChannel() { return Region.hasColorChannel(renderModes); } @@ -323,7 +323,7 @@ public abstract class Region { * otherwise false. * @see #getRenderModes() */ - public boolean hasColorTexture() { + public final boolean hasColorTexture() { return Region.hasColorTexture(renderModes); } |