Sound Bakery  v0.1.0
Open-source audio middleware for games
Loading...
Searching...
No Matches
AppManager.h
1#pragma once
2
3#include "Manager.h"
4
5class Widget;
6
7class AppManager : public Manager
8{
9public:
10 AppManager(App* appOwner) : Manager(appOwner) {}
11
12public:
13 void Init(const std::string& executablePath);
14 virtual void Tick(double deltaTime) {}
15 virtual void Exit() {}
16
17public:
18 double GetDeltaTime() const;
19
20public:
21 /*
22 * Opens a file dialogue window to create the project and handles creating
23 * files.
24 */
25 void CreateNewProject();
26
27 /*
28 * Opens a file dialogue and opens the project is found.
29 */
30 void OpenProject();
31
32private:
33 void OnSplashWidgetDestroy(Widget* widget);
34};
Definition AppManager.h:8
virtual void Exit()
Called when closing the app.
Definition AppManager.h:15
virtual void Tick(double deltaTime)
Called every frame regardless of if the app is closing.
Definition AppManager.h:14
Definition App.h:10
Manager class that can handle application operations or project operations. For example,...
Definition Manager.h:14
Definition Widget.h:16