From 28c3731a75da19661f4ed5d6208807d7c4d0fb5a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 25 Mar 2011 23:15:00 +0100 Subject: WindowTitle: Add r2t/msaa - Region Demos: Dump MSAA --- src/demo/GPURegionNewtDemo02.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/demo/GPURegionNewtDemo02.java') diff --git a/src/demo/GPURegionNewtDemo02.java b/src/demo/GPURegionNewtDemo02.java index 6a9e98f62..7de9efa43 100755 --- a/src/demo/GPURegionNewtDemo02.java +++ b/src/demo/GPURegionNewtDemo02.java @@ -69,13 +69,12 @@ class RegionsNewtWindow { GLProfile.initSingleton(true); GLProfile glp = GLProfile.getGL2ES2(); GLCapabilities caps = new GLCapabilities(glp); - caps.setDoubleBuffered(true); - System.out.println(caps); + System.out.println("Requested: "+caps); final GLWindow window = GLWindow.create(caps); window.setPosition(10, 10); window.setSize(500, 500); - window.setTitle("GPU Curve Region Newt Demo 01"); + window.setTitle("GPU Curve Region Newt Demo 02 - r2t0 msaa0"); regionGLListener = new RegionGLListener(); window.addGLEventListener(regionGLListener); @@ -170,6 +169,9 @@ class RegionsNewtWindow { gl.setSwapInterval(1); gl.glEnable(GL2ES2.GL_DEPTH_TEST); regionRenderer = new HwRegionRenderer(drawable.getContext()); + regionRenderer.setAlpha(1.0f); + regionRenderer.setColor(0.0f, 0.0f, 0.0f); + MSAATool.dump(drawable); createTestOutline(); } @@ -189,9 +191,6 @@ class RegionsNewtWindow { regionRenderer.rotate(ang, 0, 1, 0); try { - regionRenderer.setAlpha(1.0f); - regionRenderer.setColor(0.0f, 0.0f, 1.0f); - regionRenderer.renderOutlineShapes(outlineShapes, new float[]{0,0,0}); } catch (Exception e) { e.printStackTrace(); -- cgit v1.2.3