sp_state_vertex.c File Reference

Include dependency graph for sp_state_vertex.c:

Go to the source code of this file.

Functions

void softpipe_set_vertex_elements (struct pipe_context *pipe, unsigned count, const struct pipe_vertex_element *attribs)
void softpipe_set_vertex_buffers (struct pipe_context *pipe, unsigned count, const struct pipe_vertex_buffer *buffers)


Function Documentation

void softpipe_set_vertex_buffers ( struct pipe_context pipe,
unsigned  count,
const struct pipe_vertex_buffer buffers 
)

Definition at line 59 of file sp_state_vertex.c.

References assert, softpipe_context::dirty, softpipe_context::draw, draw_set_vertex_buffers(), softpipe_context::num_vertex_buffers, PIPE_MAX_ATTRIBS, softpipe_context(), SP_NEW_VERTEX, and softpipe_context::vertex_buffer.

00062 {
00063    struct softpipe_context *softpipe = softpipe_context(pipe);
00064 
00065    assert(count <= PIPE_MAX_ATTRIBS);
00066 
00067    memcpy(softpipe->vertex_buffer, buffers, count * sizeof(buffers[0]));
00068    softpipe->num_vertex_buffers = count;
00069 
00070    softpipe->dirty |= SP_NEW_VERTEX;
00071 
00072    draw_set_vertex_buffers(softpipe->draw, count, buffers);
00073 }

void softpipe_set_vertex_elements ( struct pipe_context pipe,
unsigned  count,
const struct pipe_vertex_element attribs 
)

Definition at line 40 of file sp_state_vertex.c.

References assert, softpipe_context::dirty, softpipe_context::draw, draw_set_vertex_elements(), softpipe_context::num_vertex_elements, PIPE_MAX_ATTRIBS, softpipe_context(), SP_NEW_VERTEX, and softpipe_context::vertex_element.

00043 {
00044    struct softpipe_context *softpipe = softpipe_context(pipe);
00045 
00046    assert(count <= PIPE_MAX_ATTRIBS);
00047 
00048    memcpy(softpipe->vertex_element, attribs,
00049           count * sizeof(struct pipe_vertex_element));
00050    softpipe->num_vertex_elements = count;
00051 
00052    softpipe->dirty |= SP_NEW_VERTEX;
00053 
00054    draw_set_vertex_elements(softpipe->draw, count, attribs);
00055 }


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