Added BKE_freestyle_lineset_delete() by generalizing FRS_delete_active_lineset().
[blender.git] / source / blender / blenkernel / BKE_subsurf.h
index c4d23a327d7011a8316f9d9516e1ee7f330917fb..3dae4087866f4d7320cea79f7bd127e4190f5153 100644 (file)
@@ -59,28 +59,33 @@ typedef enum {
        SUBSURF_USE_RENDER_PARAMS = 1,
        SUBSURF_IS_FINAL_CALC = 2,
        SUBSURF_FOR_EDIT_MODE = 4,
-       SUBSURF_IN_EDIT_MODE = 8
+       SUBSURF_IN_EDIT_MODE = 8,
+       SUBSURF_ALLOC_PAINT_MASK = 16
 } SubsurfFlags;
 
 struct DerivedMesh *subsurf_make_derived_from_derived(
-                                               struct DerivedMesh *dm,
-                                               struct SubsurfModifierData *smd,
-                                               float (*vertCos)[3],
-                                               SubsurfFlags flags);
+        struct DerivedMesh *dm,
+        struct SubsurfModifierData *smd,
+        float (*vertCos)[3],
+        SubsurfFlags flags);
 
-void subsurf_calculate_limit_positions(struct Mesh *me, float (*positions_r)[3]);
+void subsurf_calculate_limit_positions(struct Mesh *me, float (*r_positions)[3]);
 
 /* get gridsize from 'level', level must be greater than zero */
-int ccg_gridsize(int level);
+int BKE_ccg_gridsize(int level);
 
 /* x/y grid coordinates at 'low_level' can be multiplied by the result
  * of this function to convert to grid coordinates at 'high_level' */
-int ccg_factor(int low_level, int high_level);
+int BKE_ccg_factor(int low_level, int high_level);
 
 void subsurf_copy_grid_hidden(struct DerivedMesh *dm,
-                                                         const struct MPoly *mpoly,
-                                                         struct MVert *mvert,
-                                                         const struct MDisps *mdisps);
+                              const struct MPoly *mpoly,
+                              struct MVert *mvert,
+                              const struct MDisps *mdisps);
+
+void subsurf_copy_grid_paint_mask(struct DerivedMesh *dm,
+                                  const struct MPoly *mpoly, float *paint_mask,
+                                  const struct GridPaintMask *grid_paint_mask);
 
 typedef enum MultiresModifiedFlags {
        /* indicates the grids have been sculpted on, so MDisps
@@ -99,10 +104,10 @@ typedef struct CCGDerivedMesh {
        int freeSS;
        int drawInteriorEdges, useSubsurfUv;
 
-       struct {int startVert; struct CCGVert *vert;} *vertMap;
-       struct {int startVert; int startEdge; struct CCGEdge *edge;} *edgeMap;
+       struct {int startVert; struct CCGVert *vert; } *vertMap;
+       struct {int startVert; int startEdge; struct CCGEdge *edge; } *edgeMap;
        struct {int startVert; int startEdge;
-                       int startFace; struct CCGFace *face;} *faceMap;
+                   int startFace; struct CCGFace *face; } *faceMap;
 
        short *edgeFlags;
        struct DMFlagMat *faceFlags;