Blender V5.0
ProjPaintImage Struct Reference

Public Attributes

Imageima
ImageUser iuser
ImBufibuf
ImagePaintPartialRedrawpartRedrawRect
volatile void ** undoRect
ushort ** maskRect
bool ** valid
bool touch
float paint_color_byte [3]
bool is_data
bool is_srgb
const ColorSpacebyte_colorspace

Detailed Description

This is mainly a convenience struct used so we can keep an array of images we use - their ImBuf's, etc, in 1 array, When using threads this array is copied for each thread because 'partRedrawRect' and 'touch' values would not be thread safe.

Definition at line 212 of file paint_image_proj.cc.

Member Data Documentation

◆ byte_colorspace

const ColorSpace* ProjPaintImage::byte_colorspace

◆ ibuf

◆ ima

◆ is_data

bool ProjPaintImage::is_data

Definition at line 227 of file paint_image_proj.cc.

Referenced by paint_proj_stroke_ps().

◆ is_srgb

bool ProjPaintImage::is_srgb

◆ iuser

◆ maskRect

ushort** ProjPaintImage::maskRect

The mask accumulation must happen on canvas, not on space screen bucket. Here we store the mask rectangle.

Definition at line 221 of file paint_image_proj.cc.

Referenced by project_paint_build_proj_ima(), project_paint_undo_subtiles(), and project_paint_uvpixel_init().

◆ paint_color_byte

float ProjPaintImage::paint_color_byte[3]

Paint color in the colorspace of this image, cached for performance.

Definition at line 226 of file paint_image_proj.cc.

Referenced by do_projectpaint_draw(), do_projectpaint_thread(), and paint_proj_stroke_ps().

◆ partRedrawRect

◆ touch

bool ProjPaintImage::touch

◆ undoRect

volatile void** ProjPaintImage::undoRect

Only used to build undo tiles during painting.

Definition at line 218 of file paint_image_proj.cc.

Referenced by project_paint_build_proj_ima(), project_paint_undo_subtiles(), and project_paint_uvpixel_init().

◆ valid

bool** ProjPaintImage::valid

Store flag to enforce validation of undo rectangle.

Definition at line 223 of file paint_image_proj.cc.

Referenced by project_paint_build_proj_ima(), project_paint_undo_subtiles(), and project_paint_uvpixel_init().


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