aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/javax/media/opengl/GLCapabilitiesImmutable.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-10-08 03:19:41 +0200
committerSven Gothel <[email protected]>2011-10-08 03:19:41 +0200
commit0c138d5410ed32bdeef22052b57f1bcecf6b5d4f (patch)
tree55707ace5fa46d3c97f621e5bdcca1c380991b4b /src/jogl/classes/javax/media/opengl/GLCapabilitiesImmutable.java
parent727c697f6808caec2fcbcc35d155552590d4f869 (diff)
Generalize sample extension in GLCapabilities*, currently NV_coverage_sample is respected in EGL
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/GLCapabilitiesImmutable.java')
-rw-r--r--src/jogl/classes/javax/media/opengl/GLCapabilitiesImmutable.java34
1 files changed, 23 insertions, 11 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLCapabilitiesImmutable.java b/src/jogl/classes/javax/media/opengl/GLCapabilitiesImmutable.java
index b91ceae7a..5f8795edc 100644
--- a/src/jogl/classes/javax/media/opengl/GLCapabilitiesImmutable.java
+++ b/src/jogl/classes/javax/media/opengl/GLCapabilitiesImmutable.java
@@ -37,6 +37,17 @@ import javax.media.nativewindow.CapabilitiesImmutable;
* @see javax.media.nativewindow.CapabilitiesImmutable
*/
public interface GLCapabilitiesImmutable extends CapabilitiesImmutable {
+ /**
+ * One of the platform's default sample extension
+ * <code>EGL.EGL_SAMPLES, GLX.GLX_SAMPLES, WGLExt.WGL_SAMPLES_ARB</code>
+ * if available, or any other <i>known</i> fallback one, ie <code>EGLExt.EGL_COVERAGE_SAMPLES_NV</code>
+ */
+ public static final String DEFAULT_SAMPLE_EXTENSION = "default" ;
+
+ /**
+ * Returns the GL profile you desire or used by the drawable.
+ */
+ GLProfile getGLProfile();
/**
* Returns the number of bits requested for the accumulation
@@ -81,14 +92,22 @@ public interface GLCapabilitiesImmutable extends CapabilitiesImmutable {
boolean getDoubleBuffered();
/**
- * Returns the GL profile you desire or used by the drawable.
+ * Indicates whether hardware acceleration is enabled.
*/
- GLProfile getGLProfile();
+ boolean getHardwareAccelerated();
/**
- * Indicates whether hardware acceleration is enabled.
+ * Returns the used extension for full-scene antialiasing
+ * (FSAA), default is {@link #DEFAULT_SAMPLE_EXTENSION}.
*/
- boolean getHardwareAccelerated();
+ String getSampleExtension();
+
+ /**
+ * Returns whether sample buffers for full-scene antialiasing
+ * (FSAA) should be allocated for this drawable. Defaults to
+ * false.
+ */
+ boolean getSampleBuffers();
/**
* Returns the number of sample buffers to be allocated if sample
@@ -115,13 +134,6 @@ public interface GLCapabilitiesImmutable extends CapabilitiesImmutable {
boolean getPbufferRenderToTextureRectangle();
/**
- * Returns whether sample buffers for full-scene antialiasing
- * (FSAA) should be allocated for this drawable. Defaults to
- * false.
- */
- boolean getSampleBuffers();
-
- /**
* Returns the number of bits requested for the stencil buffer.
*/
int getStencilBits();