133 const float paintval,
168 struct CoNo **r_vcosnos);
173 const float mval_fl[2]);
191 struct ImBuf *ibuf,
int x,
int y,
int w,
int h,
int *tx,
int *ty,
int *tw,
int *th);
197 const float prev_mval[2],
204 const float color[3],
206 const float mouse_init[2],
207 const float mouse_final[2],
211 const float mouse_init[2],
212 const float mouse_final[2],
217 const float prev_pos[2],
228 bool color_correction,
257 const float bb_min[3],
258 const float bb_max[3],
269 const struct rcti *screen_rect);
286 struct bContext *
C,
struct ARegion *region,
int x,
int y,
bool texpaint_proj,
bool palette);
368 #define PAINT_CURVE_NUM_SEGMENTS 40
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
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.
const Depsgraph * depsgraph
static CCL_NAMESPACE_BEGIN const double alpha
bool paint_use_opacity_masking(struct Brush *brush)
void PAINT_OT_add_simple_uvs(struct wmOperatorType *ot)
void PAINTCURVE_OT_add_point(struct wmOperatorType *ot)
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)
bool paint_poll(struct bContext *C)
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)
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)
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_2d_new_stroke(struct bContext *, struct wmOperator *, int mode)
bool paint_supports_texture(enum ePaintMode mode)
void PAINT_OT_mask_box_gesture(struct wmOperatorType *ot)
@ WPAINT_GRADIENT_TYPE_RADIAL
@ WPAINT_GRADIENT_TYPE_LINEAR
void PAINT_OT_face_select_all(struct wmOperatorType *ot)
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 paint_cursor_start(struct Paint *p, bool(*poll)(struct bContext *C))
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)
int paint_stroke_modal(struct bContext *C, struct wmOperator *op, const struct wmEvent *event)
bool vertex_paint_poll_ignore_tool(struct bContext *C)
int ED_wpaint_mirror_vgroup_ensure(struct Object *ob, const int vgroup_active)
float ED_wpaint_blend_tool(const int tool, const float weight, const float paintval, const float alpha)
void PAINT_OT_image_paint(struct wmOperatorType *ot)
void PAINT_OT_weight_sample_group(struct wmOperatorType *ot)
bool(* StrokeGetLocation)(struct bContext *C, float location[3], const float mouse[2])
bool paint_supports_smooth_stroke(struct Brush *br, enum ePaintMode mode)
void paint_stroke_set_mode_data(struct PaintStroke *stroke, void *mode_data)
void flip_qt_qt(float out[3], const float in[3], const enum ePaintSymmetryFlags symm)
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_OT_face_select_reveal(struct wmOperatorType *ot)
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_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_brush_exit_tex(struct Brush *brush)
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)
int paint_stroke_exec(struct bContext *C, struct wmOperator *op)
void paint_2d_stroke(void *ps, const float prev_mval[2], const float mval[2], const bool eraser, float pressure, float distance, float size)
bool vertex_paint_poll(struct bContext *C)
void paint_delete_blur_kernel(BlurKernel *)
void paint_stroke_free(struct bContext *C, struct wmOperator *op)
@ PAINT_MASK_FLOOD_VALUE_INVERSE
float paint_calc_object_space_radius(struct ViewContext *vc, const float center[3], float pixel_radius)
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)
unsigned int vpaint_get_current_col(struct Scene *scene, struct VPaint *vp, bool secondary)
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)
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 flip_v3_v3(float out[3], const float in[3], const enum ePaintSymmetryFlags symm)
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(* StrokeUpdateStep)(struct bContext *C, struct PaintStroke *stroke, struct PointerRNA *itemptr)
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)
unsigned int ED_vpaint_blend_tool(const int tool, const uint col, const uint paintcol, const int alpha_i)
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 ED_vpaint_color_transform(struct Object *ob, VPaintTransform_Callback vpaint_tx_fn, const void *user_data)
void paint_proj_stroke(const struct bContext *C, void *ps_handle_p, const float prev_pos[2], const float pos[2], const bool eraser, float pressure, float distance, float size)
void paint_stroke_cancel(struct bContext *C, struct wmOperator *op)
void PAINT_OT_texture_paint_toggle(struct wmOperatorType *ot)
void PAINT_OT_sample_color(struct wmOperatorType *ot)
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)
float paint_stroke_distance_get(struct PaintStroke *stroke)
StrokeGetLocation get_location
StrokeTestStart test_start
StrokeUpdateStep update_step
CCL_NAMESPACE_BEGIN ccl_device float invert(float color, float factor)
ccl_device_inline float distance(const float2 &a, const float2 &b)