st_cb_bufferobjects.h File Reference

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

Go to the source code of this file.

Data Structures

struct  st_buffer_object
 State_tracker vertex/pixel buffer object, derived from Mesa's gl_buffer_object. More...

Functions

static struct st_buffer_objectst_buffer_object (struct gl_buffer_object *obj)
void st_init_bufferobject_functions (struct dd_function_table *functions)


Function Documentation

static struct st_buffer_object* st_buffer_object ( struct gl_buffer_object *  obj  )  [static, read]

Definition at line 53 of file st_cb_bufferobjects.h.

00054 {
00055    if (obj->Name)
00056       return (struct st_buffer_object *) obj;
00057    else
00058       return NULL;
00059 }

void st_init_bufferobject_functions ( struct dd_function_table *  functions  ) 

Definition at line 231 of file st_cb_bufferobjects.c.

References st_bufferobj_alloc(), st_bufferobj_data(), st_bufferobj_free(), st_bufferobj_get_subdata(), st_bufferobj_map(), st_bufferobj_subdata(), and st_bufferobj_unmap().

00232 {
00233    functions->NewBufferObject = st_bufferobj_alloc;
00234    functions->DeleteBuffer = st_bufferobj_free;
00235    functions->BufferData = st_bufferobj_data;
00236    functions->BufferSubData = st_bufferobj_subdata;
00237    functions->GetBufferSubData = st_bufferobj_get_subdata;
00238    functions->MapBuffer = st_bufferobj_map;
00239    functions->UnmapBuffer = st_bufferobj_unmap;
00240 }


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