Blender  V2.93
Public Member Functions | Friends | List of all members
blender::gpu::GLIndexBuf Class Reference

#include <gl_index_buffer.hh>

Inherits blender::gpu::IndexBuf.

Public Member Functions

 ~GLIndexBuf ()
 
void bind (void)
 
void * offset_ptr (uint additional_vertex_offset) const
 
GLuint restart_index (void) const
 
- Public Member Functions inherited from blender::gpu::IndexBuf
 IndexBuf ()
 
virtual ~IndexBuf ()
 
void init (uint indices_len, uint32_t *indices)
 
void init_subrange (IndexBuf *elem_src, uint start, uint length)
 
uint32_t index_len_get (void) const
 
size_t size_get (void)
 
bool is_init (void) const
 

Friends

class GLBatch
 
class GLDrawList
 

Additional Inherited Members

- Protected Attributes inherited from blender::gpu::IndexBuf
GPUIndexBufType index_type_ = GPU_INDEX_U32
 
uint32_t index_start_ = 0
 
uint32_t index_len_ = 0
 
uint32_t index_base_ = 0
 
bool is_init_ = false
 
bool is_subrange_ = false
 
union {
   void *   data_ = nullptr
 
   IndexBuf *   src_
 
}; 
 

Detailed Description

Definition at line 34 of file gl_index_buffer.hh.

Constructor & Destructor Documentation

◆ ~GLIndexBuf()

blender::gpu::GLIndexBuf::~GLIndexBuf ( )

Definition at line 31 of file gl_index_buffer.cc.

References blender::gpu::GLContext::buf_free().

Member Function Documentation

◆ bind()

void blender::gpu::GLIndexBuf::bind ( void  )

◆ offset_ptr()

void* blender::gpu::GLIndexBuf::offset_ptr ( uint  additional_vertex_offset) const
inline

◆ restart_index()

GLuint blender::gpu::GLIndexBuf::restart_index ( void  ) const
inline

Friends And Related Function Documentation

◆ GLBatch

friend class GLBatch
friend

Definition at line 35 of file gl_index_buffer.hh.

◆ GLDrawList

friend class GLDrawList
friend

Definition at line 36 of file gl_index_buffer.hh.


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