1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

[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
9 changed files with 232 additions and 4 deletions

View File

@@ -277,6 +277,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`