New feature: Texture view Mask Source

Enable use of a source as mask for another source. Improved Mask mechanism in Source class, with various flags for update of source (avoid repeated mask update (GPU costly). Using SourceLink to link source to mask (improved robustness of SourceLink).
This commit is contained in:
Bruno Herbelin
2023-06-24 23:28:13 +02:00
parent cf16edceec
commit 64b2a18ff3
9 changed files with 183 additions and 86 deletions

View File

@@ -47,7 +47,8 @@ public:
enum Modes {
NONE = 0,
PAINT = 1,
SHAPE = 2
SHAPE = 2,
SOURCE = 3
};
uint mode;
@@ -69,8 +70,8 @@ public:
glm::vec4 cursor;
glm::vec3 brush;
static const char* mask_icons[3];
static const char* mask_names[3];
static const char* mask_icons[4];
static const char* mask_names[4];
static const char* mask_shapes[5];
};