summaryrefslogtreecommitdiff
path: root/ui/icon.h
blob: cc6df87b4ae14e4a0beca6c1c556082e5b79fd3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef ICON_H
#define ICON_H

#include <GL/glew.h>
#include <filesystem>
#include <glm/glm.hpp>
#include <special_members.hpp>

class Image;

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

	virtual ~Icon();

	NO_COPY(Icon);
	NO_MOVE(Icon);

	void Bind() const;
	const glm::vec2 size;

private:
	GLuint m_texture;
};

#endif