diff options
author | Lukas Steiblys <imbusy@imbusy.org> | 2011-02-15 22:04:00 +0300 |
---|---|---|
committer | Lukas Steiblys <imbusy@imbusy.org> | 2011-02-15 22:04:00 +0300 |
commit | 7fba9eab470783775561308683a839f0aa64f9fb (patch) | |
tree | 2b6991fbcf41a1cc3c68179b2ca93a94944ab600 /source/blender/gpu/GPU_buffers.h | |
parent | 15570631fd329ba4df1d60c7a919ad6fa1619ef2 (diff) |
added more code comments and removed some magic constants
Diffstat (limited to 'source/blender/gpu/GPU_buffers.h')
-rw-r--r-- | source/blender/gpu/GPU_buffers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h index 342cc6b72a3..4c6e24cde62 100644 --- a/source/blender/gpu/GPU_buffers.h +++ b/source/blender/gpu/GPU_buffers.h @@ -69,6 +69,8 @@ typedef struct GPUBuffer unsigned int id; /* used with vertex buffer objects */ } GPUBuffer; +/* stores deleted buffers so that new buffers wouldn't have to +be recreated that often. */ typedef struct GPUBufferPool { int size; /* number of allocated buffers stored */ @@ -114,6 +116,7 @@ typedef struct GPUDrawObject } GPUDrawObject; +/* used for GLSL materials */ typedef struct GPUAttrib { int index; @@ -173,6 +176,7 @@ void GPU_buffer_draw_elements( GPUBuffer *elements, unsigned int mode, int start /* called after drawing */ void GPU_buffer_unbind(void); +/* used to check whether to use the old (without buffers) code */ int GPU_buffer_legacy( struct DerivedMesh *dm ); #endif |