draw: Add draw_set_index_buffer and others.
authorChia-I Wu <olv@lunarg.com>
Wed, 25 Aug 2010 06:02:12 +0000 (14:02 +0800)
committerChia-I Wu <olv@lunarg.com>
Wed, 25 Aug 2010 08:06:37 +0000 (16:06 +0800)
commit4f024e0f642f4f743e4d051ec71c00e45bfd361f
tree3d127b5d21ccfc9ebbf1a812540dcf95f088c70d
parent4e823197332604ca652ae6be21583725313f9f3d
draw: Add draw_set_index_buffer and others.

This commit adds draw_set_index_buffer, draw_set_mapped_index_buffer,
and draw_vbo.  The idea behind the new functions is that an index buffer
should be a state.

draw_arrays and draw_set_mapped_element_buffer are preserved, but the
latter will be removed soon.
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_context.h
src/gallium/auxiliary/draw/draw_private.h
src/gallium/auxiliary/draw/draw_pt.c
src/gallium/auxiliary/draw/draw_pt_vsplit_tmp.h