diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-07-15 19:50:02 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-07-15 19:50:02 +0300 |
commit | 13c39e90b3c0ec6a470fbc3696cd73c2a65b49cf (patch) | |
tree | c4e7113f2dd911e5438eb68d4e9f49efa7e1fe1e /source/blender/gpu/GPU_buffers.h | |
parent | 2daa4db8a0cb23dfd0ca417ead2413e20ec18fe7 (diff) |
VBO offscreen selection drawing, cdderivedmesh
Get rid of legacy drawing, it's only used for selection,
in which case we can prepare a temporary color buffer and draw
at once. Code is not complete here because we still redundantly
set the draw color in the draw function and don't ommit hidden
faces automatically. Still it works 100% without immediate mode
now.
Diffstat (limited to 'source/blender/gpu/GPU_buffers.h')
-rw-r--r-- | source/blender/gpu/GPU_buffers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h index dafc9ac84ed..8586728410c 100644 --- a/source/blender/gpu/GPU_buffers.h +++ b/source/blender/gpu/GPU_buffers.h @@ -172,6 +172,7 @@ void GPU_uv_setup(struct DerivedMesh *dm); void GPU_texpaint_uv_setup(struct DerivedMesh *dm); /* colType is the cddata MCol type to use! */ void GPU_color_setup(struct DerivedMesh *dm, int colType); +void GPU_buffer_bind_as_color(GPUBuffer *buffer); void GPU_edge_setup(struct DerivedMesh *dm); /* does not mix with other data */ void GPU_uvedge_setup(struct DerivedMesh *dm); |