diff options
author | Sven Gothel <[email protected]> | 2014-02-27 09:43:25 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-02-27 09:43:25 +0100 |
commit | 073ac5ab63af792d8468d8bf074b982f7c44ef33 (patch) | |
tree | fb1fc78c8b4e5ba22936ef7d71a3fc993b8b8041 /src/jogl/classes/com/jogamp/graph/curve/opengl | |
parent | 80a0ddd084e674fbfff007e6a83eec6162aaa32d (diff) |
Bug 801: Graph TextRenderer Cleanup Part-2: Remove Path2D from Glyph/Typecast* ; Misc Cleanup
Commit c3621221b9a563495b4f54fe60e18e8db8cc57fb introduced
create an OutlineShape per Glyph from it's data w/o going through Path2D.
Misc Cleanup: Remove unused code/fields, use private/final where possible.
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph/curve/opengl')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/curve/opengl/TextRenderUtil.java | 37 |
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 |