|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
The mesh asset stores geometry data and. More...
#include <MeshAsset.h>
Public Member Functions | |
| MeshAsset (bool initEcsData=false) | |
| void | unload () override |
| Unloads all data and clears the ecs objects. | |
| Ecs::MeshPrimitiveData * | getMeshPrimitiveData () |
| Gets the mesh data for this asset. | |
| Public Member Functions inherited from Asset::AssetBase | |
| AssetBase (bool initializeDefaultEntity=false) | |
| virtual | ~AssetBase () |
| CpuLoadingState | getLoadingState () |
| Gets the loading state of this asset. | |
| void | requestLoad () |
| If this asset is in the UNLOADED state it will get added to the assets to load. | |
| entt::entity | getEntity () const |
| Getter for data. | |
Protected Member Functions | |
| void | updateLoadingState () override |
| Updates the loading state of the asset based on the existence of the ECS components. | |
Friends | |
| class | Ecs::ModelAssetPipeline |
Additional Inherited Members | |
| Protected Attributes inherited from Asset::AssetBase | |
| CpuLoadingState | loadingState = UNLOADED |
| entt::registry & | mainRegistry |
| entt::entity | data |
The mesh asset stores geometry data and.
Definition at line 14 of file MeshAsset.h.
| EngineCore::MeshAsset::MeshAsset | ( | bool | initEcsData = false | ) |
Definition at line 5 of file MeshAsset.cpp.
References Asset::AssetBase::AssetBase().
| Ecs::MeshPrimitiveData * EngineCore::MeshAsset::getMeshPrimitiveData | ( | ) |
Gets the mesh data for this asset.
Definition at line 35 of file MeshAsset.cpp.
References Asset::AssetBase::data, Asset::AssetBase::getLoadingState(), Asset::LOADED, and Asset::AssetBase::mainRegistry.
Referenced by EngineCore::RenderingDataManager::collectMaterialsFromScene(), EngineCore::RenderingDataManager::snapshotRenderableMeshes(), EngineCore::RenderingDataManager::updatePrimitiveData(), EngineCore::RenderingDataManager::updatePrimitiveDataInstanced(), and EngineCore::RenderingDataManager::updateTransforms().
|
overridevirtual |
Unloads all data and clears the ecs objects.
Reimplemented from Asset::AssetBase.
Definition at line 9 of file MeshAsset.cpp.
|
overrideprotectedvirtual |
Updates the loading state of the asset based on the existence of the ECS components.
Reimplemented from Asset::AssetBase.
Definition at line 14 of file MeshAsset.cpp.
References Asset::AssetBase::data, Asset::LOADED, Asset::LOADING, Asset::AssetBase::loadingState, Asset::AssetBase::mainRegistry, and Asset::UNLOADED.
|
friend |
Definition at line 16 of file MeshAsset.h.