e185bf58b7
with their original names. Using weird shorthands makes the code unreadable for anyone but the original author. template<class T> using shptr = std::shared_ptr<T>; template<class T> using uqptr = std::unique_ptr<T>; template<class T> using wkptr = std::weak_ptr<T>;
28 lines
474 B
C++
28 lines
474 B
C++
#ifndef SHADERCSGDISPLAY_HPP
|
|
#define SHADERCSGDISPLAY_HPP
|
|
|
|
#include "Engine.hpp"
|
|
|
|
namespace Slic3r { namespace GL {
|
|
|
|
class CSGVolume: public Volume
|
|
{
|
|
// Extend...
|
|
};
|
|
|
|
class ShaderCSGDisplay: public Display {
|
|
protected:
|
|
vector<std::shared_ptr<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
|