2009-01-06 21:23:42 +00:00
|
|
|
/*
|
|
|
|
* $Id: BDR_sculptmode.h 13396 2008-01-25 04:17:38Z nicholasbishop $
|
|
|
|
*
|
|
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
|
|
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
* The Original Code is Copyright (C) 2006 by Nicholas Bishop
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* The Original Code is: all of this file.
|
|
|
|
*
|
|
|
|
* Contributor(s): none yet.
|
|
|
|
*
|
|
|
|
* ***** END GPL LICENSE BLOCK *****
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BDR_SCULPTMODE_H
|
|
|
|
#define BDR_SCULPTMODE_H
|
|
|
|
|
|
|
|
#include "DNA_listBase.h"
|
|
|
|
#include "DNA_vec_types.h"
|
|
|
|
#include "BKE_sculpt.h"
|
|
|
|
|
|
|
|
struct BrushAction;
|
2009-01-07 04:38:30 +00:00
|
|
|
struct Brush;
|
2009-01-06 21:23:42 +00:00
|
|
|
struct IndexNode;
|
|
|
|
struct KeyBlock;
|
|
|
|
struct Mesh;
|
|
|
|
struct Object;
|
|
|
|
struct PartialVisibility;
|
|
|
|
struct Scene;
|
|
|
|
struct ScrArea;
|
|
|
|
struct SculptData;
|
|
|
|
struct SculptStroke;
|
|
|
|
|
|
|
|
/* Interface */
|
|
|
|
void sculptmode_selectbrush_menu(void);
|
|
|
|
void sculptmode_draw_mesh(int);
|
|
|
|
void sculpt_paint_brush(char clear);
|
2009-01-14 17:22:30 +00:00
|
|
|
void sculpt_stroke_draw(struct SculptStroke *);
|
2009-01-06 21:23:42 +00:00
|
|
|
void sculpt_radialcontrol_start(int mode);
|
|
|
|
|
2009-01-07 04:38:30 +00:00
|
|
|
struct Brush *sculptmode_brush(void);
|
2009-01-13 23:21:05 +00:00
|
|
|
//void do_symmetrical_brush_actions(struct SculptData *sd, struct wmOperator *wm, struct BrushAction *a, short *, short *);
|
2009-01-06 21:23:42 +00:00
|
|
|
|
|
|
|
char sculpt_modifiers_active(struct Object *ob);
|
2009-01-09 00:38:48 +00:00
|
|
|
void sculpt(SculptData *sd);
|
2009-01-06 21:23:42 +00:00
|
|
|
|
|
|
|
/* Stroke */
|
2009-01-09 00:38:48 +00:00
|
|
|
struct SculptStroke *sculpt_stroke_new(const int max);
|
|
|
|
void sculpt_stroke_free(struct SculptStroke *);
|
|
|
|
void sculpt_stroke_add_point(struct SculptStroke *, const short x, const short y);
|
2009-01-14 17:22:30 +00:00
|
|
|
void sculpt_stroke_apply(struct SculptData *sd, struct SculptStroke *);
|
|
|
|
void sculpt_stroke_apply_all(struct SculptData *sd, struct SculptStroke *);
|
2009-01-06 21:23:42 +00:00
|
|
|
|
|
|
|
/* Partial Mesh Visibility */
|
|
|
|
void sculptmode_pmv(int mode);
|
|
|
|
|
|
|
|
#endif
|