summaryrefslogtreecommitdiffstats
path: root/servers/display_server.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-05-16 10:48:16 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-05-16 10:48:16 +0200
commit265c70a369dc99043b012aa0c714a022d4717f0b (patch)
tree364e4f0b50c598acbf73e909dee6ac74d99a8666 /servers/display_server.cpp
parent8cfa19a078ecc7c5690740a8c669d1ecbd04bb0c (diff)
parentab94024ce17c96d54d34a66672db470e3b82bef4 (diff)
downloadredot-engine-265c70a369dc99043b012aa0c714a022d4717f0b.tar.gz
Merge pull request #75142 from bruvzg/scr
[DisplayServer] Implement screen_get_image method for LinuxBSD/X11, macOS and Windows.
Diffstat (limited to 'servers/display_server.cpp')
-rw-r--r--servers/display_server.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/display_server.cpp b/servers/display_server.cpp
index dc8c308389..516f2f1be6 100644
--- a/servers/display_server.cpp
+++ b/servers/display_server.cpp
@@ -660,6 +660,7 @@ void DisplayServer::_bind_methods() {
ClassDB::bind_method(D_METHOD("screen_get_max_scale"), &DisplayServer::screen_get_max_scale);
ClassDB::bind_method(D_METHOD("screen_get_refresh_rate", "screen"), &DisplayServer::screen_get_refresh_rate, DEFVAL(SCREEN_OF_MAIN_WINDOW));
ClassDB::bind_method(D_METHOD("screen_get_pixel", "position"), &DisplayServer::screen_get_pixel);
+ ClassDB::bind_method(D_METHOD("screen_get_image", "screen"), &DisplayServer::screen_get_image, DEFVAL(SCREEN_OF_MAIN_WINDOW));
ClassDB::bind_method(D_METHOD("screen_set_orientation", "orientation", "screen"), &DisplayServer::screen_set_orientation, DEFVAL(SCREEN_OF_MAIN_WINDOW));
ClassDB::bind_method(D_METHOD("screen_get_orientation", "screen"), &DisplayServer::screen_get_orientation, DEFVAL(SCREEN_OF_MAIN_WINDOW));