diff options
Diffstat (limited to 'source/blender/gpu/opengl/gl_batch.hh')
-rw-r--r-- | source/blender/gpu/opengl/gl_batch.hh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/gpu/opengl/gl_batch.hh b/source/blender/gpu/opengl/gl_batch.hh index 9399148c68d..e6d9542fc3b 100644 --- a/source/blender/gpu/opengl/gl_batch.hh +++ b/source/blender/gpu/opengl/gl_batch.hh @@ -30,6 +30,8 @@ #include "gpu_batch_private.hh" +#include "gl_index_buffer.hh" + #include "glew-mx.h" namespace blender { @@ -99,6 +101,12 @@ class GLBatch : public Batch { void draw(int v_first, int v_count, int i_first, int i_count) override; void bind(int i_first); + /* Convenience getters. */ + GLIndexBuf *gl_elem(void) + { + return static_cast<GLIndexBuf *>(unwrap(elem)); + } + MEM_CXX_CLASS_ALLOC_FUNCS("GLBatch"); }; |