Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CMaterial Class Reference

#include <Material.h>

Collaboration diagram for CMaterial:

Classes

struct  TextureSampler
 

Public Types

typedef std::vector< TextureSamplerSamplersVector
 

Public Member Functions

 CMaterial ()
 
void SetUsesAlphaBlending (bool flag)
 
bool UsesAlphaBlending () const
 
const CTexturePtrGetDiffuseTexture () const
 
void SetShaderEffect (const CStr &effect)
 
CStrIntern GetShaderEffect () const
 
void AddShaderDefine (CStrIntern key, CStrIntern value)
 
const CShaderDefinesGetShaderDefines () const
 
void AddStaticUniform (const char *key, const CVector4D &value)
 
const CShaderUniformsGetStaticUniforms () const
 
void AddSampler (const TextureSampler &texture)
 
const SamplersVectorGetSamplers () const
 
void AddRenderQuery (const char *key)
 
const CShaderRenderQueriesGetRenderQueries () const
 
void AddRequiredSampler (const CStr &samplerName)
 
const std::vector< CStrIntern > & GetRequiredSampler () const
 

Private Attributes

CTexturePtr m_DiffuseTexture
 
SamplersVector m_Samplers
 
std::vector< CStrInternm_RequiredSamplers
 
CStrIntern m_ShaderEffect
 
CShaderDefines m_ShaderDefines
 
CShaderUniforms m_StaticUniforms
 
CShaderRenderQueries m_RenderQueries
 
bool m_AlphaBlending
 

Member Typedef Documentation

◆ SamplersVector

Constructor & Destructor Documentation

◆ CMaterial()

CMaterial::CMaterial ( )

Member Function Documentation

◆ AddRenderQuery()

void CMaterial::AddRenderQuery ( const char *  key)

◆ AddRequiredSampler()

void CMaterial::AddRequiredSampler ( const CStr &  samplerName)

◆ AddSampler()

void CMaterial::AddSampler ( const TextureSampler texture)

◆ AddShaderDefine()

void CMaterial::AddShaderDefine ( CStrIntern  key,
CStrIntern  value 
)

◆ AddStaticUniform()

void CMaterial::AddStaticUniform ( const char *  key,
const CVector4D value 
)

◆ GetDiffuseTexture()

const CTexturePtr & CMaterial::GetDiffuseTexture ( ) const
inline

◆ GetRenderQueries()

const CShaderRenderQueries & CMaterial::GetRenderQueries ( ) const
inline

◆ GetRequiredSampler()

const std::vector< CStrIntern > & CMaterial::GetRequiredSampler ( ) const
inline

◆ GetSamplers()

const SamplersVector & CMaterial::GetSamplers ( ) const
inline

◆ GetShaderDefines()

const CShaderDefines & CMaterial::GetShaderDefines ( ) const
inline

◆ GetShaderEffect()

CStrIntern CMaterial::GetShaderEffect ( ) const
inline

◆ GetStaticUniforms()

const CShaderUniforms & CMaterial::GetStaticUniforms ( ) const
inline

◆ SetShaderEffect()

void CMaterial::SetShaderEffect ( const CStr &  effect)

◆ SetUsesAlphaBlending()

void CMaterial::SetUsesAlphaBlending ( bool  flag)
inline

◆ UsesAlphaBlending()

bool CMaterial::UsesAlphaBlending ( ) const
inline

Member Data Documentation

◆ m_AlphaBlending

bool CMaterial::m_AlphaBlending
private

◆ m_DiffuseTexture

CTexturePtr CMaterial::m_DiffuseTexture
private

◆ m_RenderQueries

CShaderRenderQueries CMaterial::m_RenderQueries
private

◆ m_RequiredSamplers

std::vector<CStrIntern> CMaterial::m_RequiredSamplers
private

◆ m_Samplers

SamplersVector CMaterial::m_Samplers
private

◆ m_ShaderDefines

CShaderDefines CMaterial::m_ShaderDefines
private

◆ m_ShaderEffect

CStrIntern CMaterial::m_ShaderEffect
private

◆ m_StaticUniforms

CShaderUniforms CMaterial::m_StaticUniforms
private

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