Blender V2.61 - r43446
Functions | Variables

paint.c File Reference

#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

Paintpaint_get_active (Scene *sce)
Brushpaint_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}

Detailed Description

Definition in file paint.c.


Function Documentation

void copy_paint ( Paint src,
Paint tar 
)

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().

Brush* paint_brush ( Paint p) [read]

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().

void paint_brush_set ( Paint p,
Brush br 
)
int paint_facesel_test ( Object ob)
Paint* paint_get_active ( Scene sce) [read]
void paint_init ( Paint p,
const char  col[3] 
)
int paint_vertsel_test ( Object ob)

Variable Documentation

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().