|
Blender
V2.93
|
#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_ | |
| }; | |
Definition at line 34 of file gl_index_buffer.hh.
| blender::gpu::GLIndexBuf::~GLIndexBuf | ( | ) |
Definition at line 31 of file gl_index_buffer.cc.
References blender::gpu::GLContext::buf_free().
| void blender::gpu::GLIndexBuf::bind | ( | void | ) |
Definition at line 36 of file gl_index_buffer.cc.
References blender::gpu::IndexBuf::data_, blender::gpu::IndexBuf::is_subrange_, MEM_SAFE_FREE, blender::gpu::debug::raise_gl_error(), size(), blender::gpu::IndexBuf::size_get(), and blender::gpu::IndexBuf::src_.
|
inline |
Definition at line 46 of file gl_index_buffer.hh.
References blender::gpu::GPU_INDEX_U32, blender::gpu::IndexBuf::index_start_, and blender::gpu::IndexBuf::index_type_.
Referenced by blender::gpu::GLBatch::draw().
|
inline |
Definition at line 55 of file gl_index_buffer.hh.
References blender::gpu::GPU_INDEX_U16, and blender::gpu::IndexBuf::index_type_.
|
friend |
Definition at line 35 of file gl_index_buffer.hh.
|
friend |
Definition at line 36 of file gl_index_buffer.hh.