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
"
11
#include "
framework/handlers/resourceLoader.h
"
12
13
namespace
visutwin::canvas
14
{
15
class
Asset
;
16
21
class
AssetRegistry
:
public
EventHandler
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
}
visutwin::canvas::Asset
Loadable resource wrapper supporting textures, containers (GLB), and fonts.
Definition
asset.h:71
visutwin::canvas::AssetRegistry::list
std::vector< Asset * > list(bool *preloadFilter=nullptr) const
Definition
assetRegistry.cpp:13
visutwin::canvas::AssetRegistry::AssetRegistry
AssetRegistry(const std::shared_ptr< ResourceLoader > &resourceLoader)
Definition
assetRegistry.cpp:11
visutwin::canvas::EventHandler
Definition
eventHandler.h:61
eventHandler.h
visutwin::canvas
Definition
eventHandler.cpp:9
resourceLoader.h
framework
assets
assetRegistry.h
Generated by
1.16.1