mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	 e185bf58b7
			
		
	
	
		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>;
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			474 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 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
 |