graphics
Class CMaterial
in Material.h
in Material.cpp
- class CMaterial
m_Alpha
protected bool m_Alpha;
m_Ambient
protected SMaterialColor m_Ambient;
m_Diffuse
protected SMaterialColor m_Diffuse;
m_Emissive
protected SMaterialColor m_Emissive;
m_FragmentProgram
protected CStr m_FragmentProgram;
m_Hash
protected float m_Hash;
m_PlayerID
protected int m_PlayerID;
m_Specular
protected SMaterialColor m_Specular;
m_SpecularPower
protected float m_SpecularPower;
m_Texture
protected CStr m_Texture;
m_TextureColor
protected SMaterialColor m_TextureColor;
m_VertexProgram
protected CStr m_VertexProgram;
CMaterial
public CMaterial( const CMaterial& material );
CMaterial
public CMaterial();
~CMaterial
public virtual ~CMaterial();
Bind
public void Bind();
ComputeHash
protected void ComputeHash();
GetAmbient
public SMaterialColor GetAmbient();
GetDiffuse
public SMaterialColor GetDiffuse();
GetEmissive
public SMaterialColor GetEmissive();
GetFragmentProgram
public const CStr& GetFragmentProgram();
GetHash
public float GetHash();
GetPlayerColor
public SMaterialColor GetPlayerColor();
GetSpecular
public SMaterialColor GetSpecular();
GetSpecularPower
public float GetSpecularPower();
GetTexture
public const CStr& GetTexture();
GetVertexProgram
public const CStr& GetVertexProgram();
IsPlayer
public bool IsPlayer();
operator=
public void operator=( const CMaterial& material );
operator==
public bool operator==( const CMaterial& material );
SetAmbient
public void SetAmbient( const SMaterialColor& color );
SetDiffuse
public void SetDiffuse( const SMaterialColor& color );
SetEmissive
public void SetEmissive( const SMaterialColor& color );
SetFragmentProgram
public void SetFragmentProgram( const CStr& prog );
SetPlayerColor
public void SetPlayerColor( int id );
SetPlayerColor
public void SetPlayerColor( CColor& colour );
SetPlayerColor_PerObject
public void SetPlayerColor_PerObject();
SetPlayerColor_PerPlayer
public void SetPlayerColor_PerPlayer();
SetSpecular
public void SetSpecular( const SMaterialColor& color );
SetSpecularPower
public void SetSpecularPower( float power );
SetTexture
public void SetTexture( const CStr& texture );
SetUsesAlpha
public void SetUsesAlpha( bool flag );
SetVertexProgram
public void SetVertexProgram( const CStr& prog );
Unbind
public void Unbind();
UsesAlpha
public bool UsesAlpha();