Querying Graphics Card Name

Richard Jones richardjones at optushome.com.au
Thu Aug 9 18:06:46 EDT 2007


Benjamin Goldenberg wrote:
> I would like to find out the name of the graphics card of the machine
> my program is running on. I have looked into the pyopengl module, and
> using them to query the card, but it seems like there ought to be a
> simpler way to find this out without setting up a glcontext. Does
> anyone have any ideas?

You need a context if you're going to ask OpenGL to tell you what the card
is. To find out any other way would be highly platform-specific, possibly
though looking in the /proc directory on Linux, and who-knows-where-else on
other platforms.

Also, have a look at tools/info.py in the pyglet project
<http://www.pyglet.org/>


    Richard




More information about the Python-list mailing list