All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
FireworksMaterial.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 "IdTypes.h"
8 #include "Rendering.h"
9 #include "FireworksShader.h"
10 #include <string>
11 
12 namespace Eegeo
13 {
14  namespace Rendering
15  {
16  namespace Materials
17  {
19  {
20  public:
21  FireworksMaterial(const TMaterialId materialId,
22  const std::string& name,
24  TTextureId textureId
25  );
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 
35  protected:
36  const TMaterialId m_id;
37  const std::string m_name;
38  Shaders::FireworksShader& m_shader;
39  TTextureId m_textureId;
40  };
41  }
42  }
43 }