diff options
author | Keith Whitwell <[email protected]> | 2010-06-14 15:11:59 +0100 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2010-06-15 09:12:19 -0400 |
commit | b85a361ccbac956d2842251395c048a4b3f4c440 (patch) | |
tree | 8acef8fdd62dc93eae50ff359acbffc293e8bffa /src/gallium/auxiliary/draw/draw_pt.h | |
parent | 5d4d4b2134595c4ed8060d6d002a0cd54690c289 (diff) |
draw wip
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt.h')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt.h b/src/gallium/auxiliary/draw/draw_pt.h index 67ae70fdaf7..821a73f9b82 100644 --- a/src/gallium/auxiliary/draw/draw_pt.h +++ b/src/gallium/auxiliary/draw/draw_pt.h @@ -39,6 +39,8 @@ typedef unsigned (*pt_elt_func)( const void *elts, unsigned idx ); struct draw_pt_middle_end; struct draw_context; +struct draw_prim_info; +struct draw_vertex_info; #define PT_SHADE 0x1 @@ -164,16 +166,12 @@ void draw_pt_emit_prepare( struct pt_emit *emit, unsigned *max_vertices ); void draw_pt_emit( struct pt_emit *emit, - const float (*vertex_data)[4], - unsigned vertex_count, - unsigned stride, - const ushort *elts, - unsigned count ); + const struct draw_vertex_info *vert_info, + const struct draw_prim_info *prim_info); void draw_pt_emit_linear( struct pt_emit *emit, - const float (*vertex_data)[4], - unsigned stride, - unsigned count ); + const struct draw_vertex_info *vert_info, + const struct draw_prim_info *prim_info); void draw_pt_emit_destroy( struct pt_emit *emit ); @@ -188,9 +186,8 @@ void draw_pt_so_emit_prepare( struct pt_so_emit *emit, unsigned prim ); void draw_pt_so_emit( struct pt_so_emit *emit, - const float (*vertex_data)[4], - unsigned vertex_count, - unsigned stride ); + const struct draw_vertex_info *vert_info, + const struct draw_prim_info *prim_info ); void draw_pt_so_emit_destroy( struct pt_so_emit *emit ); |