diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-05-06 19:28:11 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-05-06 19:36:47 +0300 |
commit | 1c3f953565cefd7d59499e0ea99c3fea5890357f (patch) | |
tree | bfc5de15129c17de1004b632070b6a4b8fc9f32b /source/blender/draw/intern/draw_common.h | |
parent | 2bc0c4ec5940eafb02ce30c03c0e002dc21d5f66 (diff) |
Armature: Put passes in a struct easier to pass around.
Diffstat (limited to 'source/blender/draw/intern/draw_common.h')
-rw-r--r-- | source/blender/draw/intern/draw_common.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/source/blender/draw/intern/draw_common.h b/source/blender/draw/intern/draw_common.h index a81daa9949d..d53538f10d4 100644 --- a/source/blender/draw/intern/draw_common.h +++ b/source/blender/draw/intern/draw_common.h @@ -130,22 +130,26 @@ int DRW_object_wire_theme_get( float *DRW_color_background_blend_get(int theme_id); /* draw_armature.c */ +typedef struct DRWArmaturePasses{ + struct DRWPass *bone_solid; + struct DRWPass *bone_outline; + struct DRWPass *bone_wire; + struct DRWPass *bone_envelope; +} DRWArmaturePasses; + void DRW_shgroup_armature_object( struct Object *ob, struct ViewLayer *view_layer, - struct DRWPass *pass_bone_solid, struct DRWPass *pass_bone_outline, - struct DRWPass *pass_bone_wire, struct DRWPass *pass_bone_envelope, + struct DRWArmaturePasses passes, struct DRWShadingGroup *shgrp_relationship_lines); void DRW_shgroup_armature_pose( struct Object *ob, - struct DRWPass *pass_bone_solid, struct DRWPass *pass_bone_outline, - struct DRWPass *pass_bone_wire, struct DRWPass *pass_bone_envelope, + struct DRWArmaturePasses passes, struct DRWShadingGroup *shgrp_relationship_lines); void DRW_shgroup_armature_edit( struct Object *ob, - struct DRWPass *pass_bone_solid, struct DRWPass *pass_bone_outline, - struct DRWPass *pass_bone_wire, struct DRWPass *pass_bone_envelope, + struct DRWArmaturePasses passes, struct DRWShadingGroup *shgrp_relationship_lines); /* pose_mode.c */ |