Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (404)
games submitted by our members
Games in WIP (289)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  graphicsDevice.getConfigurations() maps to what?  (Read 1233 times)
0 Members and 1 Guest are viewing this topic.
Offline Abuse

JGO Coder


Medals: 2


falling into the abyss of reality


« Posted 2004-05-07 16:29:13 »

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?

1  
2  
3  
4  
5  
6  
7  
8  
9  
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?

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here!
Offline javawillie

Junior Member




Hola, Paco.


« Reply #1 - Posted 2004-05-07 21:08:50 »

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.
Offline Abuse

JGO Coder


Medals: 2


falling into the abyss of reality


« Reply #2 - Posted 2004-05-07 22:29:16 »

interesting, most interesting.

<< MSDN noob Cheesy

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

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.

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline javawillie

Junior Member




Hola, Paco.


« Reply #3 - Posted 2004-05-07 23:05:55 »

Not sure. I don't do any MS programming at all.  :-P
Offline immudium

Junior Member




Gorram it!


« Reply #4 - Posted 2004-05-10 04:07:42 »

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.  Grin
Offline Abuse

JGO Coder


Medals: 2


falling into the abyss of reality


« Reply #5 - Posted 2004-05-10 10:37:53 »

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

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here!
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (49 views)
2013-05-17 21:29:12

alaslipknot (58 views)
2013-05-16 21:24:48

gouessej (88 views)
2013-05-16 00:53:38

gouessej (86 views)
2013-05-16 00:17:58

theagentd (95 views)
2013-05-15 15:01:13

theagentd (88 views)
2013-05-15 15:00:54

StreetDoggy (133 views)
2013-05-14 15:56:26

kutucuk (154 views)
2013-05-12 17:10:36

kutucuk (154 views)
2013-05-12 15:36:09

UnluckyDevil (164 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.112 seconds with 21 queries.