Top Fields Constructors Methods
jogamp.opengl.windows.wgl

public Class WindowsWGLGraphicsConfiguration

extends MutableGraphicsConfiguration
implements Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable
Imports
java.nio.FloatBuffer, .IntBuffer, java.util.ArrayList, .List, com.jogamp.nativewindow.AbstractGraphicsScreen, .NativeSurface, .AbstractGraphicsDevice, .MutableGraphicsConfiguration, com.jogamp.opengl.GL, .GLCapabilitiesImmutable, .GLCapabilitiesChooser, .GLDrawableFactory, .GLException, .GLProfile, .GLRendererQuirks, com.jogamp.common.ExceptionUtils, com.jogamp.common.nio.Buffers, jogamp.nativewindow.windows.DWM_BLURBEHIND, .GDI, .GDIUtil, .MARGINS, .PIXELFORMATDESCRIPTOR, jogamp.opengl.GLGraphicsConfigurationUtil

Field Summary

Modifier and TypeField and Description
private final GLCapabilitiesChooser
private boolean
private boolean
protected static final int
protected static final int

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static int
AttribList2DrawableTypeBits(final IntBuffer iattribs, final int niattribs, final IntBuffer iresults)

pack-priv static WGLGLCapabilities
AttribList2GLCapabilities(final AbstractGraphicsDevice device, final GLProfile glp, final long hdc, final int pfdID, final IntBuffer iattribs, final int niattribs, final IntBuffer iresults, final int winattrmask)

pack-priv static WGLGLCapabilities
AttribList2GLCapabilitiesNoCheck(final AbstractGraphicsDevice device, final GLProfile glp, final long hdc, final int pfdID, final IntBuffer iattribs, final int niattribs, final IntBuffer iresults, final int winattrmask)

public Object
pack-priv static WindowsWGLGraphicsConfiguration
createFromExternal(final GLDrawableFactory _factory, final long hdc, final int pfdID, GLProfile glp, final AbstractGraphicsScreen screen, final boolean onscreen)

pack-priv static PIXELFORMATDESCRIPTOR
createPixelFormatDescriptor(final long hdc, final int pfdID)

pack-priv static PIXELFORMATDESCRIPTOR
pack-priv static int
public final PIXELFORMATDESCRIPTOR
public final int
getPixelFormatID()

FIXME: NPE ..

pack-priv static boolean
GLCapabilities2AttribList(final WindowsWGLDrawableFactory.SharedResource sharedResource, final GLCapabilitiesImmutable caps, final IntBuffer iattributes, final int accelerationValue, final int[] floatMode)

pack-priv static PIXELFORMATDESCRIPTOR
public final boolean
public final boolean
isDetermined()

Determined configuration states set target capabilties via setCapsPFD(WGLGLCapabilities), but does not imply a set pixelformat.

public final boolean
isExternal()

External configuration's HDC pixelformat shall not be modified

pack-priv final void
pack-priv static int
pack-priv static WGLGLCapabilities
PFD2GLCapabilities(final AbstractGraphicsDevice device, final GLProfile glp, final long hdc, final int pfdID, final int winattrmask)

pack-priv static WGLGLCapabilities
PFD2GLCapabilitiesNoCheck(final AbstractGraphicsDevice device, final GLProfile glp, final long hdc, final int pfdID)

pack-priv static WGLGLCapabilities
PFD2GLCapabilitiesNoCheck(final AbstractGraphicsDevice device, final GLProfile glp, final PIXELFORMATDESCRIPTOR pfd, final int pfdID)

public final void
preselectGraphicsConfiguration(final GLDrawableFactory factory, final int[]
optional pool of preselected PixelFormat IDs, maybe null for unrestricted selection
pfdIDs
)

Preselect the graphics configuration in case it has been determined yet.

pack-priv final void
setCapsPFD(final WGLGLCapabilities caps)

Only sets this configuration's capabilities and marks it as determined, the actual pixelformat is not set.

pack-priv final void
setPixelFormat(final long hdc, final WGLGLCapabilities caps)

Sets the hdc's PixelFormat, this configuration's capabilities and marks it as determined.

public String
toString()

Overrides com.jogamp.nativewindow.DefaultGraphicsConfiguration.toString.

Returns a string representation of the object.
public final void
updateGraphicsConfiguration(final GLDrawableFactory factory, final NativeSurface ns, final int[]
optional pool of preselected PixelFormat IDs, maybe null for unrestricted selection
pfIDs
)

Updates the graphics configuration in case it has been determined yet.

pack-priv static int[]
wglAllARBPFDIDs(final int pfdIDCount)

pack-priv static int[]
wglAllGDIPFIDs(final long hdc)

pack-priv static int
wglARBPFDIDCount(final WindowsWGLContext sharedCtx, final long hdc)

