blob: 6dbe9af976d204201b43fe1f1bb03ee39cd3420c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef TEXTURE_H
#define TEXTURE_H
#include <filesystem>
#include <glArrays.h>
template<typename Obj> class Cache;
class Texture {
public:
explicit Texture(const std::filesystem::path & fileName);
static Cache<Texture> cachedTexture;
void Bind() const;
private:
glTexture m_texture;
};
#endif
|