26 return it->second(_mode);
34 std::cout<<
"******************************\n";
35 std::cout<<
"VAOFactory Creators List \n";
36 std::cout<<
"******************************\n";
39 std::cout<<
"Creator "<<
c.first<<
" registered \n";
41 std::cout<<
"******************************\n";
static AbstractVAO * createVAO(const std::string &_type, GLenum _mode=GL_TRIANGLES)
static void registerVAOCreator(const std::string &_type, std::function< AbstractVAO *(GLenum _mode)> _cb)
Add a new vao creator to our factory.
implementation files for RibExport class
static void listCreators()
debug function to list all creators
base class for all VAO from the VAOFactory this defines the base class type with simple draw / bind b...
static std::unordered_map< std::string, std::function< AbstractVAO *(GLenum _mode)> > m_vaoCreators
GLsizei const GLchar *const * string
static void unregisterVAOCreator(const std::string &_type)
Remove an existing vao creator from the map.