Package com.jogamp.opengl
Interface GLCapabilitiesImmutable
- All Superinterfaces:
CapabilitiesImmutable,Comparable<CapabilitiesImmutable>,VisualIDHolder,com.jogamp.common.type.WriteCloneable
- All Known Implementing Classes:
GLCapabilities
Specifies an immutable set of OpenGL capabilities.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jogamp.nativewindow.VisualIDHolder
VisualIDHolder.VIDComparator, VisualIDHolder.VIDType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringOne of the platform's default sample extensionEGL.EGL_SAMPLES, GLX.GLX_SAMPLES, WGLExt.WGL_SAMPLES_ARBif available, or any other known fallback one, ieEGLExt.EGL_COVERAGE_SAMPLES_NVFields inherited from interface com.jogamp.nativewindow.VisualIDHolder
VID_UNDEFINED -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquality over the immutable attributes of both objectsintReturns the number of bits for the accumulation buffer's alpha component.intReturns the number of bits for the accumulation buffer's blue component.intReturns the number of bits for the accumulation buffer's green component.intReturns the number of bits for the accumulation buffer's red component.intReturns the number of depth buffer bits.booleanReturns whether double-buffering is requested, available or chosen.Returns the GL profile you desire or used by the drawable.booleanReturns whether hardware acceleration is requested, available or chosen.intReturns the number of sample buffers to be allocated if sample buffers are enabled, otherwise returns 0.booleanReturns whether sample buffers for full-scene antialiasing (FSAA) should be allocated for this drawable.Returns the extension for full-scene antialiasing (FSAA).intReturns the number of stencil buffer bits.booleanReturns whether stereo is requested, available or chosen.inthashCode()hash code over the immutable attributes of both objectsbooleanisFBO()Returns whether FBO offscreen mode is requested, available or chosen.booleanReturns whether pbuffer offscreen mode is requested, available or chosen.toString()Returns a textual representation of this object.Methods inherited from interface com.jogamp.nativewindow.CapabilitiesImmutable
getAlphaBits, getBlueBits, getGreenBits, getRedBits, getTransparentAlphaValue, getTransparentBlueValue, getTransparentGreenValue, getTransparentRedValue, isBackgroundOpaque, isBitmap, isOnscreen, toStringMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.jogamp.nativewindow.VisualIDHolder
getVisualIDMethods inherited from interface com.jogamp.common.type.WriteCloneable
cloneMutable
-
Field Details
-
DEFAULT_SAMPLE_EXTENSION
One of the platform's default sample extensionEGL.EGL_SAMPLES, GLX.GLX_SAMPLES, WGLExt.WGL_SAMPLES_ARBif available, or any other known fallback one, ieEGLExt.EGL_COVERAGE_SAMPLES_NV- See Also:
-
-
Method Details
-
getGLProfile
GLProfile getGLProfile()Returns the GL profile you desire or used by the drawable. -
getAccumAlphaBits
int getAccumAlphaBits()Returns the number of bits for the accumulation buffer's alpha component. On some systems only the accumulation buffer depth, which is the sum of the red, green, and blue bits, is considered. -
getAccumBlueBits
int getAccumBlueBits()Returns the number of bits for the accumulation buffer's blue component. On some systems only the accumulation buffer depth, which is the sum of the red, green, and blue bits, is considered. -
getAccumGreenBits
int getAccumGreenBits()Returns the number of bits for the accumulation buffer's green component. On some systems only the accumulation buffer depth, which is the sum of the red, green, and blue bits, is considered. -
getAccumRedBits
int getAccumRedBits()Returns the number of bits for the accumulation buffer's red component. On some systems only the accumulation buffer depth, which is the sum of the red, green, and blue bits, is considered. -
getDepthBits
int getDepthBits()Returns the number of depth buffer bits. -
getDoubleBuffered
boolean getDoubleBuffered()Returns whether double-buffering is requested, available or chosen.Default is true.
-
getHardwareAccelerated
boolean getHardwareAccelerated()Returns whether hardware acceleration is requested, available or chosen.Default is true.
-
getSampleExtension
String getSampleExtension()Returns the extension for full-scene antialiasing (FSAA).Default is
DEFAULT_SAMPLE_EXTENSION. -
getSampleBuffers
boolean getSampleBuffers()Returns whether sample buffers for full-scene antialiasing (FSAA) should be allocated for this drawable.Default is false.
-
getNumSamples
int getNumSamples()Returns the number of sample buffers to be allocated if sample buffers are enabled, otherwise returns 0.Default is 0 due to disable sample buffers per default.
-
getStencilBits
int getStencilBits()Returns the number of stencil buffer bits.Default is 0.
-
getStereo
boolean getStereo()Returns whether stereo is requested, available or chosen.Default is false.
-
isPBuffer
boolean isPBuffer()Returns whether pbuffer offscreen mode is requested, available or chosen.Default is false.
For chosen capabilities, only the selected offscreen surface is set to
true. -
isFBO
boolean isFBO()Returns whether FBO offscreen mode is requested, available or chosen.Default is false.
For chosen capabilities, only the selected offscreen surface is set to
true. -
equals
Description copied from interface:com.jogamp.nativewindow.CapabilitiesImmutableEquality over the immutable attributes of both objects- Specified by:
equalsin interfaceCapabilitiesImmutable- Overrides:
equalsin classObject
-
hashCode
int hashCode()Description copied from interface:com.jogamp.nativewindow.CapabilitiesImmutablehash code over the immutable attributes of both objects- Specified by:
hashCodein interfaceCapabilitiesImmutable- Overrides:
hashCodein classObject
-
toString
String toString()Description copied from interface:com.jogamp.nativewindow.CapabilitiesImmutableReturns a textual representation of this object.- Specified by:
toStringin interfaceCapabilitiesImmutable- Overrides:
toStringin classObject
-