I cant seem to figure out how to use drawVertexPrimitiveList
I tried the following:
A for loop creating the data to be drawn
Code: Select all
//This is a irr::scene::CVertexBuffer
vertexBuffer->push_back(pointVertex);
//This is a irr::scene::CIndexBuffer*
//Filled with values from 0 - number of vertices
indexBuffer->push_back(pointCounter);
A function which should draw the data
Code: Select all
m_driver->beginScene(true, true, irr::video::SColor(255,200,200,200));
m_driver->setMaterial(Material);
m_smgr->getVideoDriver()->drawVertexPrimitiveList(pVertexBuffer, pVertexBuffer->size(), pIndexBuffer, pIndexBuffer->size(),irr::video::E_VERTEX_TYPE::EVT_STANDARD, irr::scene::E_PRIMITIVE_TYPE::EPT_POINTS, irr::video::E_INDEX_TYPE::EIT_32BIT);
m_smgr->drawAll();
m_driver->endScene();