13 Texture(
int width,
int height);
14 Texture(
unsigned int id, std::string name, Format internal_format,
15 ColorFormat color_format,
17 Filter mag_filte, Wrap wrap_s,
18 Wrap wrap_t, Wrap wrap_r,
35 static std::optional<Texture> LoadTexture(
36 const std::string& path,
const std::string& name,
37 Format internal_format = Format::T_2D,
38 ColorFormat color_format = ColorFormat::F_RGBA,
39 Filter min_filter = Filter::F_NEAREST,
40 Filter mag_filter = Filter::F_NEAREST, Wrap wrap_s = Wrap::W_REPEAT,
41 Wrap wrap_t = Wrap::W_REPEAT, Wrap wrap_r = Wrap::W_REPEAT,
42 DataType data_type = DataType::T_UBYTE_1);
47 Texture(
const Texture& other) =
delete;
48 Texture(Texture&& other)
noexcept;
49 Texture& operator=(Texture& other) =
delete;
50 Texture& operator=(Texture&& other)
noexcept;
52 unsigned int texture_id()
const {
return texture_id_;}
59 unsigned int texture_id_;
72 ColorFormat color_format_;
Stores and offers access to all meshes, textures, and sounds of the engine.
Definition: resource_manager.hpp:27
contains globally accessible enums