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

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

#include <TextureAsset.h>

Inheritance diagram for EngineCore::GltfTextureAsset:
Collaboration diagram for EngineCore::GltfTextureAsset:

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

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.

Author
Konstantin Passig
Date
19.12.2025

Definition at line 67 of file TextureAsset.h.

Constructor & Destructor Documentation

◆ GltfTextureAsset()

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.

Here is the call graph for this function:

◆ ~GltfTextureAsset()

EngineCore::GltfTextureAsset::~GltfTextureAsset ( )
overridedefault

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