cgv
cgv::render::attribute_array_manager Class Reference

attribute array manager used to upload arrays to gpu More...

#include <renderer.h>

Public Member Functions

 attribute_array_manager (VertexBufferUsage _default_usage=VBU_STREAM_DRAW)
 default initialization
 
 ~attribute_array_manager ()
 destructor calls destruct
 
bool has_attribute (const context &ctx, int loc) const
 check whether the given attribute is available
 

Protected Member Functions

bool has_index_buffer () const
 whether aam contains an index buffer
 

Protected Attributes

VertexBufferUsage default_usage
 store default buffer usage
 
attribute_array_binding aab
 attribue array binding used to store array pointers
 
std::map< int, vertex_buffer * > vbos
 store vertex buffers generated per attribute location
 

Friends

class renderer
 give renderer access to protected members
 

Detailed Description

attribute array manager used to upload arrays to gpu


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