diff options
author | Sven Gothel <[email protected]> | 2023-02-05 12:19:36 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-02-05 12:19:36 +0100 |
commit | 973bcfcfe5a0f147cf2e00deb50897f23989f26a (patch) | |
tree | f072e8daa7158ee0ec46f8b55ece1cb1fac2e51e /src | |
parent | 79ffd5f330112b755d787a5f79ff8eb985c23476 (diff) |
Graph: TestTextRendererNEWT01: No VBAA sample-count on MSAA test, fixed window size 1024x640
Diffstat (limited to 'src')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/graph/TestTextRendererNEWT01.java | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/graph/TestTextRendererNEWT01.java b/src/test/com/jogamp/opengl/test/junit/graph/TestTextRendererNEWT01.java index ec7ffd005..305e12f27 100644 --- a/src/test/com/jogamp/opengl/test/junit/graph/TestTextRendererNEWT01.java +++ b/src/test/com/jogamp/opengl/test/junit/graph/TestTextRendererNEWT01.java @@ -116,18 +116,19 @@ public class TestTextRendererNEWT01 extends UITestCase { caps.setAlphaBits(4); System.err.println("Requested: "+caps); - final GLWindow window = createWindow("text-vbaa1-msaa0", caps, 800,400); + final GLWindow window = createWindow("text-vbaa1-msaa0", caps, 1024, 640); window.display(); System.err.println("Chosen: "+window.getChosenGLCapabilities()); final RenderState rs = RenderState.createRenderState(SVertex.factory()); - final TextGLListener textGLListener = new TextGLListener(rs, Region.VBAA_RENDERING_BIT, DEBUG, TRACE); + final TextGLListener textGLListener = new TextGLListener(rs, Region.VBAA_RENDERING_BIT, 4 /* sampleCount */, DEBUG, TRACE); textGLListener.attachInputListenerTo(window); window.addGLEventListener(textGLListener); if(textGLListener.setFontSet(FontFactory.UBUNTU, 0, 0)) { textGLListener.setTech(-400, -30, 0f, -1000, 2); window.display(); + window.display(); sleep(); textGLListener.setTech(-400, -30, 0f, -380, 3); @@ -142,6 +143,7 @@ public class TestTextRendererNEWT01 extends UITestCase { if(textGLListener.setFontSet(FontFactory.JAVA, 0, 0)) { textGLListener.setTech(-400, -30, 0f, -1000, 2); window.display(); + window.display(); sleep(); textGLListener.setTech(-400, -30, 0f, -380, 3); @@ -165,18 +167,19 @@ public class TestTextRendererNEWT01 extends UITestCase { caps.setNumSamples(4); System.err.println("Requested: "+caps); - final GLWindow window = createWindow("text-vbaa0-msaa1", caps, 800, 400); + final GLWindow window = createWindow("text-vbaa0-msaa1", caps, 1024, 640); window.display(); System.err.println("Chosen: "+window.getChosenGLCapabilities()); final RenderState rs = RenderState.createRenderState(SVertex.factory()); - final TextGLListener textGLListener = new TextGLListener(rs, 0, DEBUG, TRACE); + final TextGLListener textGLListener = new TextGLListener(rs, 0, 0 /* sampleCount */, DEBUG, TRACE); textGLListener.attachInputListenerTo(window); window.addGLEventListener(textGLListener); if(textGLListener.setFontSet(FontFactory.UBUNTU, 0, 0)) { textGLListener.setTech(-400, -30, 0f, -1000, 0); window.display(); + window.display(); sleep(); textGLListener.setTech(-400, -30, 0, -380, 0); @@ -191,6 +194,7 @@ public class TestTextRendererNEWT01 extends UITestCase { if(textGLListener.setFontSet(FontFactory.JAVA, 0, 0)) { textGLListener.setTech(-400, -30, 0f, -1000, 0); window.display(); + window.display(); sleep(); textGLListener.setTech(-400, -30, 0, -380, 0); @@ -208,10 +212,11 @@ public class TestTextRendererNEWT01 extends UITestCase { private static class TextGLListener extends GPUTextRendererListenerBase01 { String winTitle; - public TextGLListener(final RenderState rs, final int type, final boolean debug, final boolean trace) { - super(rs, type, 4, true, debug, trace); + public TextGLListener(final RenderState rs, final int type, final int sampleCount, final boolean debug, final boolean trace) { + super(rs, type, sampleCount, true, debug, trace); } + @Override public void attachInputListenerTo(final GLWindow window) { super.attachInputListenerTo(window); winTitle = window.getTitle(); @@ -220,6 +225,7 @@ public class TestTextRendererNEWT01 extends UITestCase { setMatrix(xt, yt, zoom, angle, sampleCount); } + @Override public void init(final GLAutoDrawable drawable) { super.init(drawable); @@ -231,6 +237,7 @@ public class TestTextRendererNEWT01 extends UITestCase { rs.setColorStatic(0.1f, 0.1f, 0.1f, 1.0f); } + @Override public void display(final GLAutoDrawable drawable) { super.display(drawable); |