diff options
Diffstat (limited to 'src/gallium/auxiliary/indices/u_indices.h')
-rw-r--r-- | src/gallium/auxiliary/indices/u_indices.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/indices/u_indices.h b/src/gallium/auxiliary/indices/u_indices.h index be522c67252..331d0fd0042 100644 --- a/src/gallium/auxiliary/indices/u_indices.h +++ b/src/gallium/auxiliary/indices/u_indices.h @@ -31,11 +31,30 @@ #define PV_LAST 1 #define PV_COUNT 2 +/** + * Index translator function (for glDrawElements() case) + * + * \param in the input index buffer + * \param start the index of the first vertex (pipe_draw_info::start) + * \param nr the number of vertices (pipe_draw_info::count) + * \param out output buffer big enough or nr vertices (of + * @out_index_size bytes each) + */ typedef void (*u_translate_func)( const void *in, + unsigned start, unsigned nr, void *out ); -typedef void (*u_generate_func)( unsigned nr, +/** + * Index generator function (for glDrawArrays() case) + * + * \param start the index of the first vertex (pipe_draw_info::start) + * \param nr the number of vertices (pipe_draw_info::count) + * \param out output buffer big enough or nr vertices (of + * @out_index_size bytes each) + */ +typedef void (*u_generate_func)( unsigned start, + unsigned nr, void *out ); |