diff options
author | Yuanhan Liu <[email protected]> | 2011-12-28 13:54:42 +0800 |
---|---|---|
committer | Yuanhan Liu <[email protected]> | 2011-12-30 13:53:40 +0800 |
commit | efa1fac2158c9146b87f0d4340a864661721de21 (patch) | |
tree | f0e401b64e838f0a35e14d0ed363fde72a7706b1 /src/mesa/vbo/vbo.h | |
parent | ded02bd54b5925ee222d7f426850312236b4f59d (diff) |
vbo: introduce vbo_sizeof_ib_type() function
introduce vbo_sizeof_ib_type() function to return the index data type
size. I see some place use switch(ib->type) to get the index data type,
which is sort of duplicate.
Signed-off-by: Yuanhan Liu <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/vbo/vbo.h')
-rw-r--r-- | src/mesa/vbo/vbo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo.h b/src/mesa/vbo/vbo.h index 7384790e3ca..ed8fc1722ae 100644 --- a/src/mesa/vbo/vbo.h +++ b/src/mesa/vbo/vbo.h @@ -122,6 +122,10 @@ void vbo_rebase_prims( struct gl_context *ctx, GLuint min_index, GLuint max_index, vbo_draw_func draw ); + +int +vbo_sizeof_ib_type(GLenum type); + void vbo_get_minmax_index(struct gl_context *ctx, const struct _mesa_prim *prim, const struct _mesa_index_buffer *ib, |