mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-22 19:29:04 -05:00
Asset loading and synchronization
This commit is contained in:
@@ -45,20 +45,14 @@ void GuiAssetComponent::render() {
|
||||
|
||||
AssetManager& assetManager = OsEng.assetManager();
|
||||
|
||||
std::unordered_set<std::shared_ptr<Asset>> allAssets;
|
||||
std::vector<std::shared_ptr<Asset>> loadedAssets = assetManager.loadedAssets();
|
||||
|
||||
for (const std::shared_ptr<Asset>& ancestor : loadedAssets) {
|
||||
const std::vector<std::shared_ptr<Asset>> all = ancestor->allAssets();
|
||||
std::copy(all.begin(), all.end(), std::inserter(allAssets, allAssets.end()));
|
||||
}
|
||||
|
||||
|
||||
std::vector<std::shared_ptr<Asset>> allAssets =
|
||||
assetManager.rootAsset()->subTreeAssets();
|
||||
|
||||
for (const auto& a : allAssets) {
|
||||
ImGui::Text("%s", a->assetFilePath().c_str());
|
||||
ImGui::NextColumn();
|
||||
|
||||
assetManager.currentAssetState(a.get());
|
||||
|
||||
ImGui::NextColumn();
|
||||
ImGui::Separator();
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user