Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xs/src/slic3r/GUI/GLTexture.hpp')
-rw-r--r--xs/src/slic3r/GUI/GLTexture.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/xs/src/slic3r/GUI/GLTexture.hpp b/xs/src/slic3r/GUI/GLTexture.hpp
index 70480c605..3113fcab2 100644
--- a/xs/src/slic3r/GUI/GLTexture.hpp
+++ b/xs/src/slic3r/GUI/GLTexture.hpp
@@ -10,7 +10,7 @@ namespace GUI {
class GLTexture
{
- private:
+ protected:
unsigned int m_id;
int m_width;
int m_height;
@@ -18,7 +18,7 @@ namespace GUI {
public:
GLTexture();
- ~GLTexture();
+ virtual ~GLTexture();
bool load_from_file(const std::string& filename, bool generate_mipmaps);
void reset();
@@ -26,12 +26,13 @@ namespace GUI {
unsigned int get_id() const;
int get_width() const;
int get_height() const;
+
const std::string& get_source() const;
static void render_texture(unsigned int tex_id, float left, float right, float bottom, float top);
- private:
- void _generate_mipmaps(wxImage& image);
+ protected:
+ unsigned int _generate_mipmaps(wxImage& image);
};
} // namespace GUI