CGUIMeshviewer can now also use meshbuffers with non-triangle primitives.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5430 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2017-04-18 12:15:40 +00:00
parent dee8ee63a7
commit c3dabec2a9
1 changed files with 2 additions and 2 deletions

View File

@ -153,8 +153,8 @@ void CGUIMeshViewer::draw()
scene::IMeshBuffer* mb = m->getMeshBuffer(i);
driver->drawVertexPrimitiveList(mb->getVertices(),
mb->getVertexCount(), mb->getIndices(),
mb->getIndexCount()/ 3, mb->getVertexType(),
scene::EPT_TRIANGLES, mb->getIndexType());
mb->getPrimitiveCount(), mb->getVertexType(),
mb->getPrimitiveType(), mb->getIndexType());
}
driver->setViewPort(oldViewPort);