#include <brush.h>
Public Methods | |
| void | add_plane (const plane_t *p) |
| Add a new face. | |
| void | set_shader (const shader_t *shader) |
| Set shader for new faces. | |
| void | set_face_shader (ulong face, const shader_t *shader) |
| Set a face's shader. | |
| void | draw () |
| Draw this brush. | |
| brushface_c * | get_brush_face (ulong i) |
| Get brush face. | |
Protected Methods | |
| void | find_edges () |
| find all edges | |
Protected Attributes | |
| array_c< brushface_c > * | faces |
| the sides of this brush | |
| edge_t * | edges |
| all edges of all faces | |
| ulong | edgecount |
| total edge count | |
| const shader_t * | shader |
| shader for new faces | |
Definition at line 200 of file brush.h.
|
|
Adds a new face to the brush using plane p. All existing faces cut the new face in shape and are cut by it.
Definition at line 291 of file x_brush.cpp. References brushface_c::create_from_plane(), brushface_c::cut(), brushface_c::get_plane(), SafeDelete, and brushface_c::set_shader(). |
|
|
Draws this brush and all it's faces. Definition at line 381 of file x_brush.cpp. References brushface_c::draw(). |
|
|
Returns a pointer to brush face i. If i is larger than the face count NULL is returned.
Definition at line 273 of file brush.h. References array_c::get(). |
|
||||||||||||
|
Sets the shader of a face face to shader.
Definition at line 355 of file x_brush.cpp. References brushface_c::set_shader(). |
|
|
Sets the shader of this brush. All new faces will get this shader.
Definition at line 336 of file x_brush.cpp. References brushface_c::set_shader(). |
1.2.18