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

#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)
 
VertBufduplicate (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
 
uchardata = 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
 

Detailed Description

Definition at line 35 of file gl_vertex_buffer.hh.

Member Function Documentation

◆ acquire_data()

void blender::gpu::GLVertBuf::acquire_data ( void  )
overrideprotectedvirtual

◆ bind()

void blender::gpu::GLVertBuf::bind ( void  )

◆ duplicate_data()

void blender::gpu::GLVertBuf::duplicate_data ( VertBuf dst)
overrideprotectedvirtual

◆ MEM_CXX_CLASS_ALLOC_FUNCS()

blender::gpu::GLVertBuf::MEM_CXX_CLASS_ALLOC_FUNCS ( "GLVertBuf"  )
protected

◆ release_data()

void blender::gpu::GLVertBuf::release_data ( void  )
overrideprotectedvirtual

◆ resize_data()

void blender::gpu::GLVertBuf::resize_data ( void  )
overrideprotectedvirtual

◆ update_sub()

void blender::gpu::GLVertBuf::update_sub ( uint  start,
uint  len,
void *  data 
)
overridevirtual

Implements blender::gpu::VertBuf.

Definition at line 109 of file gl_vertex_buffer.cc.

References blender::gpu::VertBuf::data, and len.

◆ upload_data()

void blender::gpu::GLVertBuf::upload_data ( void  )
overrideprotectedvirtual

Implements blender::gpu::VertBuf.

Definition at line 78 of file gl_vertex_buffer.cc.

References bind().

Friends And Related Function Documentation

◆ GLShader

friend class GLShader
friend

Definition at line 37 of file gl_vertex_buffer.hh.

◆ GLTexture

friend class GLTexture
friend

Definition at line 36 of file gl_vertex_buffer.hh.


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