All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
AnimatedObjectsRenderable.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "BasicRenderable.h"
6 #include "LayerIds.h"
7 #include "Rendering.h"
8 #include "AnimatedObjectsRenderer.h"
9 #include "GLState.h"
10 #include "EffectHandler.h"
11 
12 namespace Eegeo
13 {
14  namespace Rendering
15  {
16  namespace Renderables
17  {
18  namespace TemporaryLegacySupport
19  {
21  {
22  public:
24  (
25  Rendering::LayerIds::Values layerId,
28  )
29  : BasicRenderable(layerId, &material)
30  , m_animatedObjectsRenderer(animatedObjectsRenderer)
31  {
32  }
33 
34  void Render(Rendering::GLState& glState) const
35  {
36  glState.DepthTest.Enable();
37  m_animatedObjectsRenderer.Render(glState);
38  Eegeo::EffectHandler::Reset();
39  }
40 
41  private:
42  Eegeo::AnimatedObjects::AnimatedObjectsRenderer& m_animatedObjectsRenderer;
43  };
44  }
45  }
46  }
47 }
48 
49