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.
This commit is contained in:
Hugo Locurcio
2019-09-13 20:08:05 +02:00
parent 61dd7748ca
commit 0cad2c0cd1
14 changed files with 70 additions and 4 deletions
+2
View File
@@ -742,6 +742,8 @@ public:
int get_captured_render_info(VS::RenderInfo p_info) { return 0; }
int get_render_info(VS::RenderInfo p_info) { return 0; }
String get_video_adapter_name() const { return String(); }
String get_video_adapter_vendor() const { return String(); }
static RasterizerStorage *base_singleton;