forked from VCVRack/Rack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.hpp
55 lines (35 loc) · 747 Bytes
/
app.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#pragma once
#include <common.hpp>
namespace rack {
namespace history {
struct State;
} // namespace history
namespace engine {
struct Engine;
} // namespace engine
struct Window;
struct PatchManager;
namespace event {
struct State;
} // namespace event
namespace app {
struct Scene;
} // namespace app
/** Contains the application state */
struct App {
event::State *event = NULL;
app::Scene *scene = NULL;
engine::Engine *engine = NULL;
Window *window = NULL;
history::State *history = NULL;
PatchManager *patch = NULL;
void init();
~App();
};
void appInit();
void appDestroy();
/** Returns the global App pointer */
App *appGet();
/** Accesses the global App pointer */
#define APP appGet()
} // namespace rack