|
@ -18,6 +18,7 @@ Application::Application(){ |
|
|
ofAddListener(Gui::instance()->event, this, &Application::onGuiEvent); |
|
|
ofAddListener(Gui::instance()->event, this, &Application::onGuiEvent); |
|
|
ofAddListener(Gui::instance()->jointPressedEvent, this, &Application::onJointPressed); |
|
|
ofAddListener(Gui::instance()->jointPressedEvent, this, &Application::onJointPressed); |
|
|
ofAddListener(Gui::instance()->surfacePressedEvent, this, &Application::onSurfacePressed); |
|
|
ofAddListener(Gui::instance()->surfacePressedEvent, this, &Application::onSurfacePressed); |
|
|
|
|
|
ofAddListener(Gui::instance()->backgroundPressedEvent, this, &Application::onBackgroundPressed); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void Application::setup(){ |
|
|
void Application::setup(){ |
|
@ -131,6 +132,10 @@ void Application::onSurfacePressed(GuiSurfaceEvent & e){ |
|
|
_state->onSurfacePressed(this, e); |
|
|
_state->onSurfacePressed(this, e); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Application::onBackgroundPressed(GuiBackgroundEvent & e){ |
|
|
|
|
|
_state->onBackgroundPressed(this, e); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void Application::addFboSource(FboSource & fboSource){ |
|
|
void Application::addFboSource(FboSource & fboSource){ |
|
|
_mediaServer.addFboSource(fboSource); |
|
|
_mediaServer.addFboSource(fboSource); |
|
|
} |
|
|
} |
|
|