graphicsDevice.getConfigurations() maps to what?

What purpose do alternate GraphicsConfigurations for a given GraphicsDevice serve?

The only difference I can see in the returned objects, is their toString says they have a different pixfmt.
What are these different pixfmt’s?


Device 0,GC 0 = Win32GraphicsConfig[dev=Win32GraphicsDevice[screen=0],pixfmt=1]
Device 0,GC 1 = Win32GraphicsConfig[dev=Win32GraphicsDevice[screen=0],pixfmt=2]
Device 0,GC 2 = Win32GraphicsConfig[dev=Win32GraphicsDevice[screen=0],pixfmt=3]
Device 0,GC 3 = Win32GraphicsConfig[dev=Win32GraphicsDevice[screen=0],pixfmt=16]
Device 0,GC 4 = Win32GraphicsConfig[dev=Win32GraphicsDevice[screen=0],pixfmt=17]
Device 0,GC 5 = Win32GraphicsConfig[dev=Win32GraphicsDevice[screen=0],pixfmt=20]
Device 0,GC 6 = Win32GraphicsConfig[dev=Win32GraphicsDevice[screen=0],pixfmt=21]
Device 0,GC 7 = Win32GraphicsConfig[dev=Win32GraphicsDevice[screen=0],pixfmt=24]
Device 0,GC 8 = Win32GraphicsConfig[dev=Win32GraphicsDevice[screen=0],pixfmt=25]

They all have the same ColorModels (INT_RGB), and the same Buffer and Image Capabilities.

So, basically my question is, What do these different GraphicsConfiguration’s represent/map to?

It looks like the pixel formats are the actual constant values for the MS PixelFormat Enum.

http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdrawingimagingpixelformatclasstopic.asp?frame=true

They are specific to Windows I believe.

interesting, most interesting.

<< MSDN noob :smiley:

Is there a section somewhere on msdn that gives the value assigned to each enum?
I can’t see any obvious javadoc style link :frowning:

Curious that the ColorModel that each Configuration returns is identical, I would have expected them to match the pixel format enumerated type that they represent.
Am I simply misunderstanding something, or have alternate GraphicsConfigurations not been implemented yet.

Not sure. I don’t do any MS programming at all. :stuck_out_tongue:

As to why the ColorModel of each configuration is identical, according to trembovetski from this thread:
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=2D;action=display;num=1067546922

"GraphicsConfiguration objects correspond to pixel formats.
On windows the depth will always be the same as the desktop depth. On other platforms (i.e. Solaris sparc) there are video boards which can handle windows with different depths, so there you can have GraphicsConfigurations with different depths (GC objects correspond to X11 visuals on unix). "

I think thats related to what you were talking about. If not, I was never here. ;D

yay, thats what I was after - ta very much, musta missed that thread.