|
Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
|
Extension of TextureAsset for images loaded from glTF files (PNG/JPG) More...
#include <TextureAsset.h>
Public Member Functions | |
| GltfTextureAsset () | |
| Creates a glTF texture asset with backing ECS data initialized. | |
| ~GltfTextureAsset () override=default | |
| Destroys the glTF texture asset. | |
| Public Member Functions inherited from Engine::Assets::Texture | |
| Texture (bool initEcsData=false) | |
| Creates a texture asset. | |
| ~Texture () override=default | |
| Destroys the texture asset. | |
| 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) | |
| Creates a base asset and optionally allocates its default ECS entity. | |
| virtual | ~AssetBase () |
| Releases base asset resources. | |
| 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 |
| Current CPU loading state. | |
| entt::registry & | mainRegistry |
| Registry that owns this asset's ECS data. | |
| entt::entity | data |
| Entity containing the asset's component 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 75 of file TextureAsset.h.
| Engine::Assets::GltfTextureAsset::GltfTextureAsset | ( | ) |
Creates a glTF texture asset with backing ECS data initialized.
|
overridedefault |
Destroys the glTF texture asset.