diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-09-13 20:08:05 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-01-06 00:37:56 +0100 |
commit | 0cad2c0cd103a7d616d55e4d5c973a20f398115f (patch) | |
tree | fcd956c7c349397a62c8c9ede96f5d1812b0980e /doc | |
parent | 61dd7748cafafca08b8f87183ddf42de06b58911 (diff) |
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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/VisualServer.xml | 16 |
1 files changed, 16 insertions, 0 deletions
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. </description> </method> + <method name="get_video_adapter_name" qualifiers="const"> + <return type="String"> + </return> + <description> + 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. + </description> + </method> + <method name="get_video_adapter_vendor" qualifiers="const"> + <return type="String"> + </return> + <description> + 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. + </description> + </method> <method name="get_white_texture"> <return type="RID"> </return> |