diff options
author | Brian <[email protected]> | 2007-09-17 14:24:11 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-09-17 14:24:11 -0600 |
commit | b4bacd1fca336f043d1ee3c3a346fbd42a3b02eb (patch) | |
tree | 81ff3b367c175ae693daed8a07f395fc0635cff7 /src/mesa/state_tracker/st_draw.h | |
parent | 2a40c71fed9461a6ecd17788b17b35655262aec6 (diff) |
Plug in selection/feedback code.
Not quite finished yet.
Selection/feedback are done with a private instance of the 'draw' module
in the state tracker. Not quite all the draw context's state is set yet,
namely vertex format info. Hold off on that for a bit...
Diffstat (limited to 'src/mesa/state_tracker/st_draw.h')
-rw-r--r-- | src/mesa/state_tracker/st_draw.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_draw.h b/src/mesa/state_tracker/st_draw.h index 0005fbc51f3..1fcd1b7e6b0 100644 --- a/src/mesa/state_tracker/st_draw.h +++ b/src/mesa/state_tracker/st_draw.h @@ -34,11 +34,31 @@ #ifndef ST_DRAW_H #define ST_DRAW_H +struct _mesa_prim; +struct _mesa_index_buffer; void st_init_draw( struct st_context *st ); void st_destroy_draw( struct st_context *st ); +extern void +st_draw_vbo(GLcontext *ctx, + const struct gl_client_array **arrays, + const struct _mesa_prim *prims, + GLuint nr_prims, + const struct _mesa_index_buffer *ib, + GLuint min_index, + GLuint max_index); + +extern void +st_feedback_draw_vbo(GLcontext *ctx, + const struct gl_client_array **arrays, + const struct _mesa_prim *prims, + GLuint nr_prims, + const struct _mesa_index_buffer *ib, + GLuint min_index, + GLuint max_index); + void st_draw_vertices(GLcontext *ctx, unsigned prim, unsigned numVertex, float *verts, |