Blender V5.3
vw_paint_intern.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "DNA_brush_types.h"
12#include "DNA_scene_types.h"
13
14#include "RNA_types.hh"
15
16#include "BKE_paint.hh"
17
18#include "sculpt_intern.hh"
19
21bool test_brush_angle_falloff(const Brush &brush, float angle_cos);
22bool use_normal(const VPaint &vp);
23
24bool brush_use_accumulate_ex(const Brush &brush, eObjectMode ob_mode);
25bool brush_use_accumulate(const VPaint &vp);
26
27void get_brush_alpha_data(const SculptSession &ss,
28 const Paint &paint,
29 const Brush &brush,
30 float *r_brush_size_pressure,
31 float *r_brush_alpha_value,
32 float *r_brush_alpha_pressure);
33
34void init_stroke(
35 const wmOperator &op, Main &bmain, Paint &paint, Depsgraph &depsgraph, Object &ob);
36StrokeToggleSettings create_toggle_settings(const wmOperator &op, Main &bmain, Paint &paint);
37
38void update_sculpt_normal(const Depsgraph &depsgraph,
39 const Object &ob,
40 const VPaint &vp,
41 const Brush &brush,
42 IndexMask node_mask);
43
44bool mode_toggle_poll_test(bContext *C);
45
46void smooth_brush_toggle_off(Paint *paint, StrokeCache *cache);
47void smooth_brush_toggle_on(Main *bmain, Paint *paint, StrokeToggleSettings &toggle_settings);
48
50void update_cache_variants(Depsgraph &depsgraph,
51 ViewContext &vc,
52 VPaint &vp,
53 PaintMode paint_mode,
54 Object &ob,
55 Base &base,
56 const PaintStroke::StrokeStep &ptr);
58void update_cache_invariants(VPaint &vp, SculptSession &ss, wmOperator *op, const float mval[2]);
59} // namespace blender::ed::sculpt_paint::vwpaint
#define C
Definition RandGen.cpp:29
StrokeToggleSettings create_toggle_settings(const wmOperator &op, Main &bmain, Paint &paint)
void update_cache_variants(Depsgraph &depsgraph, ViewContext &vc, VPaint &vp, const PaintMode paint_mode, Object &ob, Base &base, const PaintStroke::StrokeStep &stroke_step)
bool use_normal(const VPaint &vp)
void update_cache_invariants(VPaint &vp, SculptSession &ss, wmOperator *op, const float mval[2])
void update_sculpt_normal(const Depsgraph &depsgraph, const Object &ob, const VPaint &vp, const Brush &brush, const IndexMask node_mask)
bool brush_use_accumulate_ex(const Brush &brush, const eObjectMode ob_mode)
void get_brush_alpha_data(const SculptSession &ss, const Paint &paint, const Brush &brush, float *r_brush_size_pressure, float *r_brush_alpha_value, float *r_brush_alpha_pressure)
void smooth_brush_toggle_on(Main *bmain, Paint *paint, StrokeToggleSettings &toggle_settings)
bool brush_use_accumulate(const VPaint &vp)
void smooth_brush_toggle_off(Paint *paint, StrokeCache *cache)
bool test_brush_angle_falloff(const Brush &brush, const float angle_cos)
void init_stroke(const wmOperator &op, Main &main, Paint &paint, Depsgraph &depsgraph, Object &ob)