#include <Texture.h>
Public Member Functions | |
| MaterialTextureSet & | diffuse (const std::string &path) |
| MaterialTextureSet & | normal (const std::string &path) |
| MaterialTextureSet & | specular (const std::string &path) |
| MaterialTextureSet & | roughness (const std::string &path) |
| MaterialTextureSet & | metalness (const std::string &path) |
| MaterialTextureSet & | ao (const std::string &path) |
| MaterialTextureSet & | emissive (const std::string &path) |
| MaterialTextureSet & | texture (TextureType type, const std::string &path) |
| std::shared_ptr< Texture > | get (TextureType type) const |
| bool | has (TextureType type) const |
| void | apply_to_material (Material &material) const |
| void | bind_all () const |
Static Public Member Functions | |
| static MaterialTextureSet | from_directory (const std::string &base_path, const std::string &material_name) |
Private Attributes | |
| std::unordered_map< TextureType, std::shared_ptr< Texture > > | textures_ |
| MaterialTextureSet & hellfire::MaterialTextureSet::ao | ( | const std::string & | path | ) |
Definition at line 329 of file Texture.cpp.
| void hellfire::MaterialTextureSet::apply_to_material | ( | Material & | material | ) | const |
Definition at line 359 of file Texture.cpp.
| void hellfire::MaterialTextureSet::bind_all | ( | ) | const |
Definition at line 349 of file Texture.cpp.
| MaterialTextureSet & hellfire::MaterialTextureSet::diffuse | ( | const std::string & | path | ) |
Definition at line 299 of file Texture.cpp.
| MaterialTextureSet & hellfire::MaterialTextureSet::emissive | ( | const std::string & | path | ) |
Definition at line 334 of file Texture.cpp.
|
static |
Definition at line 372 of file Texture.cpp.
| std::shared_ptr< Texture > hellfire::MaterialTextureSet::get | ( | TextureType | type | ) | const |
Definition at line 339 of file Texture.cpp.
| bool hellfire::MaterialTextureSet::has | ( | TextureType | type | ) | const |
Definition at line 344 of file Texture.cpp.
| MaterialTextureSet & hellfire::MaterialTextureSet::metalness | ( | const std::string & | path | ) |
Definition at line 319 of file Texture.cpp.
| MaterialTextureSet & hellfire::MaterialTextureSet::normal | ( | const std::string & | path | ) |
Definition at line 304 of file Texture.cpp.
| MaterialTextureSet & hellfire::MaterialTextureSet::roughness | ( | const std::string & | path | ) |
Definition at line 314 of file Texture.cpp.
| MaterialTextureSet & hellfire::MaterialTextureSet::specular | ( | const std::string & | path | ) |
Definition at line 309 of file Texture.cpp.
| MaterialTextureSet & hellfire::MaterialTextureSet::texture | ( | TextureType | type, |
| const std::string & | path | ||
| ) |
Definition at line 324 of file Texture.cpp.
|
private |