From 0cad2c0cd103a7d616d55e4d5c973a20f398115f Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 13 Sep 2019 20:08:05 +0200 Subject: Add VisualServer methods to get the video adapter name and vendor These methods can be used in scripts to retrieve the OpenGL `GL_RENDERER` and `GL_VENDOR` strings (respectively). This closes #28404. --- doc/classes/VisualServer.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/VisualServer.xml b/doc/classes/VisualServer.xml index 5c29601134..8d60da7a3f 100644 --- a/doc/classes/VisualServer.xml +++ b/doc/classes/VisualServer.xml @@ -1397,6 +1397,22 @@ Returns the id of the test texture. Creates one if none exists. + + + + + Returns the name of the video adapter (e.g. "GeForce GTX 1080/PCIe/SSE2"). + [b]Note:[/b] When running a headless or server binary, this function returns an empty string. + + + + + + + Returns the vendor of the video adapter (e.g. "NVIDIA Corporation"). + [b]Note:[/b] When running a headless or server binary, this function returns an empty string. + + -- cgit v1.2.3