diff options
author | Antonioya <blendergit@gmail.com> | 2019-06-27 17:42:18 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-06-27 17:42:38 +0300 |
commit | 58996e3057f9a2a6ce4a87a0b36b8fcfafcb8967 (patch) | |
tree | 62c641eaa05b99dbb7db59a40b1ee0d9c81ac391 /source/blender/draw/engines/gpencil/gpencil_engine.h | |
parent | 91e00bd7032ef5e7f7b94a415fd732fc35dff6d7 (diff) |
Cleanup: GPencil remove DRW_ prefix for internal functions.
The prefix DRW_ must be used only for modules inside Draw Manager and not in the Engines.
Diffstat (limited to 'source/blender/draw/engines/gpencil/gpencil_engine.h')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_engine.h | 128 |
1 files changed, 64 insertions, 64 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.h b/source/blender/draw/engines/gpencil/gpencil_engine.h index 98eaee343bb..416331e7aeb 100644 --- a/source/blender/draw/engines/gpencil/gpencil_engine.h +++ b/source/blender/draw/engines/gpencil/gpencil_engine.h @@ -397,65 +397,65 @@ typedef struct GpencilBatchCache { } GpencilBatchCache; /* general drawing functions */ -struct DRWShadingGroup *DRW_gpencil_shgroup_stroke_create(struct GPENCIL_Data *vedata, - struct DRWPass *pass, - struct GPUShader *shader, - struct Object *ob, - struct bGPdata *gpd, - struct bGPDlayer *gpl, - struct bGPDstroke *gps, - struct MaterialGPencilStyle *gp_style, - int id, - bool onion, - const float scale, - const int shading_type[2]); -void DRW_gpencil_populate_datablock(struct GPENCIL_e_data *e_data, - void *vedata, - struct Object *ob, - struct tGPencilObjectCache *cache_ob); -void DRW_gpencil_populate_buffer_strokes(struct GPENCIL_e_data *e_data, - void *vedata, - struct ToolSettings *ts, - struct Object *ob); -void DRW_gpencil_populate_multiedit(struct GPENCIL_e_data *e_data, - void *vedata, - struct Object *ob, - struct tGPencilObjectCache *cache_ob); -void DRW_gpencil_triangulate_stroke_fill(struct Object *ob, struct bGPDstroke *gps); -void DRW_gpencil_populate_particles(struct GPENCIL_e_data *e_data, - struct GHash *gh_objects, - void *vedata); - -void DRW_gpencil_multisample_ensure(struct GPENCIL_Data *vedata, int rect_w, int rect_h); +struct DRWShadingGroup *gpencil_shgroup_stroke_create(struct GPENCIL_Data *vedata, + struct DRWPass *pass, + struct GPUShader *shader, + struct Object *ob, + struct bGPdata *gpd, + struct bGPDlayer *gpl, + struct bGPDstroke *gps, + struct MaterialGPencilStyle *gp_style, + int id, + bool onion, + const float scale, + const int shading_type[2]); +void gpencil_populate_datablock(struct GPENCIL_e_data *e_data, + void *vedata, + struct Object *ob, + struct tGPencilObjectCache *cache_ob); +void gpencil_populate_buffer_strokes(struct GPENCIL_e_data *e_data, + void *vedata, + struct ToolSettings *ts, + struct Object *ob); +void gpencil_populate_multiedit(struct GPENCIL_e_data *e_data, + void *vedata, + struct Object *ob, + struct tGPencilObjectCache *cache_ob); +void gpencil_triangulate_stroke_fill(struct Object *ob, struct bGPDstroke *gps); +void gpencil_populate_particles(struct GPENCIL_e_data *e_data, + struct GHash *gh_objects, + void *vedata); + +void gpencil_multisample_ensure(struct GPENCIL_Data *vedata, int rect_w, int rect_h); /* create geometry functions */ -void DRW_gpencil_get_point_geom(struct GpencilBatchCacheElem *be, - struct bGPDstroke *gps, - short thickness, - const float ink[4], - const int follow_mode); -void DRW_gpencil_get_stroke_geom(struct GpencilBatchCacheElem *be, - struct bGPDstroke *gps, - short thickness, - const float ink[4]); -void DRW_gpencil_get_fill_geom(struct GpencilBatchCacheElem *be, - struct Object *ob, - struct bGPDstroke *gps, - const float color[4]); -void DRW_gpencil_get_edit_geom(struct GpencilBatchCacheElem *be, - struct bGPDstroke *gps, - float alpha, - short dflag); -void DRW_gpencil_get_edlin_geom(struct GpencilBatchCacheElem *be, - struct bGPDstroke *gps, - float alpha, - short dflag); - -struct GPUBatch *DRW_gpencil_get_buffer_stroke_geom(struct bGPdata *gpd, short thickness); -struct GPUBatch *DRW_gpencil_get_buffer_fill_geom(struct bGPdata *gpd); -struct GPUBatch *DRW_gpencil_get_buffer_point_geom(struct bGPdata *gpd, short thickness); -struct GPUBatch *DRW_gpencil_get_buffer_ctrlpoint_geom(struct bGPdata *gpd); -struct GPUBatch *DRW_gpencil_get_grid(Object *ob); +void gpencil_get_point_geom(struct GpencilBatchCacheElem *be, + struct bGPDstroke *gps, + short thickness, + const float ink[4], + const int follow_mode); +void gpencil_get_stroke_geom(struct GpencilBatchCacheElem *be, + struct bGPDstroke *gps, + short thickness, + const float ink[4]); +void gpencil_get_fill_geom(struct GpencilBatchCacheElem *be, + struct Object *ob, + struct bGPDstroke *gps, + const float color[4]); +void gpencil_get_edit_geom(struct GpencilBatchCacheElem *be, + struct bGPDstroke *gps, + float alpha, + short dflag); +void gpencil_get_edlin_geom(struct GpencilBatchCacheElem *be, + struct bGPDstroke *gps, + float alpha, + short dflag); + +struct GPUBatch *gpencil_get_buffer_stroke_geom(struct bGPdata *gpd, short thickness); +struct GPUBatch *gpencil_get_buffer_fill_geom(struct bGPdata *gpd); +struct GPUBatch *gpencil_get_buffer_point_geom(struct bGPdata *gpd, short thickness); +struct GPUBatch *gpencil_get_buffer_ctrlpoint_geom(struct bGPdata *gpd); +struct GPUBatch *gpencil_get_grid(Object *ob); /* object cache functions */ struct tGPencilObjectCache *gpencil_object_cache_add(struct tGPencilObjectCache *cache_array, @@ -463,7 +463,7 @@ struct tGPencilObjectCache *gpencil_object_cache_add(struct tGPencilObjectCache int *gp_cache_size, int *gp_cache_used); -bool DRW_gpencil_onion_active(struct bGPdata *gpd); +bool gpencil_onion_active(struct bGPdata *gpd); /* shading groups cache functions */ struct GpencilBatchGroup *gpencil_group_cache_add(struct GpencilBatchGroup *cache_array, @@ -484,12 +484,12 @@ void GPENCIL_create_fx_shaders(struct GPENCIL_e_data *e_data); void GPENCIL_delete_fx_shaders(struct GPENCIL_e_data *e_data); void GPENCIL_create_fx_passes(struct GPENCIL_PassList *psl); -void DRW_gpencil_fx_prepare(struct GPENCIL_e_data *e_data, - struct GPENCIL_Data *vedata, - struct tGPencilObjectCache *cache_ob); -void DRW_gpencil_fx_draw(struct GPENCIL_e_data *e_data, - struct GPENCIL_Data *vedata, - struct tGPencilObjectCache *cache_ob); +void gpencil_fx_prepare(struct GPENCIL_e_data *e_data, + struct GPENCIL_Data *vedata, + struct tGPencilObjectCache *cache_ob); +void gpencil_fx_draw(struct GPENCIL_e_data *e_data, + struct GPENCIL_Data *vedata, + struct tGPencilObjectCache *cache_ob); /* main functions */ void GPENCIL_engine_init(void *vedata); |