7 #include "EffectHandler.h"
8 #include "PODMaterial.h"
9 #include "AsyncTexturing.h"
18 MATERIAL_TYPE_STANDARD,
25 kMaterialFlag_None = 0x00000000,
26 kMaterialFlag_Blend = 0x00000001,
28 kMaterialFlag_Default = kMaterialFlag_None,
35 Eegeo::EffectHandler::GraphicsEffect m_effect;
37 s32 m_diffuseTexturePodId;
38 u32 m_diffuseTextureGlId;
40 s32 m_shadowMapTextureID;
58 const std::string& GetName()
const;
60 typedef std::vector<Eegeo::Rendering::AsyncTexturing::IAsyncTexture*> TTexturesByPodId;
61 bool AssignTexture (
const TTexturesByPodId& texturesByPodId);
65 Eegeo::EffectHandler::GraphicsEffect GetEffect ();
66 void SetEffect (Eegeo::EffectHandler::GraphicsEffect effect);
68 u32 GetDiffuseTexture();
69 void SetDiffuseTexture(u32 pTexture);
71 float GetAnumUScale ();
72 void SetAnumUScale (
float scale);
74 float GetAnumVScale ();
75 void SetAnumVScale (
float scale);
78 bool IsAlpha ()
const {
return (m_materialFlags & kMaterialFlag_Blend); }
80 u32 GetMaterialFlags ()
const {
return (m_materialFlags); }
81 void SetAlpha (
float value)
83 m_materialFlags |= kMaterialFlag_Blend;
86 float GetAlpha(
void)
const;