mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-31 00:52:51 +00:00
Legend texture use square power of two image
This commit is contained in:
@@ -433,8 +433,24 @@ public:
|
||||
static const unsigned char Background_Color[3];
|
||||
static const unsigned char Opacity;
|
||||
|
||||
//############################################################################################################################################
|
||||
int m_original_width;
|
||||
int m_original_height;
|
||||
//############################################################################################################################################
|
||||
|
||||
public:
|
||||
//############################################################################################################################################
|
||||
LegendTexture();
|
||||
|
||||
int get_original_width() const;
|
||||
int get_original_height() const;
|
||||
//############################################################################################################################################
|
||||
|
||||
bool generate(const GCodePreviewData& preview_data, const std::vector<float>& tool_colors);
|
||||
|
||||
//############################################################################################################################################
|
||||
void render(const GLCanvas3D& canvas) const;
|
||||
//############################################################################################################################################
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user