diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-09-02 16:10:28 +0400 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-20 11:29:56 +0300 |
commit | d43f7608923bb3ff84c5eed0631d0457d68416e0 (patch) | |
tree | 3c25a4b22faad9ab37832f69723cf05b284610b1 /source/blender/blenkernel/BKE_effect.h | |
parent | 70df8f8dd6aae2b861852acf7b758b3224623504 (diff) |
Hair debugging: use "categories" (strings) for grouping debug elements
and support clearing for categories.
Diffstat (limited to 'source/blender/blenkernel/BKE_effect.h')
-rw-r--r-- | source/blender/blenkernel/BKE_effect.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/blenkernel/BKE_effect.h b/source/blender/blenkernel/BKE_effect.h index 852f9de4c09..04853bbb163 100644 --- a/source/blender/blenkernel/BKE_effect.h +++ b/source/blender/blenkernel/BKE_effect.h @@ -139,8 +139,10 @@ int get_effector_data(struct EffectorCache *eff, struct EffectorData *efd, struc /* ======== Simulation Debugging ======== */ typedef struct SimDebugElement { - int type; + int category_hash; int hash; + + int type; float color[3]; float v1[3], v2[3]; @@ -157,11 +159,12 @@ typedef struct SimDebugData { } SimDebugData; struct SimDebugData *BKE_sim_debug_data_new(void); -void BKE_sim_debug_data_add_dot(struct SimDebugData *debug_data, const float p[3], float r, float g, float b, int hash); -void BKE_sim_debug_data_add_line(struct SimDebugData *debug_data, const float p1[3], const float p2[3], float r, float g, float b, int hash); -void BKE_sim_debug_data_add_vector(struct SimDebugData *debug_data, const float p[3], const float d[3], float r, float g, float b, int hash); +void BKE_sim_debug_data_add_dot(struct SimDebugData *debug_data, const float p[3], float r, float g, float b, const char *category, int hash); +void BKE_sim_debug_data_add_line(struct SimDebugData *debug_data, const float p1[3], const float p2[3], float r, float g, float b, const char *category, int hash); +void BKE_sim_debug_data_add_vector(struct SimDebugData *debug_data, const float p[3], const float d[3], float r, float g, float b, const char *category, int hash); void BKE_sim_debug_data_remove(struct SimDebugData *debug_data, int hash); void BKE_sim_debug_data_clear(struct SimDebugData *debug_data); +void BKE_sim_debug_data_clear_category(struct SimDebugData *debug_data, const char *category); void BKE_sim_debug_data_free(struct SimDebugData *debug_data); #endif |