18#include <DebugGUI/DebugGUI.h>
19#include <DebugGUI/Sokol3DUtils.h>
20#include <DebugGUI/imgui.h>
39 std::this_thread::sleep_for(std::chrono::milliseconds(1000));
44 {
"test",
"TST",
"A"}},
48 void* window = initGUI(
"A test window");
49 auto count = std::make_shared<int>(0);
50 sokol::init3DContext(window);
52 auto guiCallback = [
count]() {
53 ImGui::Begin(
"Some sub-window");
54 ImGui::Text(
"Counter value: %i", *
count);
58 callbacks.
set<CallbackService::Id::ClockTick>(
59 [
count, window, guiCallback]() {
60 (*count)++; window ? pollGUI(window, guiCallback) :
false; });
void readyToQuit(bool all)
Compatibility with old API.
decltype(auto) make(const Output &spec, Args... args)
Defining PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
AlgorithmSpec::ProcessCallback adaptStateless(LAMBDA l)
std::vector< InputSpec > Inputs
std::vector< OutputSpec > Outputs
AlgorithmSpec::InitCallback adaptStateful(LAMBDA l)
WorkflowSpec defineDataProcessing(ConfigContext const &)
This function hooks up the the workflow specifications into the DPL driver.