diff options
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/GLCapabilitiesImmutable.java')
-rw-r--r-- | src/jogl/classes/javax/media/opengl/GLCapabilitiesImmutable.java | 34 |
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(); |