blob: be014462f299ff828e2b52daa3ffdd1f99f7bd29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include "gfx/gl/glTexture.h"
#include <config/types.h>
#include <filesystem>
#include <imgui.h>
#include <lunasvg.h>
class SvgIcon {
public:
SvgIcon(ImageDimensions, const std::filesystem::path &);
ImTextureID operator*() const;
private:
friend class LoadFromFile; // Test case verifying size/content
glTexture texture;
};
|