On Fri, Sep 03, 2010 at 10:01:08PM +0000, [email protected] wrote: > OK, so I made this thing with templates to allow different blend modes > in draw_dab(), they should be inlined automagically by g++. Any > insights about this approach? Is this something you could accept for > mainline MyPaint code? > > http://gitorious.org/~guciek/mypaint/lockalpha/commit/979acc050d95e4bb6c81181003401cd6f1584182
Yes I would accept something like that. But I will be tempted every time I look at it to redesign things somehow to get rid of the template use again. (Only if it can be done without much code duplication or slowdown.) Here you have some GUI support for your prototype: http://gitorious.org/~maxy/mypaint/maxy-experimental/commits/lock_alpha Gives you a new brushsetting "lock alpha" to smoothly choose between locked and non-locked alpha channel (and of course, it may depend on any brush input). The rest of the GUI support could be implemented along the lines of eraser mode, I think. Here is some similar work for blending modes: http://gitorious.org/~iportnov/mypaint/iportnovs-clone/commits/brush_modes This approach looks slower, but I haven't measured it, so maybe it actually isn't. In case you are interested also in blending modes, everything about that should be linked in https://gna.org/bugs/?15136 -- Martin Renold _______________________________________________ Mypaint-discuss mailing list [email protected] https://mail.gna.org/listinfo/mypaint-discuss
