blob: 5f3a812fdbab29df7011632fe63d882d1eb97ea3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#pragma once
#include "imgui_wrap.h"
#include <filesystem>
#include <glArrays.h>
#include <glm/glm.hpp>
class Image;
class Icon {
public:
explicit Icon(const std::filesystem::path & fileName);
explicit Icon(const Image & image);
void Bind() const;
const glm::vec2 size;
ImTextureID operator*() const;
private:
glTexture m_texture;
};
|