196 struct CoNo **r_vcosnos);
201 const float mval_fl[2]);
219 struct ImBuf *ibuf,
int x,
int y,
int w,
int h,
int *tx,
int *ty,
int *tw,
int *th);
225 const float prev_mval[2],
235 const float color[3],
237 const float mouse_init[2],
238 const float mouse_final[2],
242 const float mouse_init[2],
243 const float mouse_final[2],
248 const float prev_pos[2],
259 bool color_correction,
315 const struct Brush *brush,
318 const float cursor_position[2]);
332 const float bb_min[3],
333 const float bb_max[3],
346 const struct rcti *screen_rect);
366 struct bContext *
C,
struct ARegion *region,
int x,
int y,
bool texpaint_proj,
bool palette);
416 float axis[3],
angle;
510 #define PAINT_CURVE_NUM_SEGMENTS 40
void axis_angle_normalized_to_quat(float r[4], const float axis[3], float angle)
void quat_to_axis_angle(float axis[3], float *angle, const float q[4])
MINLINE float normalize_v3(float r[3])
struct Depsgraph Depsgraph
NSNotificationCenter * center
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Bright Control the brightness and contrast of the input color Vector Map an input vectors to used to fine tune the interpolation of the input Camera Retrieve information about the camera and how it relates to the current shading point s position Clamp a value between a minimum and a maximum Vector Perform vector math operation Invert a color
ATTR_WARN_UNUSED_RESULT const BMVert * v
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
SIMD_FORCE_INLINE btScalar angle(const btVector3 &v) const
Return the angle between this and another vector.
const Depsgraph * depsgraph
SyclQueue void void size_t num_bytes void
depth_tx normal_tx diffuse_light_tx specular_light_tx volume_light_tx environment_tx ambient_occlusion_tx aov_value_tx in_weight_img image(1, GPU_R32F, Qualifier::WRITE, ImageType::FLOAT_2D_ARRAY, "out_weight_img") .image(3
CCL_NAMESPACE_BEGIN ccl_device float invert(float color, float factor)
T distance(const T &a, const T &b)
static const pxr::TfToken out("out", pxr::TfToken::Immortal)
static const pxr::TfToken rgba("rgba", pxr::TfToken::Immortal)
bool paint_use_opacity_masking(struct Brush *brush)
void paint_stroke_cancel(struct bContext *C, struct wmOperator *op, struct PaintStroke *stroke)
void PAINT_OT_add_simple_uvs(struct wmOperatorType *ot)
void PAINTCURVE_OT_add_point(struct wmOperatorType *ot)
float ED_wpaint_blend_tool(int tool, float weight, float paintval, float alpha)
bool vertex_paint_mode_poll(struct bContext *C)
void PAINTCURVE_OT_new(struct wmOperatorType *ot)
void PAINT_OT_vertex_color_set(struct wmOperatorType *ot)
void paint_2d_redraw(const struct bContext *C, void *ps, bool final)
void PAINT_OT_weight_from_bones(struct wmOperatorType *ot)
void PAINT_OT_face_select_linked_pick(struct wmOperatorType *ot)
void PAINT_OT_mask_line_gesture(struct wmOperatorType *ot)
void PAINTCURVE_OT_select(struct wmOperatorType *ot)
void PAINT_OT_project_image(struct wmOperatorType *ot)
void PAINT_OT_weight_set(struct wmOperatorType *ot)
BlurKernel * paint_new_blur_kernel(struct Brush *br, bool proj)
void PAINT_OT_face_select_hide(struct wmOperatorType *ot)
void PAINT_OT_mask_lasso_gesture(struct wmOperatorType *ot)
void PAINT_OT_grab_clone(struct wmOperatorType *ot)
void PAINT_OT_add_texture_paint_slot(struct wmOperatorType *ot)
@ WPAINT_GRADIENT_TYPE_RADIAL
@ WPAINT_GRADIENT_TYPE_LINEAR
bool paint_supports_jitter(enum ePaintMode mode)
void(* StrokeRedraw)(const struct bContext *C, struct PaintStroke *stroke, bool final)
void paint_proj_redraw(const struct bContext *C, void *ps_handle_p, bool final)
void PAINT_OT_weight_paint_toggle(struct wmOperatorType *ot)
void PAINT_OT_vertex_color_hsv(struct wmOperatorType *ot)
unsigned int ED_vpaint_blend_tool(int tool, uint col, uint paintcol, int alpha_i)
void paint_2d_bucket_fill(const struct bContext *C, const float color[3], struct Brush *br, const float mouse_init[2], const float mouse_final[2], void *ps)
void PAINTCURVE_OT_slide(struct wmOperatorType *ot)
bool paint_stroke_flipped(struct PaintStroke *stroke)
void paint_proj_stroke(const struct bContext *C, void *ps_handle_p, const float prev_pos[2], const float pos[2], bool eraser, float pressure, float distance, float size)
int paint_stroke_modal(struct bContext *C, struct wmOperator *op, const struct wmEvent *event, struct PaintStroke **stroke_p)
void * paint_2d_new_stroke(struct bContext *, struct wmOperator *, int mode)
void paint_2d_stroke(void *ps, const float prev_mval[2], const float mval[2], bool eraser, float pressure, float distance, float size)
bool paint_supports_texture(enum ePaintMode mode)
void PAINT_OT_mask_box_gesture(struct wmOperatorType *ot)
void PAINT_OT_face_select_all(struct wmOperatorType *ot)
int paint_stroke_exec(struct bContext *C, struct wmOperator *op, struct PaintStroke *stroke)
bool mask_paint_poll(struct bContext *C)
bool ED_wpaint_ensure_data(struct bContext *C, struct ReportList *reports, enum eWPaintFlag flag, struct WPaintVGroupIndex *vgroup_index)
void PAINTCURVE_OT_draw(struct wmOperatorType *ot)
void(* StrokeUpdateStep)(struct bContext *C, struct wmOperator *op, struct PaintStroke *stroke, struct PointerRNA *itemptr)
void paint_2d_gradient_fill(const struct bContext *C, struct Brush *br, const float mouse_init[2], const float mouse_final[2], void *ps)
struct PaintStroke * paint_stroke_new(struct bContext *C, struct wmOperator *op, StrokeGetLocation get_location, StrokeTestStart test_start, StrokeUpdateStep update_step, StrokeRedraw redraw, StrokeDone done, int event_type)
bool vertex_paint_poll_ignore_tool(struct bContext *C)
void PAINT_OT_image_paint(struct wmOperatorType *ot)
void PAINT_OT_weight_sample_group(struct wmOperatorType *ot)
bool paint_supports_smooth_stroke(struct Brush *br, enum ePaintMode mode)
void paint_stroke_set_mode_data(struct PaintStroke *stroke, void *mode_data)
void SCULPT_OT_uv_sculpt_stroke(struct wmOperatorType *ot)
void(* StrokeDone)(const struct bContext *C, struct PaintStroke *stroke)
void PAINT_OT_vertex_color_brightness_contrast(struct wmOperatorType *ot)
void set_imapaintpartial(struct ImagePaintPartialRedraw *ippr)
void PAINT_OT_mask_flood_fill(struct wmOperatorType *ot)
void paint_cursor_delete_textures(void)
bool weight_paint_mode_poll(struct bContext *C)
void PAINT_OT_weight_paint(struct wmOperatorType *ot)
void * paint_proj_new_stroke(struct bContext *C, struct Object *ob, const float mouse[2], int mode)
void paint_get_tex_pixel_col(const struct MTex *mtex, float u, float v, float rgba[4], struct ImagePool *pool, int thread, bool convert, struct ColorSpace *colorspace)
void PAINT_OT_vertex_paint(struct wmOperatorType *ot)
void PAINT_OT_face_vert_reveal(struct wmOperatorType *ot)
void paint_2d_stroke_done(void *ps)
struct ImagePaintPartialRedraw ImagePaintPartialRedraw
bool image_texture_paint_poll(struct bContext *C)
void PAINT_OT_vertex_color_smooth(struct wmOperatorType *ot)
void PAINT_OT_vert_select_all(struct wmOperatorType *ot)
void paint_curve_mask_cache_free_data(CurveMaskCache *curve_mask_cache)
void paint_brush_exit_tex(struct Brush *brush)
BLI_INLINE void flip_v3(float v[3], const ePaintSymmetryFlags symm)
struct ImagePaintPartialRedraw * get_imapaintpartial(void)
void PAINT_OT_hide_show(struct wmOperatorType *ot)
bool paint_convert_bb_to_rect(struct rcti *rect, const float bb_min[3], const float bb_max[3], const struct ARegion *region, struct RegionView3D *rv3d, struct Object *ob)
void PAINT_OT_vert_select_hide(struct wmOperatorType *ot)
bool vertex_paint_poll(struct bContext *C)
void paint_delete_blur_kernel(BlurKernel *)
@ PAINT_MASK_FLOOD_VALUE_INVERSE
float paint_calc_object_space_radius(struct ViewContext *vc, const float center[3], float pixel_radius)
void paint_stroke_free(struct bContext *C, struct wmOperator *op, struct PaintStroke *stroke)
BLI_INLINE void flip_qt(float quat[4], const ePaintSymmetryFlags symm)
void paint_brush_color_get(struct Scene *scene, struct Brush *br, bool color_correction, bool invert, float distance, float pressure, float color[3], struct ColorManagedDisplay *display)
void ED_vpaint_proj_handle_free(struct VertProjHandle *vp_handle)
void paint_calc_redraw_planes(float planes[4][4], const struct ARegion *region, struct Object *ob, const struct rcti *screen_rect)
struct VertProjHandle * ED_vpaint_proj_handle_create(struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob, struct CoNo **r_vcosnos)
void imapaint_image_update(struct SpaceImage *sima, struct Image *image, struct ImBuf *ibuf, struct ImageUser *iuser, short texpaint)
void PAINT_OT_vert_select_ungrouped(struct wmOperatorType *ot)
bool paint_supports_dynamic_size(struct Brush *br, enum ePaintMode mode)
void PAINT_OT_face_select_linked(struct wmOperatorType *ot)
void * paint_stroke_mode_data(struct PaintStroke *stroke)
BLI_INLINE void flip_qt_qt(float out[4], const float in[4], const ePaintSymmetryFlags symm)
bool get_imapaint_zoom(struct bContext *C, float *zoomx, float *zoomy)
void PAINT_OT_weight_gradient(struct wmOperatorType *ot)
bool weight_paint_poll_ignore_tool(bContext *C)
void PAINT_OT_vertex_color_levels(struct wmOperatorType *ot)
struct wmKeyMap * paint_stroke_modal_keymap(struct wmKeyConfig *keyconf)
int ED_wpaint_mirror_vgroup_ensure(struct Object *ob, int vgroup_active)
bool image_paint_poll(struct bContext *C)
bool(* StrokeGetLocation)(struct bContext *C, float location[3], const float mouse[2], bool force_original)
void PAINT_OT_vertex_paint_toggle(struct wmOperatorType *ot)
void PAINT_OT_vertex_color_invert(struct wmOperatorType *ot)
bool paint_stroke_inverted(struct PaintStroke *stroke)
float paint_get_tex_pixel(const struct MTex *mtex, float u, float v, struct ImagePool *pool, int thread)
void PAINT_OT_weight_sample(struct wmOperatorType *ot)
void ED_vpaint_proj_handle_update(struct Depsgraph *depsgraph, struct VertProjHandle *vp_handle, struct ARegion *region, const float mval_fl[2])
bool paint_curve_poll(struct bContext *C)
void paint_sample_color(struct bContext *C, struct ARegion *region, int x, int y, bool texpaint_proj, bool palette)
void imapaint_region_tiles(struct ImBuf *ibuf, int x, int y, int w, int h, int *tx, int *ty, int *tw, int *th)
void paint_proj_stroke_done(void *ps_handle_p)
bool(* StrokeTestStart)(struct bContext *C, struct wmOperator *op, const float mouse[2])
bool vert_paint_poll(struct bContext *C)
bool paint_supports_dynamic_tex_coords(struct Brush *br, enum ePaintMode mode)
void PAINT_OT_vertex_color_from_weight(struct wmOperatorType *ot)
void PAINT_OT_image_from_view(struct wmOperatorType *ot)
bool weight_paint_poll(struct bContext *C)
struct ViewContext * paint_stroke_view_context(struct PaintStroke *stroke)
bool paint_space_stroke_enabled(struct Brush *br, enum ePaintMode mode)
void(* VPaintTransform_Callback)(const float col[3], const void *user_data, float r_col[3])
void paint_brush_init_tex(struct Brush *brush)
bool PAINT_brush_tool_poll(struct bContext *C)
void PAINT_OT_texture_paint_toggle(struct wmOperatorType *ot)
void PAINT_OT_sample_color(struct wmOperatorType *ot)
void paint_curve_mask_cache_update(CurveMaskCache *curve_mask_cache, const struct Brush *brush, int diameter, float radius, const float cursor_position[2])
void BRUSH_OT_curve_preset(struct wmOperatorType *ot)
void paint_stroke_operator_properties(struct wmOperatorType *ot)
void PAINTCURVE_OT_delete_point(struct wmOperatorType *ot)
void PAINTCURVE_OT_cursor(struct wmOperatorType *ot)
void PAINT_OT_brush_colors_flip(struct wmOperatorType *ot)
bool facemask_paint_poll(struct bContext *C)
BLI_INLINE void flip_v3_v3(float out[3], const float in[3], const ePaintSymmetryFlags symm)
float paint_stroke_distance_get(struct PaintStroke *stroke)
unsigned int vpaint_get_current_color(struct Scene *scene, struct VPaint *vp, bool secondary)
struct CurveMaskCache CurveMaskCache
Caching structure for curve mask.
Caching structure for curve mask.
ushort * curve_mask
Curve mask that can be passed as curve_mask parameter when.
float * sampled_curve
sampled version of the brush curve-mapping.
int last_curve_timestamp
Last CurveMapping.changed_timestamp being read.
size_t curve_mask_size
Size in bytes of the curve_mask field.
StrokeGetLocation get_location
StrokeTestStart test_start
StrokeUpdateStep update_step