cgv
Loading...
Searching...
No Matches
cgv::render::vertex_buffer_base Class Reference

base interface for a vertex buffer More...

#include <context.h>

Inheritance diagram for cgv::render::vertex_buffer_base:
cgv::render::render_component cgv::render::vertex_buffer cgv::render::uniform_buffer< cgv::render::device_color_scale_arguments > cgv::render::uniform_buffer< T >

Public Attributes

VertexBufferType type = VBT_VERTICES
 buffer type defaults to VBT_VERTICES
 
VertexBufferUsage usage = VBU_STATIC_DRAW
 usage defaults to VBU_STATIC_DRAW
 
- Public Attributes inherited from cgv::render::render_component
void * handle
 
void * internal_format
 
void * user_data
 
const contextctx_ptr
 keep pointer to my context
 
std::string last_error
 a string that contains the last error
 

Additional Inherited Members

- Public Member Functions inherited from cgv::render::render_component
 render_component ()
 initialize members
 
virtual bool is_created () const
 return whether component has been created
 
void put_id_void (void *ptr) const
 copy the rendering api specific id the component to the memory location of the given pointer.
 
template<typename T >
void put_id (T &id) const
 cast the refence to rendering api specific representation of component id to the specified type
 

Detailed Description

base interface for a vertex buffer

Definition at line 507 of file context.h.

Member Data Documentation

◆ type

◆ usage

VertexBufferUsage cgv::render::vertex_buffer_base::usage = VBU_STATIC_DRAW

usage defaults to VBU_STATIC_DRAW

Definition at line 513 of file context.h.

Referenced by cgv::render::vertex_buffer::vertex_buffer().


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