summaryrefslogtreecommitdiff
path: root/ui/svgIcon.h
blob: 106f97c6293ccaa9a4c90923f047610c139149d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "glArrays.h"
#include "imgui_wrap.h"
#include <config/types.h>
#include <filesystem>
#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;
};