Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2012-02-23 02:48:34 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-02-23 02:48:34 +0400
commitfd87bf3ef66cf03286de9ac136f1eaecb1160a44 (patch)
tree340d0cf31d14a14ec6e328b0eac17fab9e2199b8 /source/blender/gpu/GPU_buffers.h
parent78e1da961c0e6eeeacffefd1ab3cca3947f4b3b6 (diff)
Code cleanup: don't use GHash for GPU_build_mesh_buffers().
At the point where GPU_build_mesh_buffers is called, the face_vert_indices map has already been built; it contains the same data in an easier-to-access format.
Diffstat (limited to 'source/blender/gpu/GPU_buffers.h')
-rw-r--r--source/blender/gpu/GPU_buffers.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h
index 5c567c31163..e244b20bbb0 100644
--- a/source/blender/gpu/GPU_buffers.h
+++ b/source/blender/gpu/GPU_buffers.h
@@ -159,16 +159,21 @@ int GPU_buffer_legacy( struct DerivedMesh *dm );
/* Buffers for non-DerivedMesh drawing */
typedef struct GPU_Buffers GPU_Buffers;
-GPU_Buffers *GPU_build_mesh_buffers(struct GHash *map,
- struct MFace *mface, int *face_indices,
- int totface, int uniq_verts);
+
+GPU_Buffers *GPU_build_mesh_buffers(int (*face_vert_indices)[4],
+ struct MFace *mface, int *face_indices, int totface);
+
void GPU_update_mesh_buffers(GPU_Buffers *buffers, struct MVert *mvert,
int *vert_indices, int totvert, int smooth);
+
GPU_Buffers *GPU_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);
#endif