Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_intern.h
| Show All 12 Lines | |||||
| #include "BLI_math.h" | #include "BLI_math.h" | ||||
| #include "BLI_rect.h" | #include "BLI_rect.h" | ||||
| #include "ED_select_utils.h" | #include "ED_select_utils.h" | ||||
| #include "DNA_scene_types.h" | #include "DNA_scene_types.h" | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| namespace blender { | |||||
| template<typename Float, int axes, int table_size> class QuadBezier; | |||||
| template<typename Float, int axes, int table_size> class CubicBezier; | |||||
| template<typename Float, int axes, typename BezierType> class EvenSpline; | |||||
| } // namespace blender | |||||
| //# define QUAD_BEZ_SPLIT | |||||
| using QuadSpline2f = blender::EvenSpline<float, 2, blender::QuadBezier<float, 2, 512>>; | |||||
| using QuadSpline3f = blender::EvenSpline<float, 3, blender::QuadBezier<float, 3, 512>>; | |||||
| using BezierSpline2f = blender::EvenSpline<float, 2, blender::CubicBezier<float, 2, 512>>; | |||||
| using BezierSpline3f = blender::EvenSpline<float, 3, blender::CubicBezier<float, 3, 512>>; | |||||
| extern "C" { | extern "C" { | ||||
| #else | |||||
| typedef struct BezierSpline2f BezierSpline2f; | |||||
| typedef struct BezierSpline3f BezierSpline3f; | |||||
| #endif | #endif | ||||
| struct ARegion; | struct ARegion; | ||||
| struct Brush; | struct Brush; | ||||
| struct ColorManagedDisplay; | struct ColorManagedDisplay; | ||||
| struct ColorSpace; | struct ColorSpace; | ||||
| struct ImagePool; | struct ImagePool; | ||||
| struct MTex; | struct MTex; | ||||
| ▲ Show 20 Lines • Show All 488 Lines • ▼ Show 20 Lines | |||||
| void paint_delete_blur_kernel(BlurKernel *); | void paint_delete_blur_kernel(BlurKernel *); | ||||
| /** Initialize viewport pivot from evaluated bounding box center of `ob`. */ | /** Initialize viewport pivot from evaluated bounding box center of `ob`. */ | ||||
| void paint_init_pivot(struct Object *ob, struct Scene *scene); | void paint_init_pivot(struct Object *ob, struct Scene *scene); | ||||
| /* paint curve defines */ | /* paint curve defines */ | ||||
| #define PAINT_CURVE_NUM_SEGMENTS 40 | #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 | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||