You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
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:
@@ -153,6 +153,16 @@ int VisualServerRaster::get_render_info(RenderInfo p_info) {
|
||||
return VSG::storage->get_render_info(p_info);
|
||||
}
|
||||
|
||||
String VisualServerRaster::get_video_adapter_name() const {
|
||||
|
||||
return VSG::storage->get_video_adapter_name();
|
||||
}
|
||||
|
||||
String VisualServerRaster::get_video_adapter_vendor() const {
|
||||
|
||||
return VSG::storage->get_video_adapter_vendor();
|
||||
}
|
||||
|
||||
/* TESTING */
|
||||
|
||||
void VisualServerRaster::set_boot_image(const Ref<Image> &p_image, const Color &p_color, bool p_scale, bool p_use_filter) {
|
||||
|
||||
Reference in New Issue
Block a user