From 240641de0c8532009fd21be7d4b0b84e471e91e8 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 30 Jan 2007 19:27:53 +0000 Subject: Helper for rebasing draw requests where min_index != 0. --- src/mesa/vbo/vbo.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/mesa/vbo/vbo.h') diff --git a/src/mesa/vbo/vbo.h b/src/mesa/vbo/vbo.h index c81d83f9b61..6a6fb28173e 100644 --- a/src/mesa/vbo/vbo.h +++ b/src/mesa/vbo/vbo.h @@ -101,4 +101,18 @@ void vbo_split_prims( GLcontext *ctx, const struct split_limits *limits ); +/* Helpers for dealing translating away non-zero min_index. + */ +GLboolean vbo_all_varyings_in_vbos( const struct gl_client_array *arrays[] ); + +void vbo_rebase_prims( GLcontext *ctx, + const struct gl_client_array *arrays[], + const struct _mesa_prim *prim, + GLuint nr_prims, + const struct _mesa_index_buffer *ib, + GLuint min_index, + GLuint max_index, + vbo_draw_func draw ); + + #endif -- cgit v1.2.3