Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_curveprofile_types.h
| Show All 27 Lines | |||||
| /** Number of points in high resolution table is dynamic up to a maximum. */ | /** Number of points in high resolution table is dynamic up to a maximum. */ | ||||
| #define PROF_TABLE_MAX 512 | #define PROF_TABLE_MAX 512 | ||||
| /** Number of table points per control point. */ | /** Number of table points per control point. */ | ||||
| #define PROF_RESOL 16 | #define PROF_RESOL 16 | ||||
| /** Dynamic size of widget's high resolution table. Input should be profile->totpoint. */ | /** Dynamic size of widget's high resolution table. Input should be profile->totpoint. */ | ||||
| #define PROF_N_TABLE(n_pts) min_ii(PROF_TABLE_MAX, (((n_pts - 1)) * PROF_RESOL) + 1) | #define PROF_N_TABLE(n_pts) min_ii(PROF_TABLE_MAX, (((n_pts - 1)) * PROF_RESOL) + 1) | ||||
| /** Each control point that makes up the profile. | /** | ||||
| * Each control point that makes up the profile. | |||||
| * \note The flags use the same enum as Bezier curves, but they aren't guaranteed | * \note The flags use the same enum as Bezier curves, but they aren't guaranteed | ||||
| * to have identical functionality, and all types aren't implemented. | * to have identical functionality, and all types aren't implemented. | ||||
| */ | */ | ||||
| typedef struct CurveProfilePoint { | typedef struct CurveProfilePoint { | ||||
| /** Location of the point, keep together. */ | /** Location of the point, keep together. */ | ||||
| float x, y; | float x, y; | ||||
| /** Flag selection state and others. */ | /** Flag selection state and others. */ | ||||
| short flag; | short flag; | ||||
| ▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||