mirror of
https://github.com/andrewchilicki/LumonMDR.git
synced 2025-07-01 18:17:27 -04:00
Init
This commit is contained in:
18
libs/Image/ImageDisplay.h
Normal file
18
libs/Image/ImageDisplay.h
Normal 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);
|
Reference in New Issue
Block a user