aboutsummaryrefslogtreecommitdiffstats
path: root/src/demo
diff options
context:
space:
mode:
authorRami Santina <[email protected]>2011-03-27 13:19:06 +0300
committerRami Santina <[email protected]>2011-03-27 13:19:06 +0300
commitb3d8f3548b608603b3c7fd1a03c1ebbffb95cb8b (patch)
tree4de5b2e29d8e925704419cdc9a9db4384d3ecefe /src/demo
parent915639b05db5ed7cd0ac5b32e10b194d0f54172d (diff)
MSAATool Split dump to CSAA and MSAA
Diffstat (limited to 'src/demo')
-rw-r--r--src/demo/MSAATool.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/demo/MSAATool.java b/src/demo/MSAATool.java
index a31005f08..e357a3239 100644
--- a/src/demo/MSAATool.java
+++ b/src/demo/MSAATool.java
@@ -46,6 +46,15 @@ public class MSAATool {
// default TRUE
System.out.println(" GL MULTISAMPLE "+gl.glIsEnabled(GL2ES2.GL_MULTISAMPLE));
+ // sample buffers min 0, same as GLX_SAMPLE_BUFFERS_ARB or WGL_SAMPLE_BUFFERS_ARB
+ gl.glGetIntegerv(GL2GL3.GL_SAMPLE_BUFFERS, vi, 0);
+ // samples min 0
+ gl.glGetIntegerv(GL2GL3.GL_SAMPLES, vi, 1);
+ System.out.println(" GL SAMPLE_BUFFERS "+vi[0]+", SAMPLES "+vi[1]);
+
+ System.out.println("GL CSAA SETUP:");
+ // default FALSE
+ System.out.println(" GL SAMPLE COVERAGE "+gl.glIsEnabled(GL2GL3.GL_SAMPLE_COVERAGE));
// default FALSE
System.out.println(" GL SAMPLE_ALPHA_TO_COVERAGE "+gl.glIsEnabled(GL2GL3.GL_SAMPLE_ALPHA_TO_COVERAGE));
// default FALSE
@@ -56,10 +65,5 @@ public class MSAATool {
System.out.println(" GL SAMPLE_COVERAGE "+gl.glIsEnabled(GL2GL3.GL_SAMPLE_COVERAGE) +
": SAMPLE_COVERAGE_VALUE "+vf[0]+
", SAMPLE_COVERAGE_INVERT "+vb[0]);
- // sample buffers min 0, same as GLX_SAMPLE_BUFFERS_ARB or WGL_SAMPLE_BUFFERS_ARB
- gl.glGetIntegerv(GL2GL3.GL_SAMPLE_BUFFERS, vi, 0);
- // samples min 0
- gl.glGetIntegerv(GL2GL3.GL_SAMPLES, vi, 1);
- System.out.println(" GL SAMPLE_BUFFERS "+vi[0]+", SAMPLES "+vi[1]);
}
}