![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
A run of dabs that share everything the batch composite needs to be a single step. More...
#include <brush.h>
Collaboration diagram for dt_drawlayer_brush_batch_t:Data Fields | |
| const dt_drawlayer_brush_dab_t * | dabs |
| guint | count |
| int | mode |
| float | cap |
| float | color [4] |
| gboolean | sprinkles |
A run of dabs that share everything the batch composite needs to be a single step.
Produced by dt_drawlayer_brush_batch_is_uniform. dabs is borrowed from the caller's array and must outlive the rasterization.
| float dt_drawlayer_brush_batch_t::cap |
Shared clamp01(opacity), the stroke-alpha ceiling.
Definition at line 124 of file brush.h.
Referenced by dt_drawlayer_brush_rasterize_batch().
| float dt_drawlayer_brush_batch_t::color[4] |
Shared premultiplied source colour.
Definition at line 125 of file brush.h.
Referenced by dt_drawlayer_brush_rasterize_batch().
| guint dt_drawlayer_brush_batch_t::count |
Number of dabs.
Definition at line 122 of file brush.h.
Referenced by dt_drawlayer_brush_rasterize_batch().
| const dt_drawlayer_brush_dab_t* dt_drawlayer_brush_batch_t::dabs |
Borrowed, contiguous, count entries.
Definition at line 121 of file brush.h.
Referenced by dt_drawlayer_brush_rasterize_batch().
| int dt_drawlayer_brush_batch_t::mode |
Shared mode: PAINT or ERASE.
Definition at line 123 of file brush.h.
Referenced by dt_drawlayer_brush_rasterize_batch().
| gboolean dt_drawlayer_brush_batch_t::sprinkles |
Any dab carries texture, so the shared field is worth precomputing.
Definition at line 126 of file brush.h.
Referenced by dt_drawlayer_brush_rasterize_batch().