summaryrefslogtreecommitdiffstats
path: root/servers/display_server.h
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.h
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.h')
-rw-r--r--servers/display_server.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/display_server.h b/servers/display_server.h
index 8f2df62094..d8e67b4f92 100644
--- a/servers/display_server.h
+++ b/servers/display_server.h
@@ -301,6 +301,7 @@ public:
}
virtual float screen_get_refresh_rate(int p_screen = SCREEN_OF_MAIN_WINDOW) const = 0;
virtual Color screen_get_pixel(const Point2i &p_position) const { return Color(); };
+ virtual Ref<Image> screen_get_image(int p_screen = SCREEN_OF_MAIN_WINDOW) const { return Ref<Image>(); };
virtual bool is_touchscreen_available() const;
// Keep the ScreenOrientation enum values in sync with the `display/window/handheld/orientation`