|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
Extension of TextureAsset for images loaded from glTF files (PNG/JPG) More...
#include <TextureAsset.h>
Public Member Functions | |
| GltfTextureAsset () | |
| ~GltfTextureAsset () override=default | |
| Public Member Functions inherited from EngineCore::TextureAsset | |
| 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. | |
Additional Inherited Members | |
| Protected Attributes inherited from Asset::AssetBase | |
| CpuLoadingState | loadingState = UNLOADED |
| entt::registry & | mainRegistry |
| entt::entity | data |
Extension of TextureAsset for images loaded from glTF files (PNG/JPG)
Unlike ExrTextureAsset, glTF images are fully loaded by tinygltf during model loading, so no separate header phase is needed.
Definition at line 67 of file TextureAsset.h.
| EngineCore::GltfTextureAsset::GltfTextureAsset | ( | ) |
Definition at line 70 of file TextureAsset.cpp.
References Asset::AssetBase::data, Asset::LOADING, Asset::AssetBase::loadingState, EngineCore::TextureAsset::TextureAsset(), and TRACY_ZONE_SCOPED_NAMED.
|
overridedefault |