31 lines
797 B
C++
31 lines
797 B
C++
#pragma once
|
|
|
|
#include "RuntimeLiveState.h"
|
|
|
|
#include <chrono>
|
|
#include <vector>
|
|
|
|
struct RenderStateCompositionInput
|
|
{
|
|
const std::vector<RuntimeRenderState>* baseLayerStates = nullptr;
|
|
RuntimeLiveState* liveState = nullptr;
|
|
bool allowLiveCommits = false;
|
|
bool collectLiveCommitRequests = true;
|
|
double liveSmoothing = 0.0;
|
|
std::chrono::milliseconds liveCommitDelay = std::chrono::milliseconds(150);
|
|
std::chrono::steady_clock::time_point now = std::chrono::steady_clock::now();
|
|
};
|
|
|
|
struct RenderStateCompositionResult
|
|
{
|
|
std::vector<RuntimeRenderState> layerStates;
|
|
std::vector<RuntimeLiveOscCommitRequest> commitRequests;
|
|
bool hasLayerStates = false;
|
|
};
|
|
|
|
class RenderStateComposer
|
|
{
|
|
public:
|
|
RenderStateCompositionResult BuildFrameState(const RenderStateCompositionInput& input) const;
|
|
};
|