Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::Engine::Data::MaterialTextureSet< TextureSemantic > Class Template Reference

Base class to manage a set of textures indexed by semantic (enum). More...

#include <Engine/Data/MaterialTextureSet.hpp>

+ Inheritance diagram for Ra::Engine::Data::MaterialTextureSet< TextureSemantic >:
+ Collaboration diagram for Ra::Engine::Data::MaterialTextureSet< TextureSemantic >:

Public Member Functions

void addTexture (const TextureSemantic &semantic, const TextureManager::TextureHandle &texture)
 
void addTexture (const TextureSemantic &semantic, const TextureParameters &texture)
 Add texture to TextureManager fisrt, then to the texture set.
 
TexturegetTexture (const TextureSemantic &semantic) const
 Texture getter from semantic.
 

Detailed Description

template<typename TextureSemantic>
class Ra::Engine::Data::MaterialTextureSet< TextureSemantic >

Base class to manage a set of textures indexed by semantic (enum).

Definition at line 13 of file MaterialTextureSet.hpp.

Member Function Documentation

◆ addTexture() [1/2]

template<typename TextureSemantic >
void Ra::Engine::Data::MaterialTextureSet< TextureSemantic >::addTexture ( const TextureSemantic & semantic,
const TextureManager::TextureHandle & texture )
inline

Definition at line 18 of file MaterialTextureSet.hpp.

◆ addTexture() [2/2]

template<typename TextureSemantic >
void Ra::Engine::Data::MaterialTextureSet< TextureSemantic >::addTexture ( const TextureSemantic & semantic,
const TextureParameters & texture )
inline

Add texture to TextureManager fisrt, then to the texture set.

Definition at line 25 of file MaterialTextureSet.hpp.

◆ getTexture()

template<typename TextureSemantic >
Texture * Ra::Engine::Data::MaterialTextureSet< TextureSemantic >::getTexture ( const TextureSemantic & semantic) const
inline

Texture getter from semantic.

Returns
raw (non owning) ptr to the texture, nullptr if the texture is not found.

Definition at line 34 of file MaterialTextureSet.hpp.

+ Here is the call graph for this function:

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