Top Fields Constructors Methods
jogamp.opengl

public Class GLGraphicsConfigurationUtil

extends Object
Class Inheritance
Imports
com.jogamp.nativewindow.AbstractGraphicsDevice, com.jogamp.opengl.GLCapabilities, .GLCapabilitiesImmutable, .GLContext, .GLDrawableFactory, .GLProfile, .GLRendererQuirks

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final String
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static int
clipColor(final int compIn, final boolean allowRGB555)

public static GLCapabilitiesImmutable
clipRGBAGLCapabilities(final GLCapabilitiesImmutable caps, final boolean allowRGB555, final boolean allowAlpha)

public static GLCapabilitiesImmutable
fixDoubleBufferedGLCapabilities(final GLCapabilitiesImmutable capsRequested, final boolean doubleBuffered)

Fix double buffered setting

public static GLCapabilitiesImmutable

Returns:

either the given requested GLCapabilitiesImmutable instance if no modifications were required, or a modified GLCapabilitiesImmutable instance.
fixGLCapabilities
(final GLCapabilitiesImmutable capsRequested, final GLDrawableFactory
the GLDrawableFactory used to validate the requested capabilities and later used to create the drawable.
factory
,
final AbstractGraphicsDevice
the device on which the drawable will be created, maybe null for the default device.
device
)

Fixes the requested GLCapabilitiesImmutable according to on- and offscreen usage.

public static GLCapabilitiesImmutable
public static GLCapabilitiesImmutable
public static GLCapabilitiesImmutable
public static GLCapabilitiesImmutable

Returns:

either the given requested GLCapabilitiesImmutable instance if no modifications were required, or a modified GLCapabilitiesImmutable instance.
fixOffscreenGLCapabilities
(final GLCapabilitiesImmutable capsRequested, final GLDrawableFactory
the GLDrawableFactory used to validate the requested capabilities and later used to create the drawable.
factory
,
AbstractGraphicsDevice
the device on which the drawable will be created, maybe null for the default device.
device
)

Fixes the requested GLCapabilitiesImmutable according to:

public static GLCapabilitiesImmutable
public static GLCapabilities
fixOpaqueGLCapabilities(final GLCapabilities capsRequested, final boolean isOpaque)

Fix opaque setting while preserve alpha bits

public static final GLCapabilities
fixWinAttribBitsAndHwAccel(final AbstractGraphicsDevice device, final int winattrbits, final GLCapabilities caps)

public static final int

Returns:

bitmask representing the input boolean in exclusive or logic, ie only one bit will be set.
getExclusiveWinAttributeBits
(final boolean isOnscreen, final boolean isFBO, final boolean isPBuffer, final boolean isBitmap)

public static final int
public static final StringBuilder
winAttributeBits2String(StringBuilder sb, final int winattrbits)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ALL_BITSback to summary
public static final int ALL_BITS
BITMAP_BITback to summary
public static final int BITMAP_BIT
FBO_BITback to summary
public static final int FBO_BIT
NV_coverage_sampleback to summary
public static final String NV_coverage_sample
PBUFFER_BITback to summary
public static final int PBUFFER_BIT
WINDOW_BITback to summary
public static final int WINDOW_BIT

Constructor Detail

GLGraphicsConfigurationUtilback to summary
public GLGraphicsConfigurationUtil()

Method Detail

clipColorback to summary
public static int clipColor(final int compIn, final boolean allowRGB555)
clipRGBAGLCapabilitiesback to summary
public static GLCapabilitiesImmutable clipRGBAGLCapabilities(final GLCapabilitiesImmutable caps, final boolean allowRGB555, final boolean allowAlpha)
fixDoubleBufferedGLCapabilitiesback to summary
public static GLCapabilitiesImmutable fixDoubleBufferedGLCapabilities(final GLCapabilitiesImmutable capsRequested, final boolean doubleBuffered)

Fix double buffered setting

fixGLCapabilitiesback to summary
public static GLCapabilitiesImmutable fixGLCapabilities(final GLCapabilitiesImmutable capsRequested, final GLDrawableFactory factory, final AbstractGraphicsDevice device)

Fixes the requested GLCapabilitiesImmutable according to on- and offscreen usage.

No modification will be made for onscreen usage, for offscreen usage see fixOffscreenGLCapabilities(GLCapabilitiesImmutable, GLDrawableFactory, AbstractGraphicsDevice).

Parameters
capsRequested:GLCapabilitiesImmutable

the requested GLCapabilitiesImmutable

factory:GLDrawableFactory

the GLDrawableFactory used to validate the requested capabilities and later used to create the drawable.

device:AbstractGraphicsDevice

the device on which the drawable will be created, maybe null for the default device.

Returns:GLCapabilitiesImmutable

either the given requested GLCapabilitiesImmutable instance if no modifications were required, or a modified GLCapabilitiesImmutable instance.

fixGLPBufferGLCapabilitiesback to summary
public static GLCapabilitiesImmutable fixGLPBufferGLCapabilities(final GLCapabilitiesImmutable capsRequested)
fixGLProfileback to summary
public static GLCapabilitiesImmutable fixGLProfile(final GLCapabilitiesImmutable caps, final GLProfile glp)
fixOffscreenBitOnlyback to summary
public static GLCapabilitiesImmutable fixOffscreenBitOnly(final GLCapabilitiesImmutable capsRequested)
fixOffscreenGLCapabilitiesback to summary
public static GLCapabilitiesImmutable fixOffscreenGLCapabilities(final GLCapabilitiesImmutable capsRequested, final GLDrawableFactory factory, AbstractGraphicsDevice device)

Fixes the requested GLCapabilitiesImmutable according to:

Parameters
capsRequested:GLCapabilitiesImmutable

the requested GLCapabilitiesImmutable

factory:GLDrawableFactory

the GLDrawableFactory used to validate the requested capabilities and later used to create the drawable.

device:AbstractGraphicsDevice

the device on which the drawable will be created, maybe null for the default device.

Returns:GLCapabilitiesImmutable

either the given requested GLCapabilitiesImmutable instance if no modifications were required, or a modified GLCapabilitiesImmutable instance.

fixOnscreenGLCapabilitiesback to summary
public static GLCapabilitiesImmutable fixOnscreenGLCapabilities(final GLCapabilitiesImmutable capsRequested)
fixOpaqueGLCapabilitiesback to summary
public static GLCapabilities fixOpaqueGLCapabilities(final GLCapabilities capsRequested, final boolean isOpaque)

Fix opaque setting while preserve alpha bits

fixWinAttribBitsAndHwAccelback to summary
public static final GLCapabilities fixWinAttribBitsAndHwAccel(final AbstractGraphicsDevice device, final int winattrbits, final GLCapabilities caps)
getExclusiveWinAttributeBitsback to summary
public static final int getExclusiveWinAttributeBits(final boolean isOnscreen, final boolean isFBO, final boolean isPBuffer, final boolean isBitmap)
Returns:int

bitmask representing the input boolean in exclusive or logic, ie only one bit will be set.

getExclusiveWinAttributeBitsback to summary
public static final int getExclusiveWinAttributeBits(final GLCapabilitiesImmutable caps)
See Also
getExclusiveWinAttributeBits(boolean, boolean, boolean, boolean)
winAttributeBits2Stringback to summary
public static final StringBuilder winAttributeBits2String(StringBuilder sb, final int winattrbits)