sp_prim_vbuf.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void sp_init_vbuf (struct softpipe_context *softpipe)
 Initialize the post-transform vertex buffer information for the given context.


Function Documentation

void sp_init_vbuf ( struct softpipe_context softpipe  ) 

Initialize the post-transform vertex buffer information for the given context.

Definition at line 381 of file sp_prim_vbuf.c.

References vbuf_render::allocate_vertices, assert, softpipe_vbuf_render::base, CALLOC_STRUCT, vbuf_render::destroy, vbuf_render::draw, softpipe_context::draw, vbuf_render::draw_arrays, draw_set_rasterize_stage(), draw_set_render(), draw_vbuf_stage(), vbuf_render::get_vertex_info, vbuf_render::max_indices, vbuf_render::max_vertex_buffer_bytes, vbuf_render::release_vertices, vbuf_render::set_primitive, softpipe_vbuf_render::softpipe, SP_MAX_VBUF_INDEXES, SP_MAX_VBUF_SIZE, sp_vbuf_allocate_vertices(), sp_vbuf_destroy(), sp_vbuf_draw(), sp_vbuf_draw_arrays(), sp_vbuf_get_vertex_info(), sp_vbuf_release_vertices(), sp_vbuf_set_primitive(), softpipe_context::vbuf, and softpipe_context::vbuf_render.

00382 {
00383    assert(sp->draw);
00384 
00385    sp->vbuf_render = CALLOC_STRUCT(softpipe_vbuf_render);
00386 
00387    sp->vbuf_render->base.max_indices = SP_MAX_VBUF_INDEXES;
00388    sp->vbuf_render->base.max_vertex_buffer_bytes = SP_MAX_VBUF_SIZE;
00389 
00390    sp->vbuf_render->base.get_vertex_info = sp_vbuf_get_vertex_info;
00391    sp->vbuf_render->base.allocate_vertices = sp_vbuf_allocate_vertices;
00392    sp->vbuf_render->base.set_primitive = sp_vbuf_set_primitive;
00393    sp->vbuf_render->base.draw = sp_vbuf_draw;
00394    sp->vbuf_render->base.draw_arrays = sp_vbuf_draw_arrays;
00395    sp->vbuf_render->base.release_vertices = sp_vbuf_release_vertices;
00396    sp->vbuf_render->base.destroy = sp_vbuf_destroy;
00397 
00398    sp->vbuf_render->softpipe = sp;
00399 
00400    sp->vbuf = draw_vbuf_stage(sp->draw, &sp->vbuf_render->base);
00401 
00402    draw_set_rasterize_stage(sp->draw, sp->vbuf);
00403 
00404    draw_set_render(sp->draw, &sp->vbuf_render->base);
00405 }


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