#pragma once #include #include #include #include "stb_image.h" struct Image { int width; int height; GLuint textureId; }; struct PendingImage { int width; int height; stbi_uc* image_data; }; class RemoteImageLoader { public: // this could benefit from std::expected static PendingImage FetchRemoteImage(std::string url); static Image BindPendingImage(PendingImage pending); static void UnloadImage(Image image); };