27 lines
453 B
C++
27 lines
453 B
C++
|
#ifndef SHADERCSGDISPLAY_HPP
|
||
|
#define SHADERCSGDISPLAY_HPP
|
||
|
|
||
|
#include "Engine.hpp"
|
||
|
|
||
|
namespace Slic3r { namespace GL {
|
||
|
|
||
|
class CSGVolume: public Volume
|
||
|
{
|
||
|
// Extend...
|
||
|
};
|
||
|
|
||
|
class ShaderCSGDisplay: public Display {
|
||
|
vector<shptr<CSGVolume>> m_volumes;
|
||
|
|
||
|
void add_mesh(const TriangleMesh &mesh);
|
||
|
public:
|
||
|
|
||
|
void render_scene() override;
|
||
|
|
||
|
void on_scene_updated(const Scene &scene) override;
|
||
|
};
|
||
|
|
||
|
}}
|
||
|
|
||
|
#endif // SHADERCSGDISPLAY_HPP
|