All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
InteriorsStencilMirrorMaskMaterial.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Interiors.h"
6 #include "InteriorsMaterialBase.h"
7 #include "PackedDiffuseMaterial.h"
8 #include "IdTypes.h"
9 #include "Rendering.h"
10 #include "Lighting.h"
11 #include "ICallback.h"
12 
13 #include <string>
14 
15 namespace Eegeo
16 {
17  namespace Resources
18  {
19  namespace Interiors
20  {
22  {
23  public:
24 
26  const Rendering::TMaterialId materialId,
27  const std::string& name,
28  const Lighting::GlobalLighting& lighting,
29  IInteriorsMaterialAssignmentObserver& materialAssignmentObserver,
31  );
32 
33  const Rendering::Shader& GetShader() const;
34 
35  void OnAssignedToRenderable(Rendering::Renderables::InteriorRenderable& renderable);
36 
37  void SetState(Rendering::GLState& glState) const;
38 
39  void SetStatePerRenderable(const Rendering::RenderableBase* renderableBase, Rendering::GLState& glState) const;
40 
41 
42 
43  private:
44  const InteriorsStencilMirrorMaskShader& m_shader;
45  };
46  }
47  }
48 }