summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/graph
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-03-25 14:22:02 +0100
committerSven Gothel <[email protected]>2014-03-25 14:22:02 +0100
commitdcb4a911a7df6caa0da71ebf8f77edc8d83b0c24 (patch)
tree14fffebbfef41f9105c57fabab95b5471c01ba9f /src/jogl/classes/jogamp/graph
parent923ca6e77c03d602f9a5a71713cf5d973451687b (diff)
TypecastRenderer: Validate Shape Generation - Result: OK
Diffstat (limited to 'src/jogl/classes/jogamp/graph')
-rw-r--r--src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java b/src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java
index 0e17eab3d..c540f7ddb 100644
--- a/src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java
+++ b/src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java
@@ -46,19 +46,23 @@ public class TypecastRenderer {
private static final boolean DEBUG = Debug.debug("graph.font.Renderer");
private static void addShapeMoveTo(final OutlineShape shape, Factory<? extends Vertex> vertexFactory, Point p1) {
+ if( DEBUG ) { System.err.println("Shape.MoveTo: "+p1); }
shape.closeLastOutline(false);
shape.addEmptyOutline();
shape.addVertex(0, vertexFactory.create(p1.x, p1.y, 0, p1.onCurve));
}
private static void addShapeLineTo(final OutlineShape shape, Factory<? extends Vertex> vertexFactory, Point p1) {
+ if( DEBUG ) { System.err.println("Shape.LineTo: "+p1); }
shape.addVertex(0, vertexFactory.create(p1.x, p1.y, 0, p1.onCurve));
}
private static void addShapeQuadTo(final OutlineShape shape, Factory<? extends Vertex> vertexFactory, Point p1, Point p2) {
+ if( DEBUG ) { System.err.println("Shape.QuadTo: "+p1+", "+p2); }
shape.addVertex(0, vertexFactory.create(p1.x, p1.y, 0, p1.onCurve));
shape.addVertex(0, vertexFactory.create(p2.x, p2.y, 0, p2.onCurve));
}
private static void addShapeQuadTo(final OutlineShape shape, Factory<? extends Vertex> vertexFactory, Point p1,
float p2x, float p2y, boolean p2OnCurve) {
+ if( DEBUG ) { System.err.println("Shape.QuadTo: "+p1+", p2 "+p2x+", "+p2y+", onCurve "+p2OnCurve); }
shape.addVertex(0, vertexFactory.create(p1.x, p1.y, 0, p1.onCurve));
shape.addVertex(0, vertexFactory.create(p2x, p2y, 0, p2OnCurve));
}