com.jogamp.opengl.impl.windows.wgl
Class WindowsWGLGraphicsConfiguration

java.lang.Object
  extended by javax.media.nativewindow.DefaultGraphicsConfiguration
      extended by com.jogamp.opengl.impl.windows.wgl.WindowsWGLGraphicsConfiguration
All Implemented Interfaces:
Cloneable, AbstractGraphicsConfiguration

public class WindowsWGLGraphicsConfiguration
extends DefaultGraphicsConfiguration
implements Cloneable


Field Summary
protected static boolean DEBUG
           
protected static int MAX_ATTRIBS
           
protected static int MAX_PFORMATS
           
 
Fields inherited from class javax.media.nativewindow.DefaultGraphicsConfiguration
capabilitiesChosen, capabilitiesRequested
 
Method Summary
 Object clone()
           
 PIXELFORMATDESCRIPTOR getPixelFormat()
           
 int getPixelFormatID()
           
 boolean isChoosenByARB()
           
 boolean isDetermined()
           
 void preselectGraphicsConfiguration(GLDrawableFactory factory, 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.
 String toString()
           
 void updateGraphicsConfiguration(GLDrawableFactory factory, NativeSurface ns, int[] pfIDs)
          Updates the graphics configuration in case it has been determined yet.
Uses the NativeSurface's HDC.
Ensures that a PIXELFORMAT is set.
 
Methods inherited from class javax.media.nativewindow.DefaultGraphicsConfiguration
getChosenCapabilities, getNativeGraphicsConfiguration, getRequestedCapabilities, getScreen, setChosenCapabilities, setScreen, toHexString, toHexString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEBUG

protected static final boolean DEBUG

MAX_PFORMATS

protected static final int MAX_PFORMATS
See Also:
Constant Field Values

MAX_ATTRIBS

protected static final int MAX_ATTRIBS
See Also:
Constant Field Values
Method Detail

clone

public Object clone()
Overrides:
clone in class DefaultGraphicsConfiguration

updateGraphicsConfiguration

public final void updateGraphicsConfiguration(GLDrawableFactory factory,
                                              NativeSurface ns,
                                              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:
factory -
ns -
pfIDs - optional pool of preselected PixelFormat IDs, maybe null for unrestricted selection
See Also:
isDetermined()

preselectGraphicsConfiguration

public final void preselectGraphicsConfiguration(GLDrawableFactory factory,
                                                 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:
factory -
pfIDs - optional pool of preselected PixelFormat IDs, maybe null for unrestricted selection
See Also:
isDetermined()

isDetermined

public final boolean isDetermined()

getPixelFormat

public final PIXELFORMATDESCRIPTOR getPixelFormat()

getPixelFormatID

public final int getPixelFormatID()

isChoosenByARB

public final boolean isChoosenByARB()

toString

public String toString()
Overrides:
toString in class DefaultGraphicsConfiguration


Copyright 2010 JogAmp Community.