diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-04-24 13:29:15 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-04-24 13:48:43 +0300 |
commit | 2ff8f965dfa5f680f613fc33425281e398893f49 (patch) | |
tree | 886990052152c485052d10cffb758267c2d01f17 /source/blender/draw/intern/draw_manager.h | |
parent | 8fb9dfbec5fa5b6ed1f94494b6972988605e5c14 (diff) |
DRW: Add visibility callback function.
This add a callback function that runs after frustum culling test.
This callback returns the final visibility for this object.
Be aware that it's called for EVERY drawcalls that use this callback even
if their visibility has been cached.
Diffstat (limited to 'source/blender/draw/intern/draw_manager.h')
-rw-r--r-- | source/blender/draw/intern/draw_manager.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager.h b/source/blender/draw/intern/draw_manager.h index fd75405f346..60ee003f25c 100644 --- a/source/blender/draw/intern/draw_manager.h +++ b/source/blender/draw/intern/draw_manager.h @@ -102,6 +102,9 @@ enum { }; typedef struct DRWCallState { + DRWCallVisibilityFn *visibility_cb; + void *user_data; + unsigned char flag; unsigned char cache_id; /* Compared with DST.state_cache_id to see if matrices are still valid. */ uint16_t matflag; /* Which matrices to compute. */ |