Blender V2.61 - r43446
|
#include "DNA_object_types.h"
#include "DNA_mesh_types.h"
#include "DNA_scene_types.h"
#include "DNA_brush_types.h"
#include "BLI_utildefines.h"
#include "BKE_brush.h"
#include "BKE_library.h"
#include "BKE_paint.h"
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Functions | |
Paint * | paint_get_active (Scene *sce) |
Brush * | paint_brush (Paint *p) |
void | paint_brush_set (Paint *p, Brush *br) |
int | paint_facesel_test (Object *ob) |
int | paint_vertsel_test (Object *ob) |
void | paint_init (Paint *p, const char col[3]) |
void | free_paint (Paint *paint) |
void | copy_paint (Paint *src, Paint *tar) |
Variables | |
const char | PAINT_CURSOR_SCULPT [3] = {255, 100, 100} |
const char | PAINT_CURSOR_VERTEX_PAINT [3] = {255, 255, 255} |
const char | PAINT_CURSOR_WEIGHT_PAINT [3] = {200, 200, 255} |
const char | PAINT_CURSOR_TEXTURE_PAINT [3] = {255, 255, 255} |
Definition in file paint.c.
Definition at line 140 of file paint.c.
References Paint::brush, and id_us_plus().
Referenced by copy_scene().
void free_paint | ( | Paint * | paint | ) |
Definition at line 131 of file paint.c.
References Paint::brush, and id_us_min().
Referenced by free_scene().
Definition at line 79 of file paint.c.
References Paint::brush, and NULL.
Referenced by brush_add_exec(), brush_curve_preset_exec(), brush_curve_preset_poll(), brush_generic_tool_set(), brush_reset_exec(), brush_scale_size_exec(), brush_strength(), buttons_context_path_brush(), buttons_texture_users_from_context(), calc_sculpt_normal(), calc_sculpt_plane(), calc_vp_strength_dl(), do_clay_brush(), do_clay_tubes_brush(), do_crease_brush(), do_draw_brush(), do_fill_brush(), do_flatten_brush(), do_grab_brush(), do_inflate_brush(), do_layer_brush(), do_mesh_smooth_brush(), do_multires_smooth_brush(), do_nudge_brush(), do_pinch_brush(), do_rotate_brush(), do_scrape_brush(), do_snake_hook_brush(), do_symmetrical_brush_actions(), do_thumb_brush(), draw_image_paint_helpers(), get_alpha_clone_image(), get_offset(), image_paint_brush(), make_local_brush(), paint_brush_stroke_add_step(), paint_draw_cursor(), paint_draw_smooth_stroke(), paint_init(), paint_poll(), paint_sample_color(), paint_stroke_new(), project_state_init(), sculpt_brush_exit_tex(), sculpt_brush_init_tex(), sculpt_brush_stroke_init(), sculpt_combine_proxies(), sculpt_fix_noise_tear(), sculpt_flush_stroke_deform(), sculpt_get_brush_geometry(), sculpt_restore_mesh(), sculpt_stroke_done(), sculpt_stroke_modifiers_check(), sculpt_tool_name(), sculpt_update_cache_invariants(), sculpt_update_cache_variants(), sculpt_update_tex(), snode_set_context(), texture_paint_init(), vertex_paint_poll(), vpaint_blend(), vpaint_get_current_col(), vpaint_paint_face(), vpaint_stroke_update_step(), weight_paint_poll(), wpaint_blend(), and wpaint_stroke_update_step().
Definition at line 84 of file paint.c.
References Paint::brush, id_us_min(), and id_us_plus().
Referenced by brush_add_exec(), brush_generic_tool_set(), make_local_brush(), paint_init(), sculpt_stroke_done(), and sculpt_update_cache_invariants().
int paint_facesel_test | ( | Object * | ob | ) |
Definition at line 94 of file paint.c.
References Object::data, ME_EDIT_PAINT_MASK, Object::mode, NULL, OB_MESH, OB_MODE_TEXTURE_PAINT, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, and Object::type.
Referenced by backdrawview3d(), draw_mesh_fancy(), draw_mesh_text(), ED_view3d_object_datamask(), EM_init_backbuf_circle(), EM_mask_init_backbuf_border(), facemask_paint_poll(), make_editMesh(), mask_paint_poll(), mesh_build_data(), view3d_borderselect_exec(), view3d_circle_select_exec(), view3d_lasso_select(), view3d_select_invoke(), view3d_selectable_data(), and viewselected_exec().
Definition at line 54 of file paint.c.
References Scene::basact, ToolSettings::imapaint, Object::mode, NULL, OB_MODE_SCULPT, OB_MODE_TEXTURE_PAINT, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, Base::object, ImagePaintSettings::paint, VPaint::paint, Sculpt::paint, ToolSettings::sculpt, Scene::toolsettings, ToolSettings::vpaint, and ToolSettings::wpaint.
Referenced by brush_add_exec(), brush_curve_preset_exec(), brush_curve_preset_poll(), brush_drawcursor(), brush_reset_exec(), brush_scale_size_exec(), buttons_context_path_brush(), buttons_texture_users_from_context(), draw_mesh_fancy(), paint_brush_stroke_add_step(), paint_cursor_start(), paint_draw_cursor(), paint_draw_smooth_stroke(), paint_poll(), paint_sample_color(), paint_stroke_new(), and viewops_data_free().
void paint_init | ( | Paint * | p, |
const char | col[3] | ||
) |
Definition at line 115 of file paint.c.
References add_brush(), Paint::flags, NULL, paint_brush(), paint_brush_set(), Paint::paint_cursor_col, and PAINT_SHOW_BRUSH.
Referenced by sculpt_toggle_mode(), set_vpaint(), set_wpaint(), and texture_paint_toggle_exec().
int paint_vertsel_test | ( | Object * | ob | ) |
Definition at line 105 of file paint.c.
References Object::data, ME_EDIT_VERT_SEL, Object::mode, NULL, OB_MESH, OB_MODE_WEIGHT_PAINT, and Object::type.
Referenced by draw_mesh_fancy(), draw_mesh_text(), EM_init_backbuf_circle(), EM_mask_init_backbuf_border(), make_editMesh(), mask_paint_poll(), mesh_build_data(), vert_paint_poll(), view3d_borderselect_exec(), view3d_circle_select_exec(), view3d_lasso_select(), view3d_select_invoke(), and view3d_selectable_data().
const char PAINT_CURSOR_SCULPT[3] = {255, 100, 100} |
Definition at line 49 of file paint.c.
Referenced by sculpt_toggle_mode().
const char PAINT_CURSOR_TEXTURE_PAINT[3] = {255, 255, 255} |
Definition at line 52 of file paint.c.
Referenced by texture_paint_toggle_exec().
const char PAINT_CURSOR_VERTEX_PAINT[3] = {255, 255, 255} |
Definition at line 50 of file paint.c.
Referenced by set_vpaint().
const char PAINT_CURSOR_WEIGHT_PAINT[3] = {200, 200, 255} |
Definition at line 51 of file paint.c.
Referenced by set_wpaint().