1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Merge pull request #113297 from shiena/feature/lifecycle-callbacks

Add platform lifecycle callbacks to CameraServer base class
This commit is contained in:
Thaddeus Crews
2025-12-02 11:51:52 -06:00
8 changed files with 44 additions and 30 deletions

View File

@@ -111,6 +111,11 @@ public:
// Intended for use with custom CameraServer implementation.
RID feed_texture(int p_id, FeedImage p_texture);
// Platform lifecycle callbacks (virtual, default empty implementation).
virtual void handle_application_pause() {}
virtual void handle_application_resume() {}
virtual void handle_display_rotation_change(int p_orientation) { (void)p_orientation; }
CameraServer();
~CameraServer();
};