20#pragma region helper classes
31 TextureInfo(TWeakObjectPtr<const UTexture2DDynamic> texture,
int width,
int height) :
32 TEXTURE(texture), TEXTURE_SIZE(width, height)
34 const TWeakObjectPtr<const UTexture2DDynamic> TEXTURE;
35 const FIntVector2 TEXTURE_SIZE;
39#pragma region public API
49 void FetchTextureFromUrl(
const FString& url, FDownloadedTextureDelegateNative onThumbnailFetched);
54 FCriticalSection m_cacheLock;
55 TMap<FString, TArray<FDownloadedTextureDelegateNative>> m_pendingCallbacks;
56 TMap<FString, TextureInfo> m_texturesCache;
58 FCriticalSection m_wrapperLock;
59 TArray<TSharedPtr<IImageWrapper>> m_imageWrappers;
void FetchTextureFromUrl(const FString &url, FDownloadedTextureDelegateNative onThumbnailFetched)
Fetch a texture from a URL asynchronously and cache it.
Definition TexturesCacheHandler.cpp:29
TexturesCacheHandler()
Constructor.
Definition TexturesCacheHandler.cpp:18