2019-12-20 11:25:44 +00:00
|
|
|
#ifndef SHADERCSGDISPLAY_HPP
|
|
|
|
#define SHADERCSGDISPLAY_HPP
|
|
|
|
|
|
|
|
#include "Engine.hpp"
|
|
|
|
|
|
|
|
namespace Slic3r { namespace GL {
|
|
|
|
|
|
|
|
class CSGVolume: public Volume
|
|
|
|
{
|
|
|
|
// Extend...
|
|
|
|
};
|
|
|
|
|
|
|
|
class ShaderCSGDisplay: public Display {
|
2019-12-20 14:12:54 +00:00
|
|
|
protected:
|
2021-10-04 14:56:26 +00:00
|
|
|
vector<std::shared_ptr<CSGVolume>> m_volumes;
|
2019-12-20 11:25:44 +00:00
|
|
|
|
|
|
|
void add_mesh(const TriangleMesh &mesh);
|
|
|
|
public:
|
|
|
|
|
|
|
|
void render_scene() override;
|
|
|
|
|
|
|
|
void on_scene_updated(const Scene &scene) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
#endif // SHADERCSGDISPLAY_HPP
|