aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-03-13 06:03:28 +0100
committerSven Gothel <[email protected]>2023-03-13 06:03:28 +0100
commit9fd84fa482aa354f0636fcd006edd7b71b27c02d (patch)
tree8c8721e78627e2b7c7fa5edeb74d5b598a63d87f /src/graphui/classes/com
parente9a0f5cdc2bca9ca97175d2fa3c1b722a574b267 (diff)
GraphUI: Use pre-calc'ing buffer sizes for Label shape
Diffstat (limited to 'src/graphui/classes/com')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/gl/shapes/Label.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/Label.java b/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/Label.java
index 4af782a37..ab1d08872 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/Label.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/Label.java
@@ -28,8 +28,10 @@
package com.jogamp.graph.ui.gl.shapes;
import com.jogamp.opengl.GL2ES2;
+import com.jogamp.opengl.GLProfile;
import com.jogamp.opengl.math.geom.AABBox;
import com.jogamp.graph.curve.OutlineShape;
+import com.jogamp.graph.curve.opengl.GLRegion;
import com.jogamp.graph.curve.opengl.RegionRenderer;
import com.jogamp.graph.font.Font;
import com.jogamp.graph.geom.Vertex;
@@ -105,6 +107,11 @@ public class Label extends Shape {
}
@Override
+ protected GLRegion createGLRegion(final GLProfile glp) {
+ return GLRegion.create(glp, getRenderModes(), null, font, text);
+ }
+
+ @Override
protected void clearImpl(final GL2ES2 gl, final RegionRenderer renderer) {
}