Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_gpencil.h
| Show All 18 Lines | |||||
| #ifndef __BKE_GPENCIL_H__ | #ifndef __BKE_GPENCIL_H__ | ||||
| #define __BKE_GPENCIL_H__ | #define __BKE_GPENCIL_H__ | ||||
| /** \file | /** \file | ||||
| * \ingroup bke | * \ingroup bke | ||||
| */ | */ | ||||
| struct Scene; | |||||
| struct ArrayGpencilModifierData; | struct ArrayGpencilModifierData; | ||||
| struct BoundBox; | struct BoundBox; | ||||
| struct Brush; | struct Brush; | ||||
| struct CurveMapping; | struct CurveMapping; | ||||
| struct Depsgraph; | struct Depsgraph; | ||||
| struct GpencilModifierData; | struct GpencilModifierData; | ||||
| struct LatticeGpencilModifierData; | struct LatticeGpencilModifierData; | ||||
| struct ListBase; | struct ListBase; | ||||
| Show All 9 Lines | |||||
| struct bGPDpalettecolor; | struct bGPDpalettecolor; | ||||
| struct bGPDspoint; | struct bGPDspoint; | ||||
| struct bGPDstroke; | struct bGPDstroke; | ||||
| struct bGPdata; | struct bGPdata; | ||||
| struct MDeformVert; | struct MDeformVert; | ||||
| struct MDeformWeight; | struct MDeformWeight; | ||||
| #define GPENCIL_SIMPLIFY(scene) ((scene->r.simplify_gpencil & SIMPLIFY_GPENCIL_ENABLE)) | |||||
brecht: Did all these structs really need to move out of the draw module and into blenkernel?
As far… | |||||
Done Inline ActionsYou are right, better in draw module. antoniov: You are right, better in draw module. | |||||
| #define GPENCIL_SIMPLIFY_ONPLAY(playing) \ | |||||
| (((playing == true) && (scene->r.simplify_gpencil & SIMPLIFY_GPENCIL_ON_PLAY)) || \ | |||||
| ((scene->r.simplify_gpencil & SIMPLIFY_GPENCIL_ON_PLAY) == 0)) | |||||
| #define GPENCIL_SIMPLIFY_FILL(scene, playing) \ | |||||
| ((GPENCIL_SIMPLIFY_ONPLAY(playing) && (GPENCIL_SIMPLIFY(scene)) && \ | |||||
| (scene->r.simplify_gpencil & SIMPLIFY_GPENCIL_FILL))) | |||||
| #define GPENCIL_SIMPLIFY_MODIF(scene, playing) \ | |||||
| ((GPENCIL_SIMPLIFY_ONPLAY(playing) && (GPENCIL_SIMPLIFY(scene)) && \ | |||||
| (scene->r.simplify_gpencil & SIMPLIFY_GPENCIL_MODIFIER))) | |||||
| #define GPENCIL_SIMPLIFY_FX(scene, playing) \ | |||||
| ((GPENCIL_SIMPLIFY_ONPLAY(playing) && (GPENCIL_SIMPLIFY(scene)) && \ | |||||
| (scene->r.simplify_gpencil & SIMPLIFY_GPENCIL_FX))) | |||||
| #define GPENCIL_SIMPLIFY_BLEND(scene, playing) \ | |||||
| ((GPENCIL_SIMPLIFY_ONPLAY(playing) && (GPENCIL_SIMPLIFY(scene)) && \ | |||||
| (scene->r.simplify_gpencil & SIMPLIFY_GPENCIL_BLEND))) | |||||
| /* ------------ Grease-Pencil API ------------------ */ | /* ------------ Grease-Pencil API ------------------ */ | ||||
| void BKE_gpencil_free_point_weights(struct MDeformVert *dvert); | void BKE_gpencil_free_point_weights(struct MDeformVert *dvert); | ||||
| void BKE_gpencil_free_stroke_weights(struct bGPDstroke *gps); | void BKE_gpencil_free_stroke_weights(struct bGPDstroke *gps); | ||||
| void BKE_gpencil_free_stroke(struct bGPDstroke *gps); | void BKE_gpencil_free_stroke(struct bGPDstroke *gps); | ||||
| bool BKE_gpencil_free_strokes(struct bGPDframe *gpf); | bool BKE_gpencil_free_strokes(struct bGPDframe *gpf); | ||||
| void BKE_gpencil_free_frames(struct bGPDlayer *gpl); | void BKE_gpencil_free_frames(struct bGPDlayer *gpl); | ||||
| void BKE_gpencil_free_layers(struct ListBase *list); | void BKE_gpencil_free_layers(struct ListBase *list); | ||||
| ▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines | |||||
Did all these structs really need to move out of the draw module and into blenkernel?
As far as I know for other data structures this stays in the draw module. Probably any code outside that needs to access it can call into some function in the draw module?