diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-07-20 02:19:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-07-20 02:19:50 +0300 |
commit | 9db4e44961d3ae46b1a9a2dd2ff4c0743e8263f5 (patch) | |
tree | 3caa7ec04e788a1f68ad513b8995979eed8d44ac /source/blender/draw/engines/overlay/overlay_private.h | |
parent | 78e40ad21f5bad8d63405b2341f0832537627676 (diff) |
DRW: overlay engine support for drawing isolated points
This matches similar functionality for drawing lines.
Diffstat (limited to 'source/blender/draw/engines/overlay/overlay_private.h')
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_private.h b/source/blender/draw/engines/overlay/overlay_private.h index 027478c3e3c..efb9594f499 100644 --- a/source/blender/draw/engines/overlay/overlay_private.h +++ b/source/blender/draw/engines/overlay/overlay_private.h @@ -149,6 +149,7 @@ typedef struct OVERLAY_ExtraCallBuffers { DRWCallBuffer *extra_dashed_lines; DRWCallBuffer *extra_lines; + DRWCallBuffer *extra_points; DRWCallBuffer *field_curve; DRWCallBuffer *field_force; @@ -388,6 +389,7 @@ typedef struct OVERLAY_InstanceFormats { struct GPUVertFormat *pos; struct GPUVertFormat *pos_color; struct GPUVertFormat *wire_extra; + struct GPUVertFormat *point_extra; } OVERLAY_InstanceFormats; /* Pack data into the last row of the 4x4 matrix. It will be decoded by the vertex shader. */ @@ -481,6 +483,7 @@ void OVERLAY_lightprobe_cache_populate(OVERLAY_Data *vedata, Object *ob); void OVERLAY_speaker_cache_populate(OVERLAY_Data *vedata, Object *ob); OVERLAY_ExtraCallBuffers *OVERLAY_extra_call_buffer_get(OVERLAY_Data *vedata, Object *ob); +void OVERLAY_extra_point(OVERLAY_ExtraCallBuffers *cb, const float point[3], const float color[4]); void OVERLAY_extra_line_dashed(OVERLAY_ExtraCallBuffers *cb, const float start[3], const float end[3], |