ShaderCSGDisplay.hpp 474 B

123456789101112131415161718192021222324252627
  1. #ifndef SHADERCSGDISPLAY_HPP
  2. #define SHADERCSGDISPLAY_HPP
  3. #include "Engine.hpp"
  4. namespace Slic3r { namespace GL {
  5. class CSGVolume: public Volume
  6. {
  7. // Extend...
  8. };
  9. class ShaderCSGDisplay: public Display {
  10. protected:
  11. vector<std::shared_ptr<CSGVolume>> m_volumes;
  12. void add_mesh(const TriangleMesh &mesh);
  13. public:
  14. void render_scene() override;
  15. void on_scene_updated(const Scene &scene) override;
  16. };
  17. }}
  18. #endif // SHADERCSGDISPLAY_HPP