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-e03cc46cb475master
parent
dee8ee63a7
commit
c3dabec2a9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue