mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #113297 from shiena/feature/lifecycle-callbacks
Add platform lifecycle callbacks to CameraServer base class
This commit is contained in:
commit
cd8a292324
8 changed files with 44 additions and 30 deletions
|
|
@ -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();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue