[DisplayServer] Implement screen_get_image method for LinuxBSD/X11, macOS and Windows.

This commit is contained in:
bruvzg 2023-03-16 23:26:09 +02:00
parent 161d028ae8
commit ab94024ce1
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
9 changed files with 232 additions and 4 deletions

View file

@ -335,6 +335,7 @@ public:
virtual Rect2i screen_get_usable_rect(int p_screen = SCREEN_OF_MAIN_WINDOW) const override;
virtual float screen_get_refresh_rate(int p_screen = SCREEN_OF_MAIN_WINDOW) const override;
virtual Color screen_get_pixel(const Point2i &p_position) const override;
virtual Ref<Image> screen_get_image(int p_screen = SCREEN_OF_MAIN_WINDOW) const override;
virtual void screen_set_keep_on(bool p_enable) override;
virtual bool screen_is_kept_on() const override;