VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
assetRegistry.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2025-2026 Arnis Lektauers
3//
4// Created by Arnis Lektauers on 12.10.2025.
5//
6#pragma once
7
8#include <unordered_set>
9
10#include "core/eventHandler.h"
12
13namespace visutwin::canvas
14{
15 class Asset;
16
22 {
23 public:
24 AssetRegistry(const std::shared_ptr<ResourceLoader>& resourceLoader);
25
26 // Create a filtered list of assets from the registry
27 std::vector<Asset*> list(bool* preloadFilter = nullptr) const;
28
29 private:
30 std::unordered_set<Asset*> _assets;
31 };
32}
Loadable resource wrapper supporting textures, containers (GLB), and fonts.
Definition asset.h:71
std::vector< Asset * > list(bool *preloadFilter=nullptr) const
AssetRegistry(const std::shared_ptr< ResourceLoader > &resourceLoader)