mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
Fix outline rendering
This commit is contained in:
parent
71fd4084c2
commit
03daf61862
4 changed files with 65 additions and 249 deletions
|
@ -312,8 +312,10 @@ public:
|
|||
|
||||
void set_range(double low, double high);
|
||||
|
||||
virtual void render();
|
||||
|
||||
//BBS: add outline related logic and add virtual specifier
|
||||
virtual void render(bool with_outline = false);
|
||||
void render_with_outline(const Transform3d &view_model_matrix);
|
||||
|
||||
//BBS: add simple render function for thumbnail
|
||||
void simple_render(GLShaderProgram* shader, ModelObjectPtrs& model_objects, std::vector<ColorRGBA>& extruder_colors);
|
||||
|
@ -345,7 +347,7 @@ public:
|
|||
class GLWipeTowerVolume : public GLVolume {
|
||||
public:
|
||||
GLWipeTowerVolume(const std::vector<ColorRGBA>& colors);
|
||||
virtual void render(bool with_outline = false);
|
||||
void render() override;
|
||||
|
||||
std::vector<GUI::GLModel> model_per_colors;
|
||||
bool IsTransparent();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue