Go to the source code of this file.
Functions | |
void * | softpipe_create_rasterizer_state (struct pipe_context *pipe, const struct pipe_rasterizer_state *rast) |
void | softpipe_bind_rasterizer_state (struct pipe_context *pipe, void *setup) |
void | softpipe_delete_rasterizer_state (struct pipe_context *pipe, void *rasterizer) |
void softpipe_bind_rasterizer_state | ( | struct pipe_context * | pipe, | |
void * | setup | |||
) |
Definition at line 43 of file sp_state_rasterizer.c.
References softpipe_context::dirty, softpipe_context::draw, draw_set_rasterizer_state(), softpipe_context::rasterizer, softpipe_context(), and SP_NEW_RASTERIZER.
00045 { 00046 struct softpipe_context *softpipe = softpipe_context(pipe); 00047 00048 /* pass-through to draw module */ 00049 draw_set_rasterizer_state(softpipe->draw, setup); 00050 00051 softpipe->rasterizer = (struct pipe_rasterizer_state *)setup; 00052 00053 softpipe->dirty |= SP_NEW_RASTERIZER; 00054 }
void* softpipe_create_rasterizer_state | ( | struct pipe_context * | pipe, | |
const struct pipe_rasterizer_state * | rast | |||
) |
Definition at line 37 of file sp_state_rasterizer.c.
References mem_dup().
00039 { 00040 return mem_dup(rast, sizeof(*rast)); 00041 }
void softpipe_delete_rasterizer_state | ( | struct pipe_context * | pipe, | |
void * | rasterizer | |||
) |
Definition at line 56 of file sp_state_rasterizer.c.
References FREE.
00058 { 00059 FREE( rasterizer ); 00060 }