Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_gpencil.h
| Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
| /* ------------- Grease-Pencil Runtime Data ---------------- */ | /* ------------- Grease-Pencil Runtime Data ---------------- */ | ||||
| /* Temporary 'Stroke Point' data (2D / screen-space) | /* Temporary 'Stroke Point' data (2D / screen-space) | ||||
| * | * | ||||
| * Used as part of the 'stroke cache' used during drawing of new strokes | * Used as part of the 'stroke cache' used during drawing of new strokes | ||||
| */ | */ | ||||
| typedef struct tGPspoint { | typedef struct tGPspoint { | ||||
| int x, y; /* x and y coordinates of cursor (in relative to area) */ | |||||
| float pressure; /* pressure of tablet at this point */ | |||||
| float strength; /* pressure of tablet at this point for alpha factor */ | |||||
| float time; /* Time relative to stroke start (used when converting to path) */ | |||||
| float uv_fac; /* factor of uv along the stroke */ | |||||
| float uv_rot; /* uv rotation for dor mode */ | |||||
| } tGPspoint; | |||||
| /* Temporary 'Stroke Point' data (2D / screen-space) | |||||
| * | |||||
| * Used for primitives. See: D4030 | |||||
| */ | |||||
| typedef struct tPGPspoint { | |||||
| float x, y; /* x and y coordinates of cursor (in relative to area) */ | float x, y; /* x and y coordinates of cursor (in relative to area) */ | ||||
| float pressure; /* pressure of tablet at this point */ | float pressure; /* pressure of tablet at this point */ | ||||
| float strength; /* pressure of tablet at this point for alpha factor */ | float strength; /* pressure of tablet at this point for alpha factor */ | ||||
| float time; /* Time relative to stroke start (used when converting to path) */ | float time; /* Time relative to stroke start (used when converting to path) */ | ||||
| float uv_fac; /* factor of uv along the stroke */ | float uv_fac; /* factor of uv along the stroke */ | ||||
| float uv_rot; /* uv rotation for dor mode */ | float uv_rot; /* uv rotation for dor mode */ | ||||
| } tPGPspoint; | } tGPspoint; | ||||
| /* used to sort by zdepth gpencil objects in viewport */ | /* used to sort by zdepth gpencil objects in viewport */ | ||||
| /* TODO: this could be a system parameter in userprefs screen */ | /* TODO: this could be a system parameter in userprefs screen */ | ||||
| #define GP_CACHE_BLOCK_SIZE 16 | #define GP_CACHE_BLOCK_SIZE 16 | ||||
| typedef struct tGPencilSort { | typedef struct tGPencilSort { | ||||
| struct Base *base; | struct Base *base; | ||||
| float zdepth; | float zdepth; | ||||
| } tGPencilSort; | } tGPencilSort; | ||||
| ▲ Show 20 Lines • Show All 168 Lines • Show Last 20 Lines | |||||