Author Topic: How can I get Windows OpenGL version from command line  (Read 411 times)

0 Members and 1 Guest are viewing this topic.

macxcool

  • Zombie
  • *
  • Posts: 2
    • View Profile
How can I get Windows OpenGL version from command line
« 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?
« Last Edit: August 14, 2019, 07:14:45 PM by macxcool »


Stefan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4398
    • View Profile
Re: How can I get Windows OpenGL version from command line
« Reply #1 on: August 14, 2019, 07:39:00 PM »
GLEW comes with some CLI tools which create a text file
http://glew.sourceforge.net/

macxcool

  • Zombie
  • *
  • Posts: 2
    • View Profile
Re: How can I get Windows OpenGL version from command line
« Reply #2 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!