mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
GCode Preview - Legend texture shown only when gcode is available
This commit is contained in:
parent
593d794655
commit
6ff9021e04
9 changed files with 61 additions and 30 deletions
|
@ -403,20 +403,26 @@ class _3DScene
|
|||
unsigned int get_texture_width() const;
|
||||
unsigned int get_texture_height() const;
|
||||
|
||||
void reset_texture();
|
||||
|
||||
private:
|
||||
bool _create_texture(const Print& print, const wxBitmap& bitmap);
|
||||
void _destroy_texture();
|
||||
};
|
||||
|
||||
static LegendTexture s_legend_texture;
|
||||
|
||||
public:
|
||||
static void _glew_init();
|
||||
|
||||
static void load_gcode_preview(const Print* print, GLVolumeCollection* volumes, bool use_VBOs);
|
||||
|
||||
static unsigned int get_legend_texture_id();
|
||||
static unsigned int get_legend_texture_width();
|
||||
static unsigned int get_legend_texture_height();
|
||||
|
||||
static void reset_legend_texture();
|
||||
|
||||
static void _load_print_toolpaths(
|
||||
const Print *print,
|
||||
GLVolumeCollection *volumes,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue