Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
shkyera::TextureAssetSelector Class Reference

#include <AssetSelector.hpp>

Inheritance diagram for shkyera::TextureAssetSelector:
[legend]

Public Member Functions

 ~TextureAssetSelector ()
 
- Public Member Functions inherited from shkyera::AssetSelector< Texture >
 AssetSelector ()=default
 
 AssetSelector (const std::string &title)
 
 AssetSelector (const std::string &title, Registry *registry, std::optional< AssetHandle > asset)
 
virtual ~AssetSelector ()=default
 
void setUpdateCallback (std::function< void(AssetHandle file)> callback)
 
void setClearCallback (std::function< void()> callback)
 
void draw ()
 

Private Member Functions

void drawAsset (Registry *registry, AssetHandle handle) override
 
void clearAsset () override
 

Private Attributes

AssetRef< Texture_texture {}
 

Additional Inherited Members

Constructor & Destructor Documentation

◆ ~TextureAssetSelector()

shkyera::TextureAssetSelector::~TextureAssetSelector ( )
inline

Member Function Documentation

◆ clearAsset()

void shkyera::TextureAssetSelector::clearAsset ( )
inlineoverrideprivatevirtual

Reimplemented from shkyera::AssetSelector< Texture >.

◆ drawAsset()

void shkyera::TextureAssetSelector::drawAsset ( Registry registry,
AssetHandle  handle 
)
inlineoverrideprivatevirtual

Reimplemented from shkyera::AssetSelector< Texture >.

Member Data Documentation

◆ _texture

AssetRef<Texture> shkyera::TextureAssetSelector::_texture {}
private

The documentation for this class was generated from the following file: