Blender V5.3
paint_image.cc File Reference

Functions to paint images in 2D and 3D. More...

#include <cfloat>
#include <cmath>
#include <cstdio>
#include <cstring>
#include "DNA_space_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_listbase.hh"
#include "BLI_math_color_c.hh"
#include "BLI_math_vector.hh"
#include "BLI_rand.hh"
#include "BLI_string.hh"
#include "BLI_utildefines.hh"
#include "IMB_imbuf.hh"
#include "IMB_imbuf_types.hh"
#include "IMB_partial_update.hh"
#include "DNA_brush_types.h"
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BKE_brush.hh"
#include "BKE_colorband.hh"
#include "BKE_context.hh"
#include "BKE_image.hh"
#include "BKE_image_gpu.hh"
#include "BKE_library.hh"
#include "BKE_main.hh"
#include "BKE_material.hh"
#include "BKE_mesh.hh"
#include "BKE_node_runtime.hh"
#include "BKE_object.hh"
#include "BKE_paint.hh"
#include "BKE_paint_types.hh"
#include "BKE_scene.hh"
#include "NOD_texture.h"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_query.hh"
#include "UI_view2d.hh"
#include "ED_grease_pencil.hh"
#include "ED_image.hh"
#include "ED_object.hh"
#include "ED_paint.hh"
#include "ED_screen.hh"
#include "WM_api.hh"
#include "WM_message.hh"
#include "WM_toolsystem.hh"
#include "WM_types.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "IMB_colormanagement.hh"
#include "mesh_paint.hh"
#include "../paint_intern.hh"

Go to the source code of this file.

Classes

struct  blender::GrabClone

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Image Paint Blur
BlurKernel * blender::paint_new_blur_kernel (Brush *br, bool proj)
void blender::paint_delete_blur_kernel (BlurKernel *kernel)
Image Paint Poll
static Brush * blender::image_paint_brush (bContext *C)
static bool blender::image_paint_poll_ex (bContext *C, bool check_tool)
bool blender::ED_image_tools_paint_poll (bContext *C)
bool blender::image_paint_poll_ignore_tool (bContext *C)
static bool blender::image_paint_2d_clone_poll (bContext *C)
Paint Operator
bool blender::paint_use_opacity_masking (const Paint *paint, const Brush *brush)
void blender::paint_brush_color_get (const Paint *paint, Brush *br, std::optional< float3 > &initial_hsv_jitter, bool invert, float distance, float pressure, float r_color[3])
void blender::paint_brush_init_tex (Brush *brush)
void blender::paint_brush_exit_tex (Brush *brush)
bool blender::get_imapaint_zoom (bContext *C, float *zoomx, float *zoomy)
Cursor Drawing
static void blender::toggle_paint_cursor (Scene &scene, bool enable)
void blender::ED_space_image_paint_update (Main *bmain, wmWindowManager *wm, Scene *scene)
Grab Clone Operator
static void blender::grab_clone_apply (bContext *C, wmOperator *op)
static wmOperatorStatus blender::grab_clone_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::grab_clone_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::grab_clone_modal (bContext *C, wmOperator *op, const wmEvent *event)
static void blender::grab_clone_cancel (bContext *, wmOperator *op)
void blender::PAINT_OT_grab_clone (wmOperatorType *ot)
Texture Paint Toggle Operator
void blender::ED_object_texture_paint_mode_enter_ex (Main &bmain, Scene &scene, Depsgraph &depsgraph, Object &ob)
void blender::ED_object_texture_paint_mode_enter (bContext *C)
void blender::ED_object_texture_paint_mode_exit_ex (Main &bmain, Scene &scene, Object &ob)
void blender::ED_object_texture_paint_mode_exit (bContext *C)
static bool blender::texture_paint_object_toggle_poll (bContext *C)
static wmOperatorStatus blender::texture_paint_toggle_exec (bContext *C, wmOperator *op)
void blender::PAINT_OT_texture_paint_toggle (wmOperatorType *ot)
Brush Color Flip Operator
static wmOperatorStatus blender::brush_colors_flip_exec (bContext *C, wmOperator *)
static bool blender::brush_colors_flip_poll (bContext *C)
void blender::PAINT_OT_brush_colors_flip (wmOperatorType *ot)
Texture Paint Bucket Fill Operator
void blender::ED_imapaint_bucket_fill (bContext *C, const float color[3], wmOperator *op, const int mouse[2])
static bool blender::texture_paint_object_poll (bContext *C)
float3 blender::BKE_paint_seed_hsv_jitter ()
bool blender::image_texture_paint_poll (bContext *C)
bool blender::facemask_paint_poll (bContext *C)
bool blender::vert_paint_poll (bContext *C)
bool blender::mask_paint_poll (bContext *C)

Image Paint Tile Utilities (Partial Update)

static ImagePaintPartialRedraw blender::imapaintpartial = {{0}}
ImagePaintPartialRedraw * blender::get_imapaintpartial ()
void blender::set_imapaintpartial (ImagePaintPartialRedraw *ippr)
void blender::ED_imapaint_clear_partial_redraw ()
void blender::imapaint_region_tiles (ImBuf *ibuf, int x, int y, int w, int h, int *tx, int *ty, int *tw, int *th)
void blender::ED_imapaint_dirty_region (Image *ima, ImBuf *ibuf, ImageUser *iuser, int x, int y, int w, int h)
void blender::imapaint_image_update (ImBuf *ibuf)

Detailed Description

Functions to paint images in 2D and 3D.

Definition in file paint_image.cc.