|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
Wrapper for texture data. More...
#include <TextureAsset.h>
Public Member Functions | |
| TextureAsset (bool initEcsData=false) | |
| ~TextureAsset () override=default | |
| void | setImage (tinygltf::Image &&image) |
| sets the image data to an image. The image data will be moved into this asset | |
| void | unload () override |
| unloads all data of this asset | |
| void | updateLoadingState () override |
| updates the loading state according to all components required by 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. | |
Friends | |
| class | AssetManager |
Additional Inherited Members | |
| Protected Attributes inherited from Asset::AssetBase | |
| CpuLoadingState | loadingState = UNLOADED |
| entt::registry & | mainRegistry |
| entt::entity | data |
|
explicit |
Definition at line 13 of file TextureAsset.cpp.
References Asset::AssetBase::AssetBase().
Referenced by EngineCore::GltfTextureAsset::GltfTextureAsset().
|
overridedefault |
| void EngineCore::TextureAsset::setImage | ( | tinygltf::Image && | image | ) |
sets the image data to an image. The image data will be moved into this asset
| image | image to move |
Definition at line 18 of file TextureAsset.cpp.
References Asset::AssetBase::data, Ecs::ImageData::image, Asset::AssetBase::mainRegistry, TRACY_ZONE_SCOPED_NAMED, and updateLoadingState().
|
overridevirtual |
unloads all data of this asset
Reimplemented from Asset::AssetBase.
Definition at line 35 of file TextureAsset.cpp.
|
overridevirtual |
updates the loading state according to all components required by this asset
Reimplemented from Asset::AssetBase.
Definition at line 40 of file TextureAsset.cpp.
References Asset::AssetBase::data, Asset::LOADED, Asset::LOADING, Asset::AssetBase::loadingState, Asset::AssetBase::mainRegistry, and Asset::UNLOADED.
Referenced by setImage().
|
friend |