All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
DebugLineRenderable.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "DebugRenderableBase.h"
6 #include "Rendering.h"
7 #include "AllVertexTypes.h"
8 
9 namespace Eegeo
10 {
11  namespace DebugRendering
12  {
14  {
15  public:
16  DebugLineRenderable(int vertexBufferSize,
18  float lineWidth,
19  const Rendering::VertexLayouts::VertexBinding& vertexBinding);
20 
22 
23  void Render(Rendering::GLState& glState) const;
24 
25  void AddVertexElement(const Rendering::VertexTypes::ColoredVertex& vertexToAdd);
26  bool ContainsMeshData() const;
27 
28  void SetLineWidth(float lineWidth);
29 
30  private:
31  void BindBuffers(Rendering::GLState& glState) const;
32 
34 
35  const Rendering::VertexLayouts::VertexBinding& m_vertexBinding;
36  float m_lineWidth;
37  };
38  }
39 }