update slic3r

This commit is contained in:
QIDI TECH
2025-05-08 15:05:30 +08:00
parent 126534997a
commit 011619cf23
307 changed files with 55594 additions and 19386 deletions

View File

@@ -8,9 +8,11 @@
#include "libslic3r/Point.hpp"
namespace Slic3r {
class ColorRGB;
class GLShaderProgram
{
friend class GLShadersManager;
public:
enum class EShaderType
{
@@ -41,9 +43,6 @@ public:
const std::string& get_name() const { return m_name; }
unsigned int get_id() const { return m_id; }
void start_using() const;
void stop_using() const;
bool set_uniform(const char* name, int value) const;
bool set_uniform(const char* name, bool value) const;
bool set_uniform(const char* name, float value) const;
@@ -58,13 +57,20 @@ public:
bool set_uniform(const char* name, const Transform3f& value) const;
bool set_uniform(const char* name, const Transform3d& value) const;
bool set_uniform(const char* name, const Matrix3f& value) const;
bool set_uniform(const char *name, const Matrix3d &value) const;
bool set_uniform(const char* name, const Matrix4f& value) const;
bool set_uniform(const char* name, const Matrix4d& value) const;
bool set_uniform(const char* name, const Vec3f& value) const;
bool set_uniform(const char* name, const Vec3d& value) const;
bool set_uniform(const char* name, const ColorRGB& value) const;
// returns -1 if not found
int get_attrib_location(const char* name) const;
// returns -1 if not found
int get_uniform_location(const char* name) const;
private:
void start_using() const;
};
} // namespace Slic3r