summaryrefslogtreecommitdiffstats
path: root/src/test/com/jogamp/opengl
diff options
context:
space:
mode:
authorRami Santina <[email protected]>2011-03-29 13:26:01 +0300
committerRami Santina <[email protected]>2011-03-29 13:26:01 +0300
commit2f094d97a1cbdf14c25a7ebc1b183e20bdd6c4cd (patch)
treea53e06083e995f850e334d8d137fcd5823517e19 /src/test/com/jogamp/opengl
parentd6aedbf7677e4375d09d0995d3f9c14c5104091b (diff)
Updated textTextRenderer 3 views each and write to tga file
Diffstat (limited to 'src/test/com/jogamp/opengl')
-rwxr-xr-xsrc/test/com/jogamp/opengl/test/junit/graph/TestHwTextRenderer01.java34
1 files changed, 24 insertions, 10 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/graph/TestHwTextRenderer01.java b/src/test/com/jogamp/opengl/test/junit/graph/TestHwTextRenderer01.java
index 0d48206f9..a0b04d69a 100755
--- a/src/test/com/jogamp/opengl/test/junit/graph/TestHwTextRenderer01.java
+++ b/src/test/com/jogamp/opengl/test/junit/graph/TestHwTextRenderer01.java
@@ -69,7 +69,14 @@ public class TestHwTextRenderer01 {
}
textGLListener.resetPrinting();
- textGLListener.setTech(-111, 74, 0, -380, 900);
+ textGLListener.setTech(-111, 74, 0, -380, 1100);
+ Thread.sleep(100);
+ while(!textGLListener.isPrinted()){
+ Thread.sleep(100);
+ }
+
+ textGLListener.resetPrinting();
+ textGLListener.setTech(-111, 74, 0, -80, 2500);
Thread.sleep(100);
while(!textGLListener.isPrinted()){
Thread.sleep(100);
@@ -81,15 +88,15 @@ public class TestHwTextRenderer01 {
Thread.sleep(1000);
}
- //@Test
+ @Test
public void testTextRendererMSAA01() throws InterruptedException {
GLProfile glp = GLProfile.get(GLProfile.GL2ES2);
GLCapabilities caps = new GLCapabilities(glp);
- //caps.setAlphaBits(4);
+ caps.setAlphaBits(4);
caps.setSampleBuffers(true);
caps.setNumSamples(4);
- GLWindow window = createWindow("r2t0msaa1", caps, 400,0);
+ GLWindow window = createWindow("r2t0msaa1", caps, 400, 400);
TextGLListener textGLListener = new TextGLListener(Region.SINGLE_PASS);
textGLListener.setTech(-10, 10, 0f, -1000, 0);
textGLListener.attachTo(window);
@@ -102,12 +109,19 @@ public class TestHwTextRenderer01 {
Thread.sleep(100);
}
- //textGLListener.resetPrinting();
- //textGLListener.setTech(-111, 74, 0, -380, 0);
- //Thread.sleep(100);
- //while(!textGLListener.isPrinted()){
- // Thread.sleep(100);
- //}
+ textGLListener.resetPrinting();
+ textGLListener.setTech(-111, 74, 0, -380, 0);
+ Thread.sleep(100);
+ while(!textGLListener.isPrinted()){
+ Thread.sleep(100);
+ }
+
+ textGLListener.resetPrinting();
+ textGLListener.setTech(-111, 74, 0, -80, 0);
+ Thread.sleep(100);
+ while(!textGLListener.isPrinted()){
+ Thread.sleep(100);
+ }
animator.stop();
destroyWindow(window);