Missing from last commit

This commit is contained in:
Campbell Barton
2017-06-29 20:33:24 +10:00
parent fd3589e4c9
commit 7dc9e42721

View File

@@ -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?