sp_state_clip.c File Reference

Include dependency graph for sp_state_clip.c:

Go to the source code of this file.

Functions

void softpipe_set_clip_state (struct pipe_context *pipe, const struct pipe_clip_state *clip)
void softpipe_set_viewport_state (struct pipe_context *pipe, const struct pipe_viewport_state *viewport)
void softpipe_set_scissor_state (struct pipe_context *pipe, const struct pipe_scissor_state *scissor)
void softpipe_set_polygon_stipple (struct pipe_context *pipe, const struct pipe_poly_stipple *stipple)


Function Documentation

void softpipe_set_clip_state ( struct pipe_context pipe,
const struct pipe_clip_state clip 
)

Definition at line 35 of file sp_state_clip.c.

References softpipe_context::draw, draw_set_clip_state(), and softpipe_context().

00037 {
00038    struct softpipe_context *softpipe = softpipe_context(pipe);
00039 
00040    /* pass the clip state to the draw module */
00041    draw_set_clip_state(softpipe->draw, clip);
00042 }

void softpipe_set_polygon_stipple ( struct pipe_context pipe,
const struct pipe_poly_stipple stipple 
)

Definition at line 70 of file sp_state_clip.c.

References softpipe_context::dirty, softpipe_context::draw, draw_flush(), softpipe_context::poly_stipple, softpipe_context(), and SP_NEW_STIPPLE.

00072 {
00073    struct softpipe_context *softpipe = softpipe_context(pipe);
00074 
00075    draw_flush(softpipe->draw);
00076 
00077    softpipe->poly_stipple = *stipple; /* struct copy */
00078    softpipe->dirty |= SP_NEW_STIPPLE;
00079 }

void softpipe_set_scissor_state ( struct pipe_context pipe,
const struct pipe_scissor_state scissor 
)

Definition at line 58 of file sp_state_clip.c.

References softpipe_context::dirty, softpipe_context::draw, draw_flush(), softpipe_context::scissor, softpipe_context(), and SP_NEW_SCISSOR.

00060 {
00061    struct softpipe_context *softpipe = softpipe_context(pipe);
00062 
00063    draw_flush(softpipe->draw);
00064 
00065    softpipe->scissor = *scissor; /* struct copy */
00066    softpipe->dirty |= SP_NEW_SCISSOR;
00067 }

void softpipe_set_viewport_state ( struct pipe_context pipe,
const struct pipe_viewport_state viewport 
)

Definition at line 45 of file sp_state_clip.c.

References softpipe_context::dirty, softpipe_context::draw, draw_set_viewport_state(), softpipe_context(), SP_NEW_VIEWPORT, and softpipe_context::viewport.

00047 {
00048    struct softpipe_context *softpipe = softpipe_context(pipe);
00049 
00050    /* pass the viewport info to the draw module */
00051    draw_set_viewport_state(softpipe->draw, viewport);
00052 
00053    softpipe->viewport = *viewport; /* struct copy */
00054    softpipe->dirty |= SP_NEW_VIEWPORT;
00055 }


Generated on Tue Sep 29 06:25:41 2009 for Gallium3D by  doxygen 1.5.4