pack-priv static WGLGLCapabilities
wglARBPFID2GLCapabilities(final WindowsWGLDrawableFactory.SharedResource sharedResource, final AbstractGraphicsDevice device, final GLProfile glp, final long hdc, final int pfdID, final int winattrbits)

pack-priv static WGLGLCapabilities
wglARBPFID2GLCapabilitiesNoCheck(final WindowsWGLDrawableFactory.SharedResource sharedResource, final AbstractGraphicsDevice device, final GLProfile glp, final long hdc, final int pfdID, final int winattrbits)

pack-priv static List<GLCapabilitiesImmutable>
wglARBPFIDs2GLCapabilities(final WindowsWGLDrawableFactory.SharedResource sharedResource, final AbstractGraphicsDevice device, final GLProfile glp, final long hdc, final int[] pfdIDs, final int winattrbits, final boolean onlyFirstValid)

pack-priv static boolean
wglARBPFIDValid(final WindowsWGLContext sharedCtx, final long hdc, final int pfdID)

pack-priv static int[]
wglChoosePixelFormatARB(final WindowsWGLDrawableFactory.SharedResource sharedResource, final AbstractGraphicsDevice device, final GLCapabilitiesImmutable capabilities, final long hdc, final IntBuffer iattributes, final int accelerationMode, final FloatBuffer fattributes)

Inherited from com.jogamp.nativewindow.MutableGraphicsConfiguration:
setChosenCapabilitiessetScreen

Field Detail

chooserback to summary
private final GLCapabilitiesChooser chooser
isDeterminedback to summary
private boolean isDetermined
isExternalback to summary
private boolean isExternal
MAX_ATTRIBSback to summary
protected static final int MAX_ATTRIBS
MAX_PFORMATSback to summary
protected static final int MAX_PFORMATS

Constructor Detail

WindowsWGLGraphicsConfigurationback to summary
pack-priv WindowsWGLGraphicsConfiguration(final AbstractGraphicsScreen screen, final GLCapabilitiesImmutable capsChosen, final GLCapabilitiesImmutable capsRequested, final GLCapabilitiesChooser chooser)
WindowsWGLGraphicsConfigurationback to summary
pack-priv WindowsWGLGraphicsConfiguration(final AbstractGraphicsScreen screen, final WGLGLCapabilities capsChosen, final GLCapabilitiesImmutable capsRequested)

Method Detail

AttribList2DrawableTypeBitsback to summary
pack-priv static int AttribList2DrawableTypeBits(final IntBuffer iattribs, final int niattribs, final IntBuffer iresults)
AttribList2GLCapabilitiesback to summary
pack-priv static WGLGLCapabilities AttribList2GLCapabilities(final AbstractGraphicsDevice device, final GLProfile glp, final long hdc, final int pfdID, final IntBuffer iattribs, final int niattribs, final IntBuffer iresults, final int winattrmask)
AttribList2GLCapabilitiesNoCheckback to summary
pack-priv static WGLGLCapabilities AttribList2GLCapabilitiesNoCheck(final AbstractGraphicsDevice device, final GLProfile glp, final long hdc, final int pfdID, final IntBuffer iattribs, final int niattribs, final IntBuffer iresults, final int winattrmask)
cloneback to summary
public Object clone()

Overrides com.jogamp.nativewindow.DefaultGraphicsConfiguration.clone.

Implements com.jogamp.nativewindow.AbstractGraphicsConfiguration.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

Returns:Object

a clone of this instance.

Annotations
@Override
createFromExternalback to summary
pack-priv static WindowsWGLGraphicsConfiguration createFromExternal(final GLDrawableFactory _factory, final long hdc, final int pfdID, GLProfile glp, final AbstractGraphicsScreen screen, final boolean onscreen)
createPixelFormatDescriptorback to summary
pack-priv static PIXELFORMATDESCRIPTOR createPixelFormatDescriptor(final long hdc, final int pfdID)
createPixelFormatDescriptorback to summary
pack-priv static PIXELFORMATDESCRIPTOR createPixelFormatDescriptor()
fillAttribsForGeneralWGLARBQueryback to summary
pack-priv static int fillAttribsForGeneralWGLARBQuery(final WindowsWGLDrawableFactory.SharedResource sharedResource, final IntBuffer iattributes)
getPixelFormatback to summary
public final PIXELFORMATDESCRIPTOR getPixelFormat()
getPixelFormatIDback to summary
public final int getPixelFormatID()

FIXME: NPE ..

GLCapabilities2AttribListback to summary
pack-priv static boolean GLCapabilities2AttribList(final WindowsWGLDrawableFactory.SharedResource sharedResource, final GLCapabilitiesImmutable caps, final IntBuffer iattributes, final int accelerationValue, final int[] floatMode) throws GLException
GLCapabilities2PFDback to summary
pack-priv static PIXELFORMATDESCRIPTOR GLCapabilities2PFD(final GLCapabilitiesImmutable caps, final PIXELFORMATDESCRIPTOR pfd)
isChoosenByARBback to summary
public final boolean isChoosenByARB()
isDeterminedback to summary
public final boolean isDetermined()

