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

View File

@ -1017,6 +1017,8 @@ public:
};
virtual int get_render_info(RenderInfo p_info) = 0;
virtual String get_video_adapter_name() const = 0;
virtual String get_video_adapter_vendor() const = 0;
/* Materials for 2D on 3D */