Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
dt_drawlayer_brush_batch_t Struct Reference

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
 

Detailed Description

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.

Definition at line 119 of file brush.h.

Field Documentation

◆ cap

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().

◆ color

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().

◆ count

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().

◆ dabs

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().

◆ mode

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().

◆ sprinkles

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().


The documentation for this struct was generated from the following file: