All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
InteriorsChromeMaterial.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 "TextureMinifyType.h"
8 #include "IdTypes.h"
9 #include "Rendering.h"
10 #include "Lighting.h"
11 #include "VectorMath.h"
12 
13 #include <string>
14 
15 namespace Eegeo
16 {
17  namespace Resources
18  {
19  namespace Interiors
20  {
21 
23  {
24  public:
25  InteriorsChromeMaterial(const Rendering::TMaterialId materialId,
26  const std::string& name,
27  const Lighting::GlobalLighting& lighting,
28  IInteriorsMaterialAssignmentObserver& materialAssignmentObserver,
29  bool useAlternativeAmbient,
30  bool isTranslucent,
31  const v4& diffuseColor,
32  InteriorsRenderableLayer::Type renderableLayer,
33  const InteriorsChromeShader& shader,
34  IInteriorsTextureResource& interiorsTextureResource,
35  Rendering::TextureMinifyType textureMinifyType,
36  bool textureRepeat,
37  const v3& specularColor,
38  float specularPower,
39  float viewOffsetScale);
40 
41 
42 
44 
45  const Eegeo::Rendering:: Shader& GetShader() const;
46 
47  void SetState(Eegeo::Rendering::GLState& glState) const;
48 
49  void SetStatePerRenderable(const Eegeo::Rendering::RenderableBase* renderableBase, Eegeo::Rendering::GLState& glState) const;
50 
51 
52  private:
53  const InteriorsChromeShader& m_shader;
54  IInteriorsTextureResource& m_interiorsTextureResource;
55  const Rendering::TextureMinifyType m_textureMinifyType;
56  const bool m_textureRepeat;
57  const v3 m_specularColor;
58  const float m_specularPower;
59  const float m_viewOffsetScale;
60  };
61  }
62  }
63 }