Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_batch.h
| Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | |||||
| */ | */ | ||||
| void GPU_batch_elembuf_set(GPUBatch *batch, GPUIndexBuf *elem, bool own_ibo); | void GPU_batch_elembuf_set(GPUBatch *batch, GPUIndexBuf *elem, bool own_ibo); | ||||
| int GPU_batch_instbuf_add_ex(GPUBatch *, GPUVertBuf *, bool own_vbo); | int GPU_batch_instbuf_add_ex(GPUBatch *, GPUVertBuf *, bool own_vbo); | ||||
| /** | /** | ||||
| * Returns the index of verts in the batch. | * Returns the index of verts in the batch. | ||||
| */ | */ | ||||
| int GPU_batch_vertbuf_add_ex(GPUBatch *, GPUVertBuf *, bool own_vbo); | int GPU_batch_vertbuf_add_ex(GPUBatch *, GPUVertBuf *, bool own_vbo); | ||||
| bool GPU_batch_vertbuf_has(GPUBatch *, GPUVertBuf *); | |||||
| #define GPU_batch_vertbuf_add(batch, verts) GPU_batch_vertbuf_add_ex(batch, verts, false) | #define GPU_batch_vertbuf_add(batch, verts) GPU_batch_vertbuf_add_ex(batch, verts, false) | ||||
| void GPU_batch_set_shader(GPUBatch *batch, GPUShader *shader); | void GPU_batch_set_shader(GPUBatch *batch, GPUShader *shader); | ||||
| /** | /** | ||||
| * Bind program bound to IMM to the batch. | * Bind program bound to IMM to the batch. | ||||
| * | * | ||||
| * XXX Use this with much care. Drawing with the #GPUBatch API is not compatible with IMM. | * XXX Use this with much care. Drawing with the #GPUBatch API is not compatible with IMM. | ||||
| ▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines | |||||