mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-01 00:18:44 +03:00
update slic3r
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
#include "GLShadersManager.hpp"
|
||||
#include "3DScene.hpp"
|
||||
#include "GUI_App.hpp"
|
||||
#if ENABLE_GL_CORE_PROFILE
|
||||
#if !SLIC3R_OPENGL_ES
|
||||
#include "OpenGLManager.hpp"
|
||||
#endif // ENABLE_GL_CORE_PROFILE
|
||||
#endif // !SLIC3R_OPENGL_ES
|
||||
|
||||
#include <cassert>
|
||||
#include <algorithm>
|
||||
@@ -36,13 +36,13 @@ std::pair<bool, std::string> GLShadersManager::init()
|
||||
|
||||
bool valid = true;
|
||||
|
||||
#if ENABLE_OPENGL_ES
|
||||
#if SLIC3R_OPENGL_ES
|
||||
const std::string prefix = "ES/";
|
||||
// used to render wireframed triangles
|
||||
valid &= append_shader("wireframe", { prefix + "wireframe.vs", prefix + "wireframe.fs" });
|
||||
#else
|
||||
const std::string prefix = GUI::wxGetApp().is_gl_version_greater_or_equal_to(3, 1) ? "140/" : "110/";
|
||||
#endif // ENABLE_OPENGL_ES
|
||||
#endif // SLIC3R_OPENGL_ES
|
||||
// imgui shader
|
||||
valid &= append_shader("imgui", { prefix + "imgui.vs", prefix + "imgui.fs" });
|
||||
// basic shader, used to render all what was previously rendered using the immediate mode
|
||||
@@ -53,14 +53,14 @@ std::pair<bool, std::string> GLShadersManager::init()
|
||||
valid &= append_shader("flat_texture", { prefix + "flat_texture.vs", prefix + "flat_texture.fs" });
|
||||
// used to render 3D scene background
|
||||
valid &= append_shader("background", { prefix + "background.vs", prefix + "background.fs" });
|
||||
#if ENABLE_OPENGL_ES
|
||||
#if SLIC3R_OPENGL_ES
|
||||
// used to render dashed lines
|
||||
valid &= append_shader("dashed_lines", { prefix + "dashed_lines.vs", prefix + "dashed_lines.fs" });
|
||||
#elif ENABLE_GL_CORE_PROFILE
|
||||
#else
|
||||
if (GUI::OpenGLManager::get_gl_info().is_core_profile())
|
||||
// used to render thick and/or dashed lines
|
||||
valid &= append_shader("dashed_thick_lines", { prefix + "dashed_thick_lines.vs", prefix + "dashed_thick_lines.fs", prefix + "dashed_thick_lines.gs" });
|
||||
#endif // ENABLE_OPENGL_ES
|
||||
#endif // SLIC3R_OPENGL_ES
|
||||
// used to render toolpaths center of gravity
|
||||
valid &= append_shader("toolpaths_cog", { prefix + "toolpaths_cog.vs", prefix + "toolpaths_cog.fs" });
|
||||
// used to render bed axes and model, selection hints, gcode sequential view marker model, preview shells, options in gcode preview
|
||||
|
||||
Reference in New Issue
Block a user