diff options
Diffstat (limited to 'src/demo')
-rwxr-xr-x | src/demo/GPURegionNewtDemo02.java | 3 | ||||
-rw-r--r-- | src/demo/GPUTextNewtDemo01.java | 3 | ||||
-rw-r--r-- | src/demo/GPUTextNewtDemo02.java | 5 |
3 files changed, 3 insertions, 8 deletions
diff --git a/src/demo/GPURegionNewtDemo02.java b/src/demo/GPURegionNewtDemo02.java index a4a8e91e6..6a9e98f62 100755 --- a/src/demo/GPURegionNewtDemo02.java +++ b/src/demo/GPURegionNewtDemo02.java @@ -37,6 +37,7 @@ import javax.media.opengl.GLProfile; import com.jogamp.graph.curve.HwRegionRenderer; import com.jogamp.graph.curve.OutlineShape; +import com.jogamp.graph.curve.Region; import com.jogamp.graph.geom.opengl.SVertex; import com.jogamp.newt.event.KeyEvent; import com.jogamp.newt.event.KeyListener; @@ -69,8 +70,6 @@ class RegionsNewtWindow { GLProfile glp = GLProfile.getGL2ES2(); GLCapabilities caps = new GLCapabilities(glp); caps.setDoubleBuffered(true); - caps.setSampleBuffers(true); - caps.setNumSamples(4); System.out.println(caps); final GLWindow window = GLWindow.create(caps); window.setPosition(10, 10); diff --git a/src/demo/GPUTextNewtDemo01.java b/src/demo/GPUTextNewtDemo01.java index 0051df72e..3e506f5d1 100644 --- a/src/demo/GPUTextNewtDemo01.java +++ b/src/demo/GPUTextNewtDemo01.java @@ -137,7 +137,6 @@ class TextNewtWindow1 { textRenderer = new HwTextRenderer(drawable.getContext(), pointFactory, Region.SINGLE_PASS); System.out.println("Realised: "+drawable.getChosenGLCapabilities()); - System.out.println("MS: " + gl.glIsEnabled(GL2ES2.GL_MULTISAMPLE)); } float ang = 0; @@ -155,7 +154,7 @@ class TextNewtWindow1 { textRenderer.translate(xTran, yTran, zoom); textRenderer.rotate(ang, 0, 1, 0); - String text1 = "abcdef\nghijklmn\nopqrstuv\nwxyz\n0123456789"; + String text1 = "abcdef\nghijklmn\nopqrstuv\nwxyz"; String text2 = text1.toUpperCase(); Font font = textRenderer.createFont(pointFactory, "Lucida Sans Regular",40); diff --git a/src/demo/GPUTextNewtDemo02.java b/src/demo/GPUTextNewtDemo02.java index c59368c37..b34203014 100644 --- a/src/demo/GPUTextNewtDemo02.java +++ b/src/demo/GPUTextNewtDemo02.java @@ -69,8 +69,6 @@ class TextNewtWindow { GLCapabilities caps = new GLCapabilities(glp); caps.setAlphaBits(4); - caps.setSampleBuffers(true); - caps.setNumSamples(4); System.out.println("Requested: "+caps); final GLWindow window = GLWindow.create(caps); @@ -153,7 +151,6 @@ class TextNewtWindow { textRenderer = new HwTextRenderer(drawable.getContext(), pointFactory, Region.TWO_PASS); gl.glHint(GL2.GL_PERSPECTIVE_CORRECTION_HINT, GL3.GL_NICEST); System.out.println("Realised: "+drawable.getChosenGLCapabilities()); - System.out.println("MS: " + gl.glIsEnabled(GL3.GL_MULTISAMPLE)); } float ang = 0; @@ -172,7 +169,7 @@ class TextNewtWindow { textRenderer.translate(xTran, yTran, zoom); textRenderer.rotate(ang, 0, 1, 0); - String text1 = "abcdef\nghijklmn\nopqrstuv\nwxyz\n0123456789"; + String text1 = "abcdef\nghijklmn\nopqrstuv\nwxyz"; String text2 = text1.toUpperCase(); Font font = textRenderer.createFont(pointFactory, "Lucida Sans Regular",40); |