Home | History | Annotate | Download | only in draw

Lines Matching refs:stage

41    struct draw_stage stage;
48 static INLINE struct wideline_stage *wideline_stage( struct draw_stage *stage )
50 return (struct wideline_stage *)stage;
58 static void wideline_line( struct draw_stage *stage,
61 /*const struct wideline_stage *wide = wideline_stage(stage);*/
62 const unsigned pos = draw_current_shader_position_output(stage->draw);
63 const float half_width = 0.5f * stage->draw->rasterizer->line_width;
67 struct vertex_header *v0 = dup_vert(stage, header->v[0], 0);
68 struct vertex_header *v1 = dup_vert(stage, header->v[0], 1);
69 struct vertex_header *v2 = dup_vert(stage, header->v[1], 2);
70 struct vertex_header *v3 = dup_vert(stage, header->v[1], 3);
81 stage->draw->rasterizer->gl_rasterization_rules;
143 stage->next->tri( stage->next, &tri );
148 stage->next->tri( stage->next, &tri );
152 static void wideline_first_line( struct draw_stage *stage,
155 struct draw_context *draw = stage->draw;
166 stage->line = wideline_line;
168 wideline_line(stage, header);
172 static void wideline_flush( struct draw_stage *stage, unsigned flags )
174 struct draw_context *draw = stage->draw;
177 stage->line = wideline_first_line;
178 stage->next->flush( stage->next, flags );
189 static void wideline_reset_stipple_counter( struct draw_stage *stage )
191 stage->next->reset_stipple_counter( stage->next );
195 static void wideline_destroy( struct draw_stage *stage )
197 draw_free_temp_verts( stage );
198 FREE( stage );
208 wide->stage.draw = draw;
209 wide->stage.name = "wide-line";
210 wide->stage.next = NULL;
211 wide->stage.point = draw_pipe_passthrough_point;
212 wide->stage.line = wideline_first_line;
213 wide->stage.tri = draw_pipe_passthrough_tri;
214 wide->stage.flush = wideline_flush;
215 wide->stage.reset_stipple_counter = wideline_reset_stipple_counter;
216 wide->stage.destroy = wideline_destroy;
218 if (!draw_alloc_temp_verts( &wide->stage, 4 ))
221 return &wide->stage;
225 wide->stage.destroy( &wide->stage );