diff options
Diffstat (limited to 'examples/opengl/contextinfo')
| -rw-r--r-- | examples/opengl/contextinfo/contextinfo.py | 12 | ||||
| -rw-r--r-- | examples/opengl/contextinfo/doc/contextinfo.png | bin | 0 -> 35022 bytes | |||
| -rw-r--r-- | examples/opengl/contextinfo/doc/contextinfo.rst | 10 |
3 files changed, 16 insertions, 6 deletions
diff --git a/examples/opengl/contextinfo/contextinfo.py b/examples/opengl/contextinfo/contextinfo.py index 47fd83abc..73b55df13 100644 --- a/examples/opengl/contextinfo/contextinfo.py +++ b/examples/opengl/contextinfo/contextinfo.py @@ -245,12 +245,12 @@ class RenderWindow(QWindow): context_surface_format = print_surface_format(self.context.format()) surface_format = print_surface_format(self.format()) - text = ("Vendor: {gl_vendor}\n" - "Renderer: {gl_renderer}\n" - "Version: {gl_version}\n" - "Shading language: {gl_lang_version}\n" - "Context Format: {context_surface_format}\n\n" - "Surface Format: {surface_format}") + text = (f"Vendor: {gl_vendor}\n" + f"Renderer: {gl_renderer}\n" + f"Version: {gl_version}\n" + f"Shading language: {gl_lang_version}\n" + f"Context Format: {context_surface_format}\n\n" + f"Surface Format: {surface_format}") self.context.doneCurrent() return text diff --git a/examples/opengl/contextinfo/doc/contextinfo.png b/examples/opengl/contextinfo/doc/contextinfo.png Binary files differnew file mode 100644 index 000000000..c7911f162 --- /dev/null +++ b/examples/opengl/contextinfo/doc/contextinfo.png diff --git a/examples/opengl/contextinfo/doc/contextinfo.rst b/examples/opengl/contextinfo/doc/contextinfo.rst new file mode 100644 index 000000000..1fa9eb42d --- /dev/null +++ b/examples/opengl/contextinfo/doc/contextinfo.rst @@ -0,0 +1,10 @@ +Context Info Example +==================== + +The example shows the information about the OpenGL-related graphics +configuration of the current system. This can be useful as a +diagnostic tool. + +.. image:: contextinfo.png + :width: 400 + :alt: Context Simple Screenshot |
