|
Blender
V2.93
|
#include <gl_vertex_buffer.hh>
Inherits blender::gpu::VertBuf.
Public Member Functions | |
| void | bind (void) |
| void | update_sub (uint start, uint len, void *data) override |
Public Member Functions inherited from blender::gpu::VertBuf | |
| VertBuf () | |
| virtual | ~VertBuf () |
| void | init (const GPUVertFormat *format, GPUUsageType usage) |
| void | clear (void) |
| void | allocate (uint vert_len) |
| void | resize (uint vert_len) |
| void | upload (void) |
| VertBuf * | duplicate (void) |
| size_t | size_alloc_get (void) const |
| size_t | size_used_get (void) const |
| void | reference_add (void) |
| void | reference_remove (void) |
Protected Member Functions | |
| void | acquire_data (void) override |
| void | resize_data (void) override |
| void | release_data (void) override |
| void | upload_data (void) override |
| void | duplicate_data (VertBuf *dst) override |
| MEM_CXX_CLASS_ALLOC_FUNCS ("GLVertBuf") | |
Friends | |
| class | GLTexture |
| class | GLShader |
Additional Inherited Members | |
Public Attributes inherited from blender::gpu::VertBuf | |
| GPUVertFormat | format = {} |
| uint | vertex_len = 0 |
| uint | vertex_alloc = 0 |
| GPUVertBufStatus | flag = GPU_VERTBUF_INVALID |
| uchar * | data = NULL |
Static Public Attributes inherited from blender::gpu::VertBuf | |
| static size_t | memory_usage = 0 |
Protected Attributes inherited from blender::gpu::VertBuf | |
| GPUUsageType | usage_ = GPU_USAGE_STATIC |
Definition at line 35 of file gl_vertex_buffer.hh.
|
overrideprotectedvirtual |
Implements blender::gpu::VertBuf.
Definition at line 30 of file gl_vertex_buffer.cc.
References blender::gpu::VertBuf::data, MEM_mallocN, MEM_SAFE_FREE, and blender::gpu::VertBuf::size_alloc_get().
| void blender::gpu::GLVertBuf::bind | ( | void | ) |
Definition at line 83 of file gl_vertex_buffer.cc.
References BLI_assert, blender::gpu::VertBuf::data, blender::gpu::VertBuf::flag, blender::gpu::GLContext::get(), GPU_USAGE_STATIC, GPU_VERTBUF_DATA_DIRTY, GPU_VERTBUF_DATA_UPLOADED, MEM_SAFE_FREE, blender::gpu::VertBuf::memory_usage, blender::gpu::VertBuf::size_used_get(), blender::gpu::to_gl(), and blender::gpu::VertBuf::usage_.
Referenced by blender::gpu::GLVertArray::update_bindings(), and upload_data().
|
overrideprotectedvirtual |
Implements blender::gpu::VertBuf.
Definition at line 53 of file gl_vertex_buffer.cc.
References BLI_assert, blender::gpu::VertBuf::data, blender::gpu::GLContext::get(), MEM_dupallocN, blender::gpu::VertBuf::memory_usage, blender::gpu::VertBuf::size_used_get(), blender::gpu::to_gl(), and blender::gpu::VertBuf::usage_.
|
protected |
|
overrideprotectedvirtual |
Implements blender::gpu::VertBuf.
Definition at line 42 of file gl_vertex_buffer.cc.
References blender::gpu::GLContext::buf_free(), blender::gpu::VertBuf::data, MEM_SAFE_FREE, and blender::gpu::VertBuf::memory_usage.
|
overrideprotectedvirtual |
Implements blender::gpu::VertBuf.
Definition at line 37 of file gl_vertex_buffer.cc.
References blender::gpu::VertBuf::data, MEM_reallocN, and blender::gpu::VertBuf::size_alloc_get().
Implements blender::gpu::VertBuf.
Definition at line 109 of file gl_vertex_buffer.cc.
References blender::gpu::VertBuf::data, and len.
|
overrideprotectedvirtual |
Implements blender::gpu::VertBuf.
Definition at line 78 of file gl_vertex_buffer.cc.
References bind().
|
friend |
Definition at line 37 of file gl_vertex_buffer.hh.
|
friend |
Definition at line 36 of file gl_vertex_buffer.hh.