This commit is contained in:
andrewchilicki
2025-02-08 15:12:24 -05:00
parent 902993bde1
commit 71bd81f2b9
60 changed files with 99637 additions and 12 deletions

18
libs/Image/ImageDisplay.h Normal file
View File

@ -0,0 +1,18 @@
#pragma once
#include "imgui.h"
#include <memory>
#include <optional>
#include <string>
#include <vector>
class ImageDisplay {
public:
virtual void drawImGuiImage(const std::string& imagePath, float scale, std::optional<ImVec4> tint) = 0;
virtual std::pair<int, int> getImageSize(const std::string &imagePath) = 0;
virtual ~ImageDisplay() = default;
};
std::shared_ptr<ImageDisplay> createImageDisplay(const std::string& assetDir);