https://github.com/esss/glinfo
A C++ Qt-based utility to assess the OpenGL capabilities of the current platform
https://github.com/esss/glinfo
Last synced: about 1 year ago
JSON representation
A C++ Qt-based utility to assess the OpenGL capabilities of the current platform
- Host: GitHub
- URL: https://github.com/esss/glinfo
- Owner: ESSS
- License: mit
- Created: 2018-05-09T11:40:13.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-10T12:48:37.000Z (about 8 years ago)
- Last Synced: 2025-04-05T10:33:26.196Z (about 1 year ago)
- Language: C++
- Size: 4.88 KB
- Stars: 13
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
glinfo
======
`glinfo` is a small utility to assess the OpenGL capabilities of the current environment. When called without parameters, the command will create a hidden OpenGL context using Qt and write to standard output contents similar to:
```
LibGL Vendor: NVIDIA Corporation
Renderer: GeForce GTX 980/PCIe/SSE2
Version: 4.6.0 NVIDIA 388.13
Shading Language: 4.60 NVIDIA
```
If the context can't be created, the command will output:
```
ERROR: Unable to create an OpenGL context.
```
Most of the (short) code is taken directly from the source code of Qt's `qtdiag` utility. Since standard output writing can have buffering issues on Windows (see `ETK-1517`, and the open Qt bug: https://bugreports.qt.io/browse/QTBUG-67860), the command includes a `-f` option to write the contents to a file (the contents are still written to standard output regardless). The contents of the file are UTF-8 encoded.
An `environment.devenv.yml` file is provided for local development, and the compilation itself should work fine on `conda build`. Currently the conda package can only be reliably built on win64 (seems to be a problem with the Qt package used on linux64 + py27).