mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add get_screen_refresh_rate() to OS
This method can be used to get the refresh rate of a given screen. It is supported on Windows, macOS, Linux, Android and iOS (but not HTML5).
This commit is contained in:
parent
8975470bc2
commit
cec7c908ca
17 changed files with 177 additions and 1 deletions
|
|
@ -445,6 +445,7 @@ public:
|
|||
virtual Point2 get_screen_position(int p_screen = -1) const;
|
||||
virtual Size2 get_screen_size(int p_screen = -1) const;
|
||||
virtual int get_screen_dpi(int p_screen = -1) const;
|
||||
virtual float get_screen_refresh_rate(int p_screen = -1) const;
|
||||
|
||||
virtual Point2 get_window_position() const;
|
||||
virtual void set_window_position(const Point2 &p_position);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue