cell_state_vertex.c File Reference

Include dependency graph for cell_state_vertex.c:

Go to the source code of this file.

Functions

static void cell_set_vertex_elements (struct pipe_context *pipe, unsigned count, const struct pipe_vertex_element *elements)
static void cell_set_vertex_buffers (struct pipe_context *pipe, unsigned count, const struct pipe_vertex_buffer *buffers)
void cell_init_vertex_functions (struct cell_context *cell)


Function Documentation

void cell_init_vertex_functions ( struct cell_context cell  ) 

Definition at line 75 of file cell_state_vertex.c.

References cell_set_vertex_buffers(), cell_set_vertex_elements(), cell_context::pipe, pipe_context::set_vertex_buffers, and pipe_context::set_vertex_elements.

static void cell_set_vertex_buffers ( struct pipe_context pipe,
unsigned  count,
const struct pipe_vertex_buffer buffers 
) [static]

Definition at line 57 of file cell_state_vertex.c.

References assert, cell_context(), CELL_NEW_VERTEX, cell_context::dirty, cell_context::draw, draw_set_vertex_buffers(), cell_context::num_vertex_buffers, PIPE_MAX_ATTRIBS, and cell_context::vertex_buffer.

00060 {
00061    struct cell_context *cell = cell_context(pipe);
00062 
00063    assert(count <= PIPE_MAX_ATTRIBS);
00064 
00065    memcpy(cell->vertex_buffer, buffers, count * sizeof(buffers[0]));
00066    cell->num_vertex_buffers = count;
00067 
00068    cell->dirty |= CELL_NEW_VERTEX;
00069 
00070    draw_set_vertex_buffers(cell->draw, count, buffers);
00071 }

static void cell_set_vertex_elements ( struct pipe_context pipe,
unsigned  count,
const struct pipe_vertex_element elements 
) [static]

Definition at line 39 of file cell_state_vertex.c.

References assert, cell_context(), CELL_NEW_VERTEX, cell_context::dirty, cell_context::draw, draw_set_vertex_elements(), cell_context::num_vertex_elements, PIPE_MAX_ATTRIBS, and cell_context::vertex_element.

00042 {
00043    struct cell_context *cell = cell_context(pipe);
00044 
00045    assert(count <= PIPE_MAX_ATTRIBS);
00046 
00047    memcpy(cell->vertex_element, elements, count * sizeof(elements[0]));
00048    cell->num_vertex_elements = count;
00049 
00050    cell->dirty |= CELL_NEW_VERTEX;
00051 
00052    draw_set_vertex_elements(cell->draw, count, elements);
00053 }


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