summaryrefslogtreecommitdiffstats
path: root/src/demo/GPUTextNewtDemo02.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-03-25 22:29:46 +0100
committerSven Gothel <[email protected]>2011-03-25 22:29:46 +0100
commitca5c2da3b3e03e5fb23b1cae1edf336de7e9ab20 (patch)
tree7663e9f9e24b5907fafa9fceff4fa9ccf7f6a889 /src/demo/GPUTextNewtDemo02.java
parentc0bcd59a8cfc9296cb4569a08af9c42463e557e1 (diff)
TextDemos: Dump MSAA values, see what which AA style does ..
Diffstat (limited to 'src/demo/GPUTextNewtDemo02.java')
-rw-r--r--src/demo/GPUTextNewtDemo02.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/demo/GPUTextNewtDemo02.java b/src/demo/GPUTextNewtDemo02.java
index b34203014..269287232 100644
--- a/src/demo/GPUTextNewtDemo02.java
+++ b/src/demo/GPUTextNewtDemo02.java
@@ -29,6 +29,7 @@ package demo;
import javax.media.opengl.GL;
import javax.media.opengl.GL2;
+import javax.media.opengl.GL2GL3;
import javax.media.opengl.GL3;
import javax.media.opengl.GLAutoDrawable;
import javax.media.opengl.GLCapabilities;
@@ -149,8 +150,12 @@ class TextNewtWindow {
gl.glEnable(GL3.GL_DEPTH_TEST);
textRenderer = new HwTextRenderer(drawable.getContext(), pointFactory, Region.TWO_PASS);
+ textRenderer.setAlpha(1.0f);
+ textRenderer.setColor(0.0f, 0.0f, 0.0f);
+ gl.glSampleCoverage(0.75f, false);
+ gl.glEnable(GL2GL3.GL_SAMPLE_COVERAGE); // FIXME: Does sample coverage make a difference here ?
gl.glHint(GL2.GL_PERSPECTIVE_CORRECTION_HINT, GL3.GL_NICEST);
- System.out.println("Realised: "+drawable.getChosenGLCapabilities());
+ MSAATool.dump(drawable);
}
float ang = 0;
@@ -176,9 +181,6 @@ class TextNewtWindow {
float[] position = new float[]{0,0,0};
try {
- textRenderer.setAlpha(1.0f);
- textRenderer.setColor(0.0f, 0.0f, 0.0f);
- gl.glSampleCoverage(0.75f, false);
textRenderer.renderString3D(font, text2, position, size);
} catch (Exception e) {
e.printStackTrace();