Hi,

Dorosky, Christopher G wrote:
Hi all,

I don't understand what I am doing wrong here.

Assume that the pointers are valid, etc.... since if BROKE is not
defined, it all works.


                geometry->setVertexArray(&v);
                geometry->setColorArray(&color);
                geometry->setColorBinding(osg::Geometry::BIND_OVERALL);

#ifdef BROKE
                geometry->addPrimitiveSet(new
osg::DrawArrays((GL_POINTS, 0, aP->nVertices)));

Try using less parentheses:

geometry->addPrimitiveSet(new
 osg::DrawArrays(GL_POINTS, 0, ap->nVertices))

If you put all arguments in parentheses, only
the last parameter is used (comma operator)
which in your case calls the wrong constructor.


Cheers,

Peter
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to