blob: 7948a58118d7016f1d2994780a31bea1992bcd1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include <cache.h>
#include <filesystem>
#include <glArrays.h>
// IWYU pragma: no_forward_declare Cache
class Image;
class Texture {
public:
explicit Texture(const std::filesystem::path & fileName);
explicit Texture(const Image & image);
explicit Texture(GLsizei width, GLsizei height, void * data);
static Cache<Texture, std::filesystem::path> cachedTexture;
void Bind() const;
private:
glTexture m_texture;
};
|