mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 01:37:53 -06:00
Tech ENABLE_GCODE_VIEWER -> Selection curved arrows rendered using the new OpenGL model class
This commit is contained in:
parent
8d5cea82f4
commit
58258df113
6 changed files with 236 additions and 20 deletions
|
@ -4,6 +4,10 @@
|
|||
#include <set>
|
||||
#include "libslic3r/Geometry.hpp"
|
||||
#include "3DScene.hpp"
|
||||
#if ENABLE_GCODE_VIEWER
|
||||
#include "GLModel.hpp"
|
||||
#include "GLShader.hpp"
|
||||
#endif // ENABLE_GCODE_VIEWER
|
||||
|
||||
#if ENABLE_RENDER_SELECTION_CENTER
|
||||
class GLUquadric;
|
||||
|
@ -201,7 +205,12 @@ private:
|
|||
GLUquadricObj* m_quadric;
|
||||
#endif // ENABLE_RENDER_SELECTION_CENTER
|
||||
mutable GLArrow m_arrow;
|
||||
#if ENABLE_GCODE_VIEWER
|
||||
GL_Model m_curved_arrow;
|
||||
Shader m_arrows_shader;
|
||||
#else
|
||||
mutable GLCurvedArrow m_curved_arrow;
|
||||
#endif // ENABLE_GCODE_VIEWER
|
||||
|
||||
mutable float m_scale_factor;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue