diff options
author | Hans Goudey <h.goudey@me.com> | 2022-11-13 23:16:15 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-11-13 23:16:24 +0300 |
commit | 3eb2bc2c3fd1170b0bfe8f96db3a285aff9759d2 (patch) | |
tree | bc6178c92aa29b6aae8500bbe88f8300f2ab0290 /source/blender/gpencil_modifiers/intern/lineart/MOD_lineart.h | |
parent | fba7461e1a51643ea4762f2dc5d4811b49cedbef (diff) |
Cleanup: Move lineart_cpu.c to C++
To enable further mesh data structure refactoring-- access to loose
edges in particular.
Diffstat (limited to 'source/blender/gpencil_modifiers/intern/lineart/MOD_lineart.h')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/lineart/MOD_lineart.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/gpencil_modifiers/intern/lineart/MOD_lineart.h b/source/blender/gpencil_modifiers/intern/lineart/MOD_lineart.h index 22037d10a71..97a3a782131 100644 --- a/source/blender/gpencil_modifiers/intern/lineart/MOD_lineart.h +++ b/source/blender/gpencil_modifiers/intern/lineart/MOD_lineart.h @@ -14,6 +14,10 @@ #include <math.h> +#ifdef __cplusplus +extern "C" { +#endif + typedef struct LineartStaticMemPoolNode { Link item; size_t size; @@ -74,6 +78,7 @@ typedef enum eLineArtElementNodeFlag { LRT_ELEMENT_NO_INTERSECTION = (1 << 2), LRT_ELEMENT_INTERSECTION_DATA = (1 << 3), } eLineArtElementNodeFlag; +ENUM_OPERATORS(eLineArtElementNodeFlag, LRT_ELEMENT_INTERSECTION_DATA); typedef struct LineartElementLinkNode { struct LineartElementLinkNode *next, *prev; @@ -929,3 +934,7 @@ void MOD_lineart_gpencil_generate(LineartCache *cache, float MOD_lineart_chain_compute_length(LineartEdgeChain *ec); void ED_operatortypes_lineart(void); + +#ifdef __cplusplus +} +#endif |