Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Assets::GltfTextureAsset Class Reference

Extension of TextureAsset for images loaded from glTF files (PNG/JPG) More...

#include <TextureAsset.h>

Inheritance diagram for Engine::Assets::GltfTextureAsset:
Collaboration diagram for Engine::Assets::GltfTextureAsset:

Public Member Functions

 GltfTextureAsset ()
 ~GltfTextureAsset () override=default
Public Member Functions inherited from Engine::Assets::Texture
 Texture (bool initEcsData=false)
 ~Texture () 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

Detailed Description

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 54 of file TextureAsset.h.

Constructor & Destructor Documentation

◆ GltfTextureAsset()

Engine::Assets::GltfTextureAsset::GltfTextureAsset ( )

◆ ~GltfTextureAsset()

Engine::Assets::GltfTextureAsset::~GltfTextureAsset ( )
overridedefault

The documentation for this class was generated from the following file:
  • /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Texture/TextureAsset.h