All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
BatchedIconMaterial.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Types.h"
6 #include "IMaterial.h"
7 #include "Rendering.h"
8 #include "VectorMath.h"
9 #include "BatchedIconShader.h"
10 #include <string>
11 
12 namespace Eegeo
13 {
14  namespace Rendering
15  {
16  namespace Materials
17  {
19  {
20  public:
21  BatchedIconMaterial(const TMaterialId materialId,
22  const std::string& name,
24  TTextureId textureId);
25 
26  const TMaterialId GetId() const { return m_id; }
27  const Shader& GetShader() const { return m_shader; }
28  const std::string& GetName() const { return m_name; }
29 
30  void SetState(Rendering::GLState& glState) const;
31 
32  void SetStatePerRenderable(const Rendering::RenderableBase* renderableBase, Rendering::GLState& glState) const;
33 
34  protected:
35  const TMaterialId m_id;
36  const std::string m_name;
38  TTextureId m_textureId;
39  };
40  }
41  }
42 }