molecular
Classes | Public Member Functions | List of all members
molecular::gfx::Material Class Reference

Collection of uniform variables. More...

#include <Material.h>

Public Member Functions

template<class TRenderManager >
 Material (TRenderManager &renderManager)
 
 Material (TextureManager &textureManager, gfx::Scoping &scoping)
 
 ~Material ()
 
template<class T >
void SetUniform (Hash hash, const T &variable)
 
void SetTexture (Hash hash, Hash textureFileName)
 
void Bind (int lodLevel=0)
 Binds alls material variables to the current DynamicScoping scope. More...
 
void Unbind ()
 Unbinds alls material variables from the current DynamicScoping scope. More...
 

Detailed Description

Collection of uniform variables.

Constructor & Destructor Documentation

template<class TRenderManager >
molecular::gfx::Material::Material ( TRenderManager &  renderManager)
inlineexplicit
molecular::gfx::Material::Material ( TextureManager textureManager,
gfx::Scoping scoping 
)
inline
molecular::gfx::Material::~Material ( )

Member Function Documentation

void molecular::gfx::Material::Bind ( int  lodLevel = 0)

Binds alls material variables to the current DynamicScoping scope.

Use MaterialBinding for automatic binding!

void molecular::gfx::Material::SetTexture ( Hash  hash,
Hash  textureFileName 
)
template<class T >
void molecular::gfx::Material::SetUniform ( Hash  hash,
const T &  variable 
)
inline
void molecular::gfx::Material::Unbind ( )

Unbinds alls material variables from the current DynamicScoping scope.

Use MaterialBinding for automatic binding!


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