|
cgv
|
base interface for a vertex buffer More...
#include <context.h>
Public Member Functions | |
| vertex_buffer_base () | |
| initialize 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 | |
Public Attributes | |
| VertexBufferType | type |
| buffer type defaults to VBT_VERTICES | |
| VertexBufferUsage | usage |
| usage defaults to VBU_STATIC_DRAW | |
Public Attributes inherited from cgv::render::render_component | |
| void * | handle |
| void * | internal_format |
| void * | user_data |
| const context * | ctx_ptr |
| keep pointer to my context | |
| std::string | last_error |
| a string that contains the last error | |
| cgv::render::vertex_buffer_base::vertex_buffer_base | ( | ) |
initialize members
Definition at line 2331 of file context.cxx.
References type, usage, cgv::render::VBT_VERTICES, and cgv::render::VBU_STATIC_DRAW.
| VertexBufferType cgv::render::vertex_buffer_base::type |
buffer type defaults to VBT_VERTICES
Definition at line 464 of file context.h.
Referenced by cgv::render::vertex_buffer::bind(), cgv::render::vertex_buffer::bind(), cgv::render::vertex_buffer::unbind(), cgv::render::vertex_buffer::unbind(), cgv::render::vertex_buffer::unbind(), cgv::render::vertex_buffer::vertex_buffer(), and vertex_buffer_base().
| VertexBufferUsage cgv::render::vertex_buffer_base::usage |
usage defaults to VBU_STATIC_DRAW
Definition at line 466 of file context.h.
Referenced by cgv::render::vertex_buffer::vertex_buffer(), and vertex_buffer_base().