Blender V5.3
blender::ProjPaintImage Struct Reference

Public Attributes

Image * ima
ImageUser iuser
ImBuf * ibuf
float * float_data_mut = nullptr
uint8_t * byte_data_mut = nullptr
ImagePaintPartialRedraw * partRedrawRect
volatile const void ** undoRect
ushort ** maskRect
bool ** valid
bool touch
float paint_color_byte [3]
bool is_data
bool is_srgb
const ColorSpace * byte_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 218 of file paint_image_proj.cc.

Member Data Documentation

◆ byte_colorspace

const ColorSpace* blender::ProjPaintImage::byte_colorspace

◆ byte_data_mut

◆ float_data_mut

◆ ibuf

◆ ima

◆ is_data

bool blender::ProjPaintImage::is_data

Definition at line 238 of file paint_image_proj.cc.

Referenced by blender::paint_proj_stroke_ps().

◆ is_srgb

bool blender::ProjPaintImage::is_srgb

◆ iuser

◆ maskRect

ushort** blender::ProjPaintImage::maskRect

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

Definition at line 232 of file paint_image_proj.cc.

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

◆ paint_color_byte

float blender::ProjPaintImage::paint_color_byte[3]

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

Definition at line 237 of file paint_image_proj.cc.

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

◆ partRedrawRect

◆ touch

◆ undoRect

volatile const void** blender::ProjPaintImage::undoRect

Only used to build undo tiles during painting.

Definition at line 229 of file paint_image_proj.cc.

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

◆ valid

bool** blender::ProjPaintImage::valid

Store flag to enforce validation of undo rectangle.

Definition at line 234 of file paint_image_proj.cc.

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


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