summaryrefslogtreecommitdiff
path: root/gfx/models/texture.h
blob: 04aa9ecfc09a0b00770d31073959111bb200367a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#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;
};