|
Blender
V3.3
|
#include <gl_batch.hh>
Public Member Functions | |
| GLIndexBuf * | elem_ () const |
| GLVertBuf * | verts_ (const int index) const |
| GLVertBuf * | inst_ (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 | bind (int i_first) |
Public Member Functions inherited from blender::gpu::Batch | |
| virtual | ~Batch ()=default |
| IndexBuf * | elem_ () const |
| VertBuf * | verts_ (const int index) const |
| VertBuf * | inst_ (const int index) const |
Public Attributes | |
| GLVaoCache | vao_cache_ |
Definition at line 89 of file gl_batch.hh.
| void GLBatch::bind | ( | int | i_first | ) |
Definition at line 263 of file gl_batch.cc.
References blender::gpu::StateManager::apply_state(), blender::gpu::GLContext::base_instance_support, blender::gpu::GLVaoCache::base_instance_vao_get(), blender::gpu::GLVaoCache::clear(), elem_(), blender::gpu::GLContext::fixed_restart_index_support, blender::gpu::GLContext::get(), GPU_BATCH_DIRTY, blender::gpu::Context::state_manager, vao_cache_, and blender::gpu::GLVaoCache::vao_get().
Referenced by draw(), and blender::gpu::GLDrawList::submit().
|
overridevirtual |
Implements blender::gpu::Batch.
Definition at line 288 of file gl_batch.cc.
References blender::gpu::GLContext::base_instance_support, bind(), BLI_assert, elem_(), GL_CHECK_RESOURCES, glDisable, glEnable, blender::gpu::IndexBuf::index_base_, blender::gpu::IndexBuf::index_type_, blender::gpu::GLIndexBuf::offset_ptr(), and blender::gpu::to_gl().
Referenced by blender::gpu::GLDrawList::submit().
|
inline |
Definition at line 100 of file gl_batch.hh.
References blender::gpu::unwrap().
Referenced by blender::gpu::GLDrawList::append(), bind(), draw(), and blender::gpu::GLDrawList::submit().
|
inline |
Definition at line 108 of file gl_batch.hh.
References blender::gpu::unwrap().
| blender::gpu::GLBatch::MEM_CXX_CLASS_ALLOC_FUNCS | ( | "GLBatch" | ) |
|
inline |
Definition at line 104 of file gl_batch.hh.
References blender::gpu::unwrap(), and verts.
| GLVaoCache blender::gpu::GLBatch::vao_cache_ |
All vaos corresponding to all the GPUShaderInterface this batch was drawn with.
Definition at line 92 of file gl_batch.hh.
Referenced by bind().