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

#include "gfx/gl/glTexture.h"
#include <filesystem>
#include <glm/glm.hpp>
#include <imgui.h>

class Image;

class Icon {
public:
	explicit Icon(const std::filesystem::path & fileName);
	explicit Icon(const Image & image);

	const glm::vec2 size;
	ImTextureID operator*() const;

private:
	glTexture m_texture;
};