Virtual Testbed
Ship dynamics simulator for extreme conditions
AxisSurface.hh
1 #ifndef VTESTBED_GRAPHICS_AXISSURFACE_HH
2 #define VTESTBED_GRAPHICS_AXISSURFACE_HH
3 
4 #include <vtestbed/graphics/types.hh>
5 #include <vtestbed/core/types.hh>
6 
7 namespace vtb {
8 
9  namespace graphics {
10 
11  class AxisSurface: public Object3D, public Drawable3D {
12 
13  private:
14  Magnum::Shaders::VertexColor3D _shader;
15  Mesh _mesh;
16  Buffer _vertexBuffer, _indexBuffer;
17  bool _show = true;
18 
19  public:
20 
21  AxisSurface();
22 
23  inline void show(bool b) { this->_show = b; }
24  void draw(const Matrix4& transformation, Camera3D& camera) override;
25 
26  };
27 
28  }
29 
30 }
31 
32 #endif // vim:filetype=cpp
Main namespace.
Definition: convert.hh:9