Added hold block and minor fixes
This commit is contained in:
@ -39,6 +39,10 @@ public:
|
||||
// Get a loaded texture (or nullptr if not loaded).
|
||||
SDL_Texture* getTexture(const std::string& path) const;
|
||||
|
||||
// Adopt an externally-created texture so AssetLoader owns its lifetime.
|
||||
// If a texture is already registered for this path, it will be replaced.
|
||||
void adoptTexture(const std::string& path, SDL_Texture* texture);
|
||||
|
||||
// Return currently-loading path (empty when idle).
|
||||
std::string getCurrentLoading() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user