|
Blender V5.0
|
#include <gl_batch.hh>
Inherits Batch.
Public Member Functions | |
| GLIndexBuf * | elem_ () const |
| GLVertBuf * | verts_ (const int index) const |
| MEM_CXX_CLASS_ALLOC_FUNCS ("GLBatch") | |
Drawing | |
| void | draw (int v_first, int v_count, int i_first, int i_count) override |
| void | draw_indirect (StorageBuf *indirect_buf, intptr_t offset) override |
| void | multi_draw_indirect (StorageBuf *indirect_buf, int count, intptr_t offset, intptr_t stride) override |
| void | bind () |
Public Attributes | |
| GLVaoCache | vao_cache_ |
Definition at line 87 of file gl_batch.hh.
| void GLBatch::bind | ( | ) |
Definition at line 237 of file gl_batch.cc.
References blender::gpu::StateManager::apply_state(), flag, blender::gpu::GLContext::get(), GPU_BATCH_DIRTY, blender::gpu::Context::state_manager, and vao_cache_.
Referenced by draw(), draw_indirect(), and multi_draw_indirect().
|
override |
Definition at line 249 of file gl_batch.cc.
References bind(), BLI_assert, elem_(), GL_CHECK_RESOURCES, blender::gpu::IndexBuf::index_base_, blender::gpu::IndexBuf::index_type_, blender::gpu::GLIndexBuf::offset_ptr(), and blender::gpu::to_gl().
|
override |
Definition at line 273 of file gl_batch.cc.
References bind(), elem_(), GL_CHECK_RESOURCES, blender::gpu::IndexBuf::index_type_, and blender::gpu::to_gl().
|
inline |
Definition at line 103 of file gl_batch.hh.
Referenced by draw(), draw_indirect(), and multi_draw_indirect().
| blender::gpu::GLBatch::MEM_CXX_CLASS_ALLOC_FUNCS | ( | "GLBatch" | ) |
|
override |
Definition at line 293 of file gl_batch.cc.
References bind(), count, elem_(), GL_CHECK_RESOURCES, blender::gpu::IndexBuf::index_type_, and blender::gpu::to_gl().
|
inline |
Definition at line 107 of file gl_batch.hh.
References verts.
| GLVaoCache blender::gpu::GLBatch::vao_cache_ |
All vaos corresponding to all the GPUShaderInterface this batch was drawn with.
Definition at line 90 of file gl_batch.hh.
Referenced by bind().