You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #pragma once
- #include "common.hpp"
-
-
- /** Accesses the global App pointer */
- #define APP rack::appGet()
-
-
- namespace rack {
-
-
- namespace history {
- struct State;
- } // namespace history
-
-
- namespace engine {
- struct Engine;
- } // namespace engine
-
-
- struct Window;
- struct PatchManager;
-
-
- namespace widget {
- struct EventState;
- };
-
-
- namespace app {
- struct Scene;
- } // namespace app
-
-
- /** Contains the application state */
- struct App {
- widget::EventState *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();
-
-
- } // namespace rack
|