1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-27 10:35:51 +00:00

Removed GLU calls from all the gizmos

This commit is contained in:
Lukas Matena
2021-03-12 10:29:17 +01:00
parent 0c7095d807
commit 97b7ef7dc0
12 changed files with 129 additions and 200 deletions
+6 -1
View File
@@ -4,6 +4,7 @@
#include "libslic3r/Point.hpp"
#include "slic3r/GUI/I18N.hpp"
#include "slic3r/GUI/GLModel.hpp"
#include <cereal/archives/binary.hpp>
@@ -47,6 +48,8 @@ protected:
static const float SizeFactor;
static const float MinHalfSize;
static const float DraggingScaleFactor;
static GLModel VBOCube;
static GLModel VBOCone;
Vec3d center;
Vec3d angles;
@@ -64,7 +67,6 @@ protected:
private:
void render(float size, const float* render_color, bool use_lighting) const;
void render_face(float half_size) const;
};
public:
@@ -103,6 +105,9 @@ protected:
bool m_first_input_window_render;
mutable std::string m_tooltip;
CommonGizmosDataPool* m_c;
static GLModel VBOCone;
static GLModel VBOCylinder;
static GLModel VBOSphere;
public:
GLGizmoBase(GLCanvas3D& parent,