Find info about installed gfxcards?

Post: #1
Hi all!

I would like to detect which kind of gfxcard the computer is using.. + some useful info about it like for example how high resolution it can handle, number of colors and vertex shader version. Where can i find this information? I use c++ with carbon and opengl (os x 10.3.9 -> 10.5 + linux).

Any suggestions? Sneaky
Quote this message in a reply
Posts: 5,143
Joined: 2002.04
Post: #2
For Mac OS X, a combination of messing around in IOKit (nasty stuff) and CGLQueryRendererInfo/CGLDescribeRenderer will tell you what you need.

For Linux, I have no idea if it's even possible, sorry. glxinfo/xdpyinfo give some information, and their source is available. That'd be an obvious place to start.
Quote this message in a reply
Post: #3
Tnx for the quick answer! Smile

I really hope that i don't have to mess around with IOKit any more.. so i'll wait with this issue for a while just in case someone here knows an easier way (i always start to feel veryvery tired when i think about IOKit.. wierd stuff). Huh
Quote this message in a reply
Posts: 1,234
Joined: 2002.10
Post: #4
No need to drop to IOKit for this.

CGDisplayAvailableModes will tell you the resolutions/color depths.
glGetString will tell you card name, shading language version and extensions.
glGetInteger will tell you some more limits like max viewport/texture size.
CGLDescribeRenderer will tell you some additional info like max video ram.

OpenGL Info (souce code at bottom of page.)
Quote this message in a reply
Post: #5
Thank you! Works perfectly! Smile
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Xcode 4 Installed No iOS SDK McSpider 4 10,329 Jun 19, 2011 04:38 AM
Last Post: DoG