summaryrefslogtreecommitdiff
path: root/servers/visual_server.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-01-06 07:35:12 +0100
committerGitHub <noreply@github.com>2020-01-06 07:35:12 +0100
commitcab97f4b504a67955108b5346e033502cae636fc (patch)
treec3f3cbc73131b93b910f206dc009ffab2136efc8 /servers/visual_server.cpp
parentd968d032e91412ae980d6415f625c3b1e65fd9fa (diff)
parent0cad2c0cd103a7d616d55e4d5c973a20f398115f (diff)
Merge pull request #32126 from Calinou/expose-video-adapter-name-vendor
Add VisualServer methods to get the video adapter name and vendor
Diffstat (limited to 'servers/visual_server.cpp')
-rw-r--r--servers/visual_server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/visual_server.cpp b/servers/visual_server.cpp
index 1f72848b15..b9b492e758 100644
--- a/servers/visual_server.cpp
+++ b/servers/visual_server.cpp
@@ -2032,6 +2032,8 @@ void VisualServer::_bind_methods() {
ClassDB::bind_method(D_METHOD("init"), &VisualServer::init);
ClassDB::bind_method(D_METHOD("finish"), &VisualServer::finish);
ClassDB::bind_method(D_METHOD("get_render_info", "info"), &VisualServer::get_render_info);
+ ClassDB::bind_method(D_METHOD("get_video_adapter_name"), &VisualServer::get_video_adapter_name);
+ ClassDB::bind_method(D_METHOD("get_video_adapter_vendor"), &VisualServer::get_video_adapter_vendor);
#ifndef _3D_DISABLED
ClassDB::bind_method(D_METHOD("make_sphere_mesh", "latitudes", "longitudes", "radius"), &VisualServer::make_sphere_mesh);