Blender V2.61 - r43446
Classes | Defines | Typedefs | Functions

GPU_buffers.h File Reference

Go to the source code of this file.

Classes

struct  GPUBuffer
struct  GPUBufferMaterial
struct  GPUDrawObject
struct  GPUAttrib

Defines

#define DEBUG_VBO(X)

Typedefs

typedef struct GPUBuffer GPUBuffer
typedef struct GPUBufferMaterial GPUBufferMaterial
typedef struct GPUDrawObject GPUDrawObject
typedef struct GPUAttrib GPUAttrib
typedef struct GPU_Buffers GPU_Buffers

Functions

void GPU_global_buffer_pool_free (void)
GPUBufferGPU_buffer_alloc (int size)
void GPU_buffer_free (GPUBuffer *buffer)
GPUDrawObjectGPU_drawobject_new (struct DerivedMesh *dm)
void GPU_drawobject_free (struct DerivedMesh *dm)
void GPU_vertex_setup (struct DerivedMesh *dm)
void GPU_normal_setup (struct DerivedMesh *dm)
void GPU_uv_setup (struct DerivedMesh *dm)
void GPU_color_setup (struct DerivedMesh *dm)
void GPU_edge_setup (struct DerivedMesh *dm)
void GPU_uvedge_setup (struct DerivedMesh *dm)
void GPU_interleaved_setup (GPUBuffer *buffer, int data[])
int GPU_attrib_element_size (GPUAttrib data[], int numdata)
void GPU_interleaved_attrib_setup (GPUBuffer *buffer, GPUAttrib data[], int numdata)
void * GPU_buffer_lock (GPUBuffer *buffer)
void * GPU_buffer_lock_stream (GPUBuffer *buffer)
void GPU_buffer_unlock (GPUBuffer *buffer)
void GPU_color3_upload (struct DerivedMesh *dm, unsigned char *data)
void GPU_color4_upload (struct DerivedMesh *dm, unsigned char *data)
void GPU_color_switch (int mode)
void GPU_buffer_draw_elements (GPUBuffer *elements, unsigned int mode, int start, int count)
void GPU_buffer_unbind (void)
int GPU_buffer_legacy (struct DerivedMesh *dm)
GPU_BuffersGPU_build_mesh_buffers (struct GHash *map, struct MVert *mvert, struct MFace *mface, int *face_indices, int totface, int *vert_indices, int uniq_verts, int totvert)
void GPU_update_mesh_buffers (GPU_Buffers *buffers, struct MVert *mvert, int *vert_indices, int totvert)
GPU_BuffersGPU_build_grid_buffers (struct DMGridData **grids, int *grid_indices, int totgrid, int gridsize)
void GPU_update_grid_buffers (GPU_Buffers *buffers, struct DMGridData **grids, int *grid_indices, int totgrid, int gridsize, int smooth)
void GPU_draw_buffers (GPU_Buffers *buffers)
void GPU_free_buffers (GPU_Buffers *buffers)

Detailed Description

Definition in file GPU_buffers.h.


Define Documentation

#define DEBUG_VBO (   X)

Typedef Documentation

typedef struct GPU_Buffers GPU_Buffers

Definition at line 161 of file GPU_buffers.h.

typedef struct GPUAttrib GPUAttrib
typedef struct GPUBuffer GPUBuffer
typedef struct GPUDrawObject GPUDrawObject

Function Documentation

int GPU_attrib_element_size ( GPUAttrib  data[],
int  numdata 
)
GPUBuffer* GPU_buffer_alloc ( int  size)
void GPU_buffer_draw_elements ( GPUBuffer elements,
unsigned int  mode,
int  start,
int  count 
)

Definition at line 1261 of file gpu_buffers.c.

References GPUBuffer::pointer, and useVBOs.

Referenced by cdDM_drawEdges(), and cdDM_drawLooseEdges().

void GPU_buffer_free ( GPUBuffer buffer)
int GPU_buffer_legacy ( struct DerivedMesh dm)
void* GPU_buffer_lock ( GPUBuffer buffer)

Definition at line 1212 of file gpu_buffers.c.

References GPUBuffer::id, GPUBuffer::pointer, and useVBOs.

void* GPU_buffer_lock_stream ( GPUBuffer buffer)

Definition at line 1229 of file gpu_buffers.c.

References GPUBuffer::id, GPUBuffer::pointer, GPUBuffer::size, and useVBOs.

Referenced by cdDM_drawMappedFacesGLSL().

void GPU_buffer_unbind ( void  )
void GPU_buffer_unlock ( GPUBuffer buffer)

Definition at line 1248 of file gpu_buffers.c.

References useVBOs.

Referenced by cdDM_drawMappedFacesGLSL().

GPU_Buffers* GPU_build_grid_buffers ( struct DMGridData **  grids,
int *  grid_indices,
int  totgrid,
int  gridsize 
)

Referenced by build_grids_leaf_node().

GPU_Buffers* GPU_build_mesh_buffers ( struct GHash map,
struct MVert mvert,
struct MFace mface,
int *  face_indices,
int  totface,
int *  vert_indices,
int  uniq_verts,
int  totvert 
)
void GPU_color3_upload ( struct DerivedMesh dm,
unsigned char *  data 
)
void GPU_color4_upload ( struct DerivedMesh dm,
unsigned char *  data 
)

Referenced by cdDM_drawFacesColored().

void GPU_color_setup ( struct DerivedMesh dm)
void GPU_color_switch ( int  mode)

Definition at line 1185 of file gpu_buffers.c.

References GLStates, and GPU_BUFFER_COLOR_STATE.

Referenced by cdDM_drawFacesTex_common().

void GPU_draw_buffers ( GPU_Buffers buffers)
void GPU_drawobject_free ( struct DerivedMesh dm)
GPUDrawObject* GPU_drawobject_new ( struct DerivedMesh dm)
void GPU_edge_setup ( struct DerivedMesh dm)
void GPU_free_buffers ( GPU_Buffers buffers)

Definition at line 1631 of file gpu_buffers.c.

References GPU_Buffers::index_buf, MEM_freeN(), and GPU_Buffers::vert_buf.

Referenced by BLI_pbvh_free().

void GPU_global_buffer_pool_free ( void  )

Definition at line 177 of file gpu_buffers.c.

References gpu_buffer_pool_free(), and NULL.

Referenced by WM_exit_ext().

void GPU_interleaved_attrib_setup ( GPUBuffer buffer,
GPUAttrib  data[],
int  numdata 
)
void GPU_interleaved_setup ( GPUBuffer buffer,
int  data[] 
)
void GPU_normal_setup ( struct DerivedMesh dm)
void GPU_update_grid_buffers ( GPU_Buffers buffers,
struct DMGridData **  grids,
int *  grid_indices,
int  totgrid,
int  gridsize,
int  smooth 
)
void GPU_update_mesh_buffers ( GPU_Buffers buffers,
struct MVert mvert,
int *  vert_indices,
int  totvert 
)
void GPU_uv_setup ( struct DerivedMesh dm)
void GPU_uvedge_setup ( struct DerivedMesh dm)
void GPU_vertex_setup ( struct DerivedMesh dm)