aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/graph/curve
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph/curve')
-rw-r--r--src/jogl/classes/com/jogamp/graph/curve/opengl/TextRenderUtil.java37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/opengl/TextRenderUtil.java b/src/jogl/classes/com/jogamp/graph/curve/opengl/TextRenderUtil.java
index 6ac3d926f..b54fcd6a6 100644
--- a/src/jogl/classes/com/jogamp/graph/curve/opengl/TextRenderUtil.java
+++ b/src/jogl/classes/com/jogamp/graph/curve/opengl/TextRenderUtil.java
@@ -144,43 +144,6 @@ public class TextRenderUtil {
return region;
}
- private static GLRegion createRegion2(final int renderModes, final Factory<? extends Vertex> vertexFactory,
- final Font font, final CharSequence str, final int pixelSize) {
- final List<OutlineShape> shapesIn = font.getOutlineShapes(null, str, pixelSize, vertexFactory);
- final ArrayList<OutlineShape> shapesOut = new ArrayList<OutlineShape>();
- final int numGlyps = shapesIn.size();
- for (int index=0;index<numGlyps;index++){
- if(shapesIn.get(index) == null){
- continue;
- }
- final OutlineShape glyphShape = shapesIn.get(index);
-
- if(glyphShape.getVertices().size() < 3) {
- continue;
- }
- shapesOut.add(glyphShape);
- }
-
- final GLRegion region = Region.create(renderModes);
- // region.setFlipped(true);
- int numVertices = region.getNumVertices();
-
- for(int i=0; i< shapesOut.size(); i++) {
- final OutlineShape shape = shapesOut.get(i);
- ArrayList<Triangle> gtris = shape.getTriangles(OutlineShape.VerticesState.QUADRATIC_NURBS);
- region.addTriangles(gtris, null, 0);
-
- final ArrayList<Vertex> gVertices = shape.getVertices();
- for(int j=0; j<gVertices.size(); j++) {
- final Vertex gVert = gVertices.get(j);
- gVert.setId(numVertices++);
- region.addVertex(gVert, null);
- }
- }
- return region;
- }
-
-
/**
* Render the String in 3D space wrt to the font provided at the position provided
* the outlines will be generated, if not yet generated