examples/labirinto/openglwindow.cpp
void OpenGLWindow::loadBunny() {
  m_bunny.terminateGL();

  m_bunny.loadDiffuseTexture(getAssetsPath() + "maps/bunny.jpg");
  m_bunny.loadObj(getAssetsPath() + "bunny.obj");
  m_bunny.setupVAO(m_programs.at(m_currentProgramIndex));
  m_trianglesOfBunny = m_bunny.getNumTriangles();
}
// Load bunny and define it own texture
Load bunny and define it own texture
Load bunny and define it own texture
void OpenGLWindow::loadBunny() {
  m_bunny.terminateGL();
  m_bunny.loadDiffuseTexture(getAssetsPath() + "maps/bunny.jpg");
  m_bunny.loadObj(getAssetsPath() + "bunny.obj");
  m_bunny.setupVAO(m_programs.at(m_currentProgramIndex));
  m_trianglesOfBunny = m_bunny.getNumTriangles();
}
void OpenGLWindow :: loadBunny ( ) { m_bunny . terminateGL ( ) ; m_bunny . loadDiffuseTexture ( getAssetsPath ( ) + " " ) ; m_bunny . loadObj ( getAssetsPath ( ) + " " ) ; m_bunny . setupVAO ( m_programs . at ( m_currentProgramIndex ) ) ; m_trianglesOfBunny = m_bunny . getNumTriangles ( ) ; }
Load bunny and define it own texture
Load bunny and define it own texture