Warning texture moved to c++

This commit is contained in:
Enrico Turri 2018-05-21 14:40:09 +02:00
parent 7cff6ef6db
commit 3fdc5e20a7
9 changed files with 230 additions and 76 deletions

View file

@ -151,6 +151,7 @@ private:
bool m_dirty;
bool m_apply_zoom_to_volumes_filter;
bool m_warning_texture_enabled;
PerlCallback m_on_viewport_changed_callback;
@ -213,6 +214,8 @@ public:
bool is_layers_editing_enabled() const;
void enable_warning_texture(bool enable);
void zoom_to_bed();
void zoom_to_volumes();
void select_view(const std::string& direction);
@ -220,6 +223,9 @@ public:
void render_bed();
void render_axes();
void render_cutting_plane();
void render_warning_texture();
void render_texture(unsigned int tex_id, float left, float right, float bottom, float top);
void register_on_viewport_changed_callback(void* callback);