1 #ifndef VTESTBED_GRAPHICS_WINDFIELDOBJECT_HH 2 #define VTESTBED_GRAPHICS_WINDFIELDOBJECT_HH 4 #include <vtestbed/core/types.hh> 5 #include <vtestbed/graphics/types.hh> 16 using vec3 = vtb::core::Vector3<T>;
17 using array_type = blitz::Array<vec3,3>;
22 DrawableGroup3D _drawables;
23 Magnum::Shaders::VertexColor3D _shader;
26 bool _show_field =
true;
27 bool _show_boundary =
true;
33 inline bool show()
const {
return this->_show_field || this->_show_boundary; }
34 inline void showField(
bool b) { this->_show_field = b; }
35 inline void showBoundary(
bool b) { this->_show_boundary = b; }
37 void draw(
const Matrix4& m, Camera3D& camera)
override;
47 #endif // vim:filetype=cpp