Geeks3D Forums

GeeXLab => GeeXLab - english forum => Topic started by: macxcool on August 14, 2019, 07:08:34 PM

Title: How can I get Windows OpenGL version from command line
Post by: macxcool on August 14, 2019, 07:08:34 PM
Is there a way to get the OpenGL version output on the command line without having to click on a GUI? It's OK if a GUI appears as long as it disappears without user interaction. Can I use GeexLab (or something else) to do something like this?
I was using GPU Caps Viewer to export an XML file but it doesn't want to run on some of the computers I work with. I wonder if there's another possibility. Exporting a text file or XML file is good; I can parse that after the fact. I want to do this with a script, though, so no clicking at all.
Any suggestions are welcome.
Is there any way, for instance, to get gl-x to dump a file and then exit?
Title: Re: How can I get Windows OpenGL version from command line
Post by: Stefan on August 14, 2019, 07:39:00 PM
GLEW comes with some CLI tools which create a text file
http://glew.sourceforge.net/
Title: Re: How can I get Windows OpenGL version from command line
Post by: macxcool on August 14, 2019, 08:23:03 PM
That might just work for me. Thanks. I didn't think of that. The Windows download comes with glewinfo.exe which seems to be exactly what I want!