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