diff options
author | Joseph Eagar <joeedh@gmail.com> | 2022-11-06 00:47:48 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-11-06 00:47:48 +0300 |
commit | 9980fd0b8e1f3a07060316f28469f55a3f2fc0cd (patch) | |
tree | 2fd373a0ef983c37882c32cb7a897cd72242c06b /source/blender/editors/sculpt_paint/paint_intern.h | |
parent | db3bf3677085d64cca04f01e2004f556c75a4400 (diff) |
temp-sculpt-roll-mapping: Port roll tex mapping code from sculpt-dev
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_intern.h')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_intern.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_intern.h b/source/blender/editors/sculpt_paint/paint_intern.h index c6fe7ed3072..caa6a456467 100644 --- a/source/blender/editors/sculpt_paint/paint_intern.h +++ b/source/blender/editors/sculpt_paint/paint_intern.h @@ -16,7 +16,16 @@ #include "DNA_scene_types.h" #ifdef __cplusplus +namespace blender { +template<typename Float, int axes> class BezierSpline; +} + +using BezierSpline2f = blender::BezierSpline<float, 2>; +using BezierSpline3f = blender::BezierSpline<float, 3>; extern "C" { +#else +typedef struct BezierSpline2f BezierSpline2f; +typedef struct BezierSpline3f BezierSpline3f; #endif struct ARegion; @@ -511,6 +520,13 @@ void paint_delete_blur_kernel(BlurKernel *); /* paint curve defines */ #define PAINT_CURVE_NUM_SEGMENTS 40 +void paint_stroke_spline_uv(struct PaintStroke *stroke, + struct StrokeCache *cache, + const float co[3], + float r_out[3], + float r_tan[3]); +float paint_stroke_spline_length(struct PaintStroke *stroke); + #ifdef __cplusplus } #endif |