Determined configuration states set target capabilties via setCapsPFD(WGLGLCapabilities), but does not imply a set pixelformat.

See Also
setPixelFormat(long, WGLGLCapabilities), setCapsPFD(WGLGLCapabilities)
isExternalback to summary
public final boolean isExternal()

External configuration's HDC pixelformat shall not be modified

markExternalback to summary
pack-priv final void markExternal()
PFD2DrawableTypeBitsback to summary
pack-priv static int PFD2DrawableTypeBits(final PIXELFORMATDESCRIPTOR pfd)
PFD2GLCapabilitiesback to summary
pack-priv static WGLGLCapabilities PFD2GLCapabilities(final AbstractGraphicsDevice device, final GLProfile glp, final long hdc, final int pfdID, final int winattrmask)
PFD2GLCapabilitiesNoCheckback to summary
pack-priv static WGLGLCapabilities PFD2GLCapabilitiesNoCheck(final AbstractGraphicsDevice device, final GLProfile glp, final long hdc, final int pfdID)
PFD2GLCapabilitiesNoCheckback to summary
pack-priv static WGLGLCapabilities PFD2GLCapabilitiesNoCheck(final AbstractGraphicsDevice device, final GLProfile glp, final PIXELFORMATDESCRIPTOR pfd, final int pfdID)
preselectGraphicsConfigurationback to summary
public final void preselectGraphicsConfiguration(final GLDrawableFactory factory, final int[] pfdIDs)

Preselect the graphics configuration in case it has been determined yet.
Uses a shared device's HDC and the given pfdIDs to preselect the pfd. No PIXELFORMAT is set.

Parameters
pfdIDs:int[]

optional pool of preselected PixelFormat IDs, maybe null for unrestricted selection

See Also
isDetermined()
setCapsPFDback to summary
pack-priv final void setCapsPFD(final WGLGLCapabilities caps)

Only sets this configuration's capabilities and marks it as determined, the actual pixelformat is not set.

setPixelFormatback to summary
pack-priv final void setPixelFormat(final long hdc, final WGLGLCapabilities caps)

Sets the hdc's PixelFormat, this configuration's capabilities and marks it as determined.

toStringback to summary
public String toString()

Overrides com.jogamp.nativewindow.DefaultGraphicsConfiguration.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
updateGraphicsConfigurationback to summary
public final void updateGraphicsConfiguration(final GLDrawableFactory factory, final NativeSurface ns, final int[] pfIDs)

Updates the graphics configuration in case it has been determined yet.
Uses the NativeSurface's HDC.
Ensures that a PIXELFORMAT is set.

Parameters
pfIDs:int[]

optional pool of preselected PixelFormat IDs, maybe null for unrestricted selection

See Also
isDetermined(), isExternal()
wglAllARBPFDIDsback to summary
pack-priv static int[] wglAllARBPFDIDs(final int pfdIDCount)
wglAllGDIPFIDsback to summary
pack-priv static int[] wglAllGDIPFIDs(final long hdc)
wglARBPFDIDCountback to summary
pack-priv static int wglARBPFDIDCount(final WindowsWGLContext sharedCtx, final long hdc)
wglARBPFID2GLCapabilitiesback to summary
pack-priv static WGLGLCapabilities wglARBPFID2GLCapabilities(final WindowsWGLDrawableFactory.SharedResource sharedResource, final AbstractGraphicsDevice device, final GLProfile glp, final long hdc, final int pfdID, final int winattrbits)
wglARBPFID2GLCapabilitiesNoCheckback to summary
pack-priv static WGLGLCapabilities wglARBPFID2GLCapabilitiesNoCheck(final WindowsWGLDrawableFactory.SharedResource sharedResource, final AbstractGraphicsDevice device, final GLProfile glp, final long hdc, final int pfdID, final int winattrbits)
wglARBPFIDs2GLCapabilitiesback to summary
pack-priv static List<GLCapabilitiesImmutable> wglARBPFIDs2GLCapabilities(final WindowsWGLDrawableFactory.SharedResource sharedResource, final AbstractGraphicsDevice device, final GLProfile glp, final long hdc, final int[] pfdIDs, final int winattrbits, final boolean onlyFirstValid)
wglARBPFIDValidback to summary
pack-priv static boolean wglARBPFIDValid(final WindowsWGLContext sharedCtx, final long hdc, final int pfdID)
wglChoosePixelFormatARBback to summary
pack-priv static int[] wglChoosePixelFormatARB(final WindowsWGLDrawableFactory.SharedResource sharedResource, final AbstractGraphicsDevice device, final GLCapabilitiesImmutable capabilities, final long hdc, final IntBuffer iattributes, final int accelerationMode, final FloatBuffer fattributes)