summaryrefslogtreecommitdiff
path: root/gfx/models/texture.h
blob: e029a9ba672e3161799761771d7cc88bfe1edd19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef TEXTURE_H
#define TEXTURE_H

#include <cache.h>
#include <filesystem>
#include <glArrays.h>

// IWYU pragma: no_forward_declare Cache

class Texture {
public:
	explicit Texture(const std::filesystem::path & fileName);

	static Cache<Texture, std::filesystem::path> cachedTexture;

	void Bind() const;

private:
	glTexture m_texture;
};

#endif