render vertex without index

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
kaos
Posts: 155
Joined: Tue Aug 12, 2008 8:25 pm
Location: Spain

render vertex without index

Post by kaos »

work if I send index_vertex

Code: Select all

 
 
video::SMaterial mat;
mat.Lighting = false;
mat.DiffuseColor = SColor(255,255,255,255);
mat.PointCloud = true;
driver->setMaterial( mat );
driver->drawMeshBuffer( node->getMesh()->getMeshBuffer(0) );
 
/*
 
                        driver->drawVertexPrimitiveList(
                                node->getMesh()->getMeshBuffer(0)->getVertices(),
                                node->getMesh()->getMeshBuffer(0)->getVertexCount(),
                                0,
                                0,
                                node->getMesh()->getMeshBuffer(0)->getVertexType(),
                                scene::EPT_POINTS,
                                node->getMesh()->getMeshBuffer(0)->getIndexType()
                                );
*/
 
hybrid
Admin
Posts: 14144
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: render vertex without index

Post by hybrid »

Yes, a mesh buffer has by definition indices. So there's no function to avoid that.
Post Reply