DEKI/ENGINE docs
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
SceneTargetFilter.h File Reference

Namespaces

namespace  DekiEditor

Functions

std::vector< std::string > DekiEditor::ObjectMissingCapabilities (const nlohmann::json &obj, const std::set< std::string > &capabilities)
 What obj needs that capabilities does not offer.
nlohmann::json DekiEditor::FilterSceneForTarget (const nlohmann::json &scene, const std::set< std::string > &capabilities)
 scene with every object the target cannot satisfy removed.
bool DekiEditor::SceneHasTargetRequirements (const nlohmann::json &scene)
 True when the filter would change anything, so a caller can skip the copy.
bool DekiEditor::PreserveTargetRequirements (const std::string &scenePath, const nlohmann::json &before)
 Copies every object's "requires" from before (the file as it was) into the file the editor has just rewritten, matching objects by id.
std::map< int64_t, std::vector< std::string > > DekiEditor::CollectTargetRequirements (const nlohmann::json &scene)
 The "requires" of every object in scene, keyed by object id.