summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-04-01 20:50:42 +0200
committerSven Gothel <[email protected]>2011-04-01 20:50:42 +0200
commitc139362afd97e92a6a20f77f60fe952f88b94ebb (patch)
tree5461e667caccdcf4f1ca2acaf077229fe02899d8 /src/test
parent4c3aaeaa5e105b462d5212d049db9dcd058c94c7 (diff)
Rendered: +enable(GL, bool) ; dumpFontNames..
Diffstat (limited to 'src/test')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/graph/demos/GPURendererListenerBase01.java2
-rw-r--r--src/test/com/jogamp/opengl/test/junit/graph/demos/GPUTextRendererListenerBase01.java12
2 files changed, 11 insertions, 3 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/graph/demos/GPURendererListenerBase01.java b/src/test/com/jogamp/opengl/test/junit/graph/demos/GPURendererListenerBase01.java
index 30f7ec384..e63985be9 100644
--- a/src/test/com/jogamp/opengl/test/junit/graph/demos/GPURendererListenerBase01.java
+++ b/src/test/com/jogamp/opengl/test/junit/graph/demos/GPURendererListenerBase01.java
@@ -112,7 +112,7 @@ public abstract class GPURendererListenerBase01 implements GLEventListener {
public void reshape(GLAutoDrawable drawable, int xstart, int ystart, int width, int height) {
GL2ES2 gl = drawable.getGL().getGL2ES2();
- gl.glViewport(xstart, ystart, width, height);
+ gl.glViewport(xstart, ystart, width, height);
renderer.reshapePerspective(gl, 45.0f, width, height, 0.1f, 7000.0f);
dumpMatrix();
diff --git a/src/test/com/jogamp/opengl/test/junit/graph/demos/GPUTextRendererListenerBase01.java b/src/test/com/jogamp/opengl/test/junit/graph/demos/GPUTextRendererListenerBase01.java
index bdfaab17b..a3ea93dff 100644
--- a/src/test/com/jogamp/opengl/test/junit/graph/demos/GPUTextRendererListenerBase01.java
+++ b/src/test/com/jogamp/opengl/test/junit/graph/demos/GPUTextRendererListenerBase01.java
@@ -92,12 +92,18 @@ public abstract class GPUTextRendererListenerBase01 extends GPURendererListenerB
public GPUTextRendererListenerBase01(Vertex.Factory<? extends Vertex> factory, int mode, boolean debug, boolean trace) {
super(TextRenderer.create(factory, mode), debug, trace);
this.font = FontFactory.get(fontSet).getDefault();
- System.err.println(font.getAllNames(null, "\n"));
+ dumpFontNames();
this.fontName = font.getName(Font.NAME_FAMILY) + " - " + font.getName(Font.NAME_SUBFAMILY);
this.fontNameBox = font.getStringBounds(fontName, fontSizeFixed*2);
switchHeadBox();
}
+
+ void dumpFontNames() {
+ System.err.println("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
+ System.err.println(font.getAllNames(null, "\n"));
+ System.err.println("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
+ }
void switchHeadBox() {
headType = ( headType + 1 ) % 3 ;
@@ -181,11 +187,13 @@ public abstract class GPUTextRendererListenerBase01 extends GPURendererListenerB
font = FontFactory.get(fontSet).getDefault();
this.fontName = font.getName(Font.NAME_FAMILY) + " - " + font.getName(Font.NAME_SUBFAMILY);
this.fontNameBox = font.getStringBounds(fontName, fontSizeFixed*3);
+ dumpFontNames();
}
public void setFontSet(int set, int family, int stylebits) {
fontSet = set;
- font = FontFactory.get(fontSet).get(family, stylebits);
+ font = FontFactory.get(fontSet).get(family, stylebits);
+ dumpFontNames();
}
public boolean isUserInputMode() { return userInput; }