diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-06-29 13:33:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-06-29 13:33:24 +0300 |
commit | 7dc9e427212095cedf00b9ea1da044a2c5b77d01 (patch) | |
tree | c1eedac67ba9617f54ebe517c77bef8b83754ed7 /intern/gawain | |
parent | fd3589e4c969d2e08b864e0e60c8c25f23e50145 (diff) |
Missing from last commit
Diffstat (limited to 'intern/gawain')
-rw-r--r-- | intern/gawain/gawain/vertex_buffer.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/intern/gawain/gawain/vertex_buffer.h b/intern/gawain/gawain/vertex_buffer.h index 57179062df4..a66154d06e3 100644 --- a/intern/gawain/gawain/vertex_buffer.h +++ b/intern/gawain/gawain/vertex_buffer.h @@ -71,8 +71,12 @@ GWN_INLINE void *GWN_vertbuf_raw_step(Gwn_VertBufRaw *a) return (void *)data; } -void GWN_vertbuf_attr_get_raw_data(Gwn_VertBuf*, unsigned a_idx, Gwn_VertBufRaw *access); +GWN_INLINE unsigned GWN_vertbuf_raw_used(Gwn_VertBufRaw *a) + { + return ((a->data - a->data_init) / a->stride); + } +void GWN_vertbuf_attr_get_raw_data(Gwn_VertBuf*, unsigned a_idx, Gwn_VertBufRaw *access); // TODO: decide whether to keep the functions below // doesn't immediate mode satisfy these needs? |