Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_intern.h
| Show First 20 Lines • Show All 346 Lines • ▼ Show 20 Lines | |||||
| /* Cloth Brush. */ | /* Cloth Brush. */ | ||||
| void SCULPT_do_cloth_brush(struct Sculpt *sd, | void SCULPT_do_cloth_brush(struct Sculpt *sd, | ||||
| struct Object *ob, | struct Object *ob, | ||||
| struct PBVHNode **nodes, | struct PBVHNode **nodes, | ||||
| int totnode); | int totnode); | ||||
| void SCULPT_cloth_simulation_free(struct SculptClothSimulation *cloth_sim); | void SCULPT_cloth_simulation_free(struct SculptClothSimulation *cloth_sim); | ||||
| struct SculptClothSimulation *SCULPT_cloth_brush_simulation_create(struct SculptSession *ss, | |||||
| struct Brush *brush, | |||||
| const float cloth_mass, | |||||
| const float cloth_damping, | |||||
| const bool use_collisions); | |||||
| void SCULPT_cloth_brush_simulation_init(struct SculptSession *ss, | |||||
| struct SculptClothSimulation *cloth_sim); | |||||
| void SCULPT_cloth_brush_store_simulation_state(struct SculptSession *ss, | |||||
| struct SculptClothSimulation *cloth_sim); | |||||
| void SCULPT_cloth_brush_do_simulation_step(struct Sculpt *sd, | |||||
| struct Object *ob, | |||||
| struct SculptClothSimulation *cloth_sim, | |||||
| struct PBVHNode **nodes, | |||||
| int totnode); | |||||
| void SCULPT_cloth_brush_build_nodes_constraints(struct Sculpt *sd, | |||||
| struct Object *ob, | |||||
| struct PBVHNode **nodes, | |||||
| int totnode, | |||||
| struct SculptClothSimulation *cloth_sim, | |||||
| float initial_location[3], | |||||
| const float radius); | |||||
| void SCULPT_cloth_simulation_limits_draw(const uint gpuattr, | void SCULPT_cloth_simulation_limits_draw(const uint gpuattr, | ||||
| const struct Brush *brush, | const struct Brush *brush, | ||||
| const float location[3], | const float location[3], | ||||
| const float normal[3], | const float normal[3], | ||||
| const float rds, | const float rds, | ||||
| const float line_width, | const float line_width, | ||||
| const float outline_col[3], | const float outline_col[3], | ||||
| const float alpha); | const float alpha); | ||||
| ▲ Show 20 Lines • Show All 663 Lines • Show Last 20 Lines | |||||