static void clip_destroy( struct draw_stage *stage )
{
- draw_free_tmps( stage );
+ draw_free_temp_verts( stage );
FREE( stage );
}
{
struct clipper *clipper = CALLOC_STRUCT(clipper);
- draw_alloc_tmps( &clipper->stage, MAX_CLIPPED_VERTICES+1 );
+ draw_alloc_temp_verts( &clipper->stage, MAX_CLIPPED_VERTICES+1 );
clipper->stage.draw = draw;
clipper->stage.point = clip_point;
/**
* Allocate space for temporary post-transform vertices, such as for clipping.
*/
-void draw_alloc_tmps( struct draw_stage *stage, unsigned nr )
+void draw_alloc_temp_verts( struct draw_stage *stage, unsigned nr )
{
assert(!stage->tmp);
}
-void draw_free_tmps( struct draw_stage *stage )
+void draw_free_temp_verts( struct draw_stage *stage )
{
if (stage->tmp) {
FREE( stage->tmp[0] );
static void cull_destroy( struct draw_stage *stage )
{
- draw_free_tmps( stage );
+ draw_free_temp_verts( stage );
FREE( stage );
}
{
struct cull_stage *cull = CALLOC_STRUCT(cull_stage);
- draw_alloc_tmps( &cull->stage, 0 );
+ draw_alloc_temp_verts( &cull->stage, 0 );
cull->stage.draw = draw;
cull->stage.next = NULL;
static void flatshade_destroy( struct draw_stage *stage )
{
- draw_free_tmps( stage );
+ draw_free_temp_verts( stage );
FREE( stage );
}
{
struct flat_stage *flatshade = CALLOC_STRUCT(flat_stage);
- draw_alloc_tmps( &flatshade->stage, 2 );
+ draw_alloc_temp_verts( &flatshade->stage, 2 );
flatshade->stage.draw = draw;
flatshade->stage.next = NULL;
static void offset_destroy( struct draw_stage *stage )
{
- draw_free_tmps( stage );
+ draw_free_temp_verts( stage );
FREE( stage );
}
{
struct offset_stage *offset = CALLOC_STRUCT(offset_stage);
- draw_alloc_tmps( &offset->stage, 3 );
+ draw_alloc_temp_verts( &offset->stage, 3 );
offset->stage.draw = draw;
offset->stage.next = NULL;
extern struct draw_stage *draw_validate_stage( struct draw_context *context );
-extern void draw_free_tmps( struct draw_stage *stage );
-extern void draw_reset_tmps( struct draw_stage *stage );
-extern void draw_alloc_tmps( struct draw_stage *stage, unsigned nr );
+extern void draw_free_temp_verts( struct draw_stage *stage );
+
+extern void draw_alloc_temp_verts( struct draw_stage *stage, unsigned nr );
extern void draw_reset_vertex_ids( struct draw_context *draw );
{
struct stipple_stage *stipple = CALLOC_STRUCT(stipple_stage);
- draw_alloc_tmps( &stipple->stage, 2 );
+ draw_alloc_temp_verts( &stipple->stage, 2 );
stipple->stage.draw = draw;
stipple->stage.next = NULL;
static void twoside_destroy( struct draw_stage *stage )
{
- draw_free_tmps( stage );
+ draw_free_temp_verts( stage );
FREE( stage );
}
{
struct twoside_stage *twoside = CALLOC_STRUCT(twoside_stage);
- draw_alloc_tmps( &twoside->stage, 3 );
+ draw_alloc_temp_verts( &twoside->stage, 3 );
twoside->stage.draw = draw;
twoside->stage.next = NULL;
static void unfilled_destroy( struct draw_stage *stage )
{
- draw_free_tmps( stage );
+ draw_free_temp_verts( stage );
FREE( stage );
}
{
struct unfilled_stage *unfilled = CALLOC_STRUCT(unfilled_stage);
- draw_alloc_tmps( &unfilled->stage, 0 );
+ draw_alloc_temp_verts( &unfilled->stage, 0 );
unfilled->stage.draw = draw;
unfilled->stage.next = NULL;
static void wide_destroy( struct draw_stage *stage )
{
- draw_free_tmps( stage );
+ draw_free_temp_verts( stage );
FREE( stage );
}
{
struct wide_stage *wide = CALLOC_STRUCT(wide_stage);
- draw_alloc_tmps( &wide->stage, 4 );
+ draw_alloc_temp_verts( &wide->stage, 4 );
wide->stage.draw = draw;
wide->stage.next = NULL;