Blender  V3.3
Public Member Functions | Public Attributes | List of all members
blender::gpu::GLBatch Class Reference

#include <gl_batch.hh>

Inheritance diagram for blender::gpu::GLBatch:
blender::gpu::Batch

Public Member Functions

GLIndexBufelem_ () const
 
GLVertBufverts_ (const int index) const
 
GLVertBufinst_ (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
 
IndexBufelem_ () const
 
VertBufverts_ (const int index) const
 
VertBufinst_ (const int index) const
 

Public Attributes

GLVaoCache vao_cache_
 

Detailed Description

Definition at line 89 of file gl_batch.hh.

Member Function Documentation

◆ bind()

void GLBatch::bind ( int  i_first)

◆ draw()

void GLBatch::draw ( int  v_first,
int  v_count,
int  i_first,
int  i_count 
)
overridevirtual

◆ elem_()

GLIndexBuf* blender::gpu::GLBatch::elem_ ( ) const
inline

◆ inst_()

GLVertBuf* blender::gpu::GLBatch::inst_ ( const int  index) const
inline

Definition at line 108 of file gl_batch.hh.

References blender::gpu::unwrap().

◆ MEM_CXX_CLASS_ALLOC_FUNCS()

blender::gpu::GLBatch::MEM_CXX_CLASS_ALLOC_FUNCS ( "GLBatch"  )

◆ verts_()

GLVertBuf* blender::gpu::GLBatch::verts_ ( const int  index) const
inline

Definition at line 104 of file gl_batch.hh.

References blender::gpu::unwrap(), and verts.

Member Data Documentation

◆ vao_cache_

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().


The documentation for this class was generated from the following files: