mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-20 13:17:54 -06:00
Add boilerplate for shader based csg
This commit is contained in:
parent
4f97a7122f
commit
93d0bbd7ef
7 changed files with 282 additions and 122 deletions
26
sandboxes/opencsg/ShaderCSGDisplay.hpp
Normal file
26
sandboxes/opencsg/ShaderCSGDisplay.hpp
Normal file
|
@ -0,0 +1,26 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue