Something went wrong. Try again.
Youtube chat viewer inspired by chatterino
Something went wrong. Try again.
12345678910111213141516171819202122232425262728#pragma once
#include <string>#include <cpr/cpr.h>#include <GL/gl.h>
#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);};