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:
authorEnrico Turri <enricoturri@seznam.cz>2019-02-26 14:56:13 +0300
committerEnrico Turri <enricoturri@seznam.cz>2019-02-26 14:56:13 +0300
commita8610f990eb47eadbf67fc7ae2381ff32a18a213 (patch)
tree0be65f8ea69c6fc8ff2a1f2df8528f18c2ad2f8d /src/slic3r/GUI/GLTexture.hpp
parent987a83bb0c3f172dd349f8443695fa24d8195eb0 (diff)
Automatic generation of variants of icons for toolbars and gizmos
Diffstat (limited to 'src/slic3r/GUI/GLTexture.hpp')
-rw-r--r--src/slic3r/GUI/GLTexture.hpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/slic3r/GUI/GLTexture.hpp b/src/slic3r/GUI/GLTexture.hpp
index 55e5c4c07..9b1f04ea6 100644
--- a/src/slic3r/GUI/GLTexture.hpp
+++ b/src/slic3r/GUI/GLTexture.hpp
@@ -42,7 +42,15 @@ namespace GUI {
bool load_from_svg_file(const std::string& filename, bool use_mipmaps, unsigned int max_size_px);
#endif // ENABLE_TEXTURES_FROM_SVG
#if ENABLE_SVG_ICONS
- bool load_from_svg_files_as_sprites_array(const std::vector<std::string>& filenames, unsigned int num_states, unsigned int sprite_size_px);
+ // meanings of states: (std::pair<int, bool>)
+ // first field (int):
+ // 0 -> no changes
+ // 1 -> use white only color variant
+ // 2 -> use gray only color variant
+ // second field (bool):
+ // false -> no changes
+ // true -> add background color
+ bool load_from_svg_files_as_sprites_array(const std::vector<std::string>& filenames, const std::vector<std::pair<int, bool>>& states, unsigned int sprite_size_px);
#endif // ENABLE_SVG_ICONS
void reset();