Go to the source code of this file.
Typedefs | |
typedef void(* | vbuf_draw_func )(struct pipe_context *pipe, unsigned prim, const ushort *elements, unsigned nr_elements, const void *vertex_buffer, unsigned nr_vertices) |
Functions | |
struct draw_stage * | sp_draw_render_stage (struct softpipe_context *softpipe) |
Create a new primitive setup/render stage. | |
struct setup_context * | sp_draw_setup_context (struct draw_stage *) |
void | sp_draw_flush (struct draw_stage *) |
struct draw_stage * | sp_draw_vbuf_stage (struct draw_context *draw_context, struct pipe_context *pipe, vbuf_draw_func draw) |
typedef void(* vbuf_draw_func)(struct pipe_context *pipe, unsigned prim, const ushort *elements, unsigned nr_elements, const void *vertex_buffer, unsigned nr_vertices) |
Definition at line 61 of file sp_prim_setup.h.
void sp_draw_flush | ( | struct draw_stage * | ) |
struct draw_stage* sp_draw_render_stage | ( | struct softpipe_context * | softpipe | ) | [read] |
Create a new primitive setup/render stage.
Definition at line 163 of file sp_prim_setup.c.
References CALLOC_STRUCT, draw_stage::destroy, softpipe_context::draw, draw_stage::draw, draw_stage::flush, draw_stage::line, draw_stage::point, render_destroy(), reset_stipple_counter(), draw_stage::reset_stipple_counter, setup_stage::setup, setup_create_context(), setup_first_line(), setup_first_point(), setup_first_tri(), setup_flush(), setup_stage::stage, and draw_stage::tri.
00164 { 00165 struct setup_stage *sstage = CALLOC_STRUCT(setup_stage); 00166 00167 sstage->setup = setup_create_context(softpipe); 00168 sstage->stage.draw = softpipe->draw; 00169 sstage->stage.point = setup_first_point; 00170 sstage->stage.line = setup_first_line; 00171 sstage->stage.tri = setup_first_tri; 00172 sstage->stage.flush = setup_flush; 00173 sstage->stage.reset_stipple_counter = reset_stipple_counter; 00174 sstage->stage.destroy = render_destroy; 00175 00176 return (struct draw_stage *)sstage; 00177 }
struct setup_context* sp_draw_setup_context | ( | struct draw_stage * | ) | [read] |
Definition at line 180 of file sp_prim_setup.c.
References setup_stage::setup, and setup_stage().
00181 { 00182 struct setup_stage *ssetup = setup_stage(stage); 00183 return ssetup->setup; 00184 }
struct draw_stage* sp_draw_vbuf_stage | ( | struct draw_context * | draw_context, | |
struct pipe_context * | pipe, | |||
vbuf_draw_func | draw | |||
) | [read] |