Loading...
Searching...
No Matches
hellfire::MaterialTextureSet Class Reference

#include <Texture.h>

Collaboration diagram for hellfire::MaterialTextureSet:

Public Member Functions

MaterialTextureSetdiffuse (const std::string &path)
 
MaterialTextureSetnormal (const std::string &path)
 
MaterialTextureSetspecular (const std::string &path)
 
MaterialTextureSetroughness (const std::string &path)
 
MaterialTextureSetmetalness (const std::string &path)
 
MaterialTextureSetao (const std::string &path)
 
MaterialTextureSetemissive (const std::string &path)
 
MaterialTextureSettexture (TextureType type, const std::string &path)
 
std::shared_ptr< Textureget (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_
 

Detailed Description

Definition at line 53 of file Texture.h.

Member Function Documentation

◆ ao()

MaterialTextureSet & hellfire::MaterialTextureSet::ao ( const std::string &  path)

Definition at line 329 of file Texture.cpp.

◆ apply_to_material()

void hellfire::MaterialTextureSet::apply_to_material ( Material material) const

Definition at line 359 of file Texture.cpp.

◆ bind_all()

void hellfire::MaterialTextureSet::bind_all ( ) const

Definition at line 349 of file Texture.cpp.

◆ diffuse()

MaterialTextureSet & hellfire::MaterialTextureSet::diffuse ( const std::string &  path)

Definition at line 299 of file Texture.cpp.

◆ emissive()

MaterialTextureSet & hellfire::MaterialTextureSet::emissive ( const std::string &  path)

Definition at line 334 of file Texture.cpp.

◆ from_directory()

MaterialTextureSet hellfire::MaterialTextureSet::from_directory ( const std::string &  base_path,
const std::string &  material_name 
)
static

Definition at line 372 of file Texture.cpp.

◆ get()

std::shared_ptr< Texture > hellfire::MaterialTextureSet::get ( TextureType  type) const

Definition at line 339 of file Texture.cpp.

◆ has()

bool hellfire::MaterialTextureSet::has ( TextureType  type) const

Definition at line 344 of file Texture.cpp.

◆ metalness()

MaterialTextureSet & hellfire::MaterialTextureSet::metalness ( const std::string &  path)

Definition at line 319 of file Texture.cpp.

◆ normal()

MaterialTextureSet & hellfire::MaterialTextureSet::normal ( const std::string &  path)

Definition at line 304 of file Texture.cpp.

◆ roughness()

MaterialTextureSet & hellfire::MaterialTextureSet::roughness ( const std::string &  path)

Definition at line 314 of file Texture.cpp.

◆ specular()

MaterialTextureSet & hellfire::MaterialTextureSet::specular ( const std::string &  path)

Definition at line 309 of file Texture.cpp.

◆ texture()

MaterialTextureSet & hellfire::MaterialTextureSet::texture ( TextureType  type,
const std::string &  path 
)

Definition at line 324 of file Texture.cpp.

Member Data Documentation

◆ textures_

std::unordered_map<TextureType, std::shared_ptr<Texture> > hellfire::MaterialTextureSet::textures_
private

Definition at line 88 of file Texture.h.


The documentation for this class was generated from the following files: