.
osg::ref_ptr mVertexs;
mDrawArray = new osg::DrawArrays(osg::PrimitiveSet::POINTS,0,0);
// Modify vertex array (mVertexs is in app side).
mVertexs->push_back( vertex );
// Tell OSG geometry was modified.
mGeometry->setVertexArray( mVertexs.get() );
mGeometry->di
it written agreement
or government initiative expressly permitting the use of e-mail for such
purpose. •
-osg-users-boun...@lists.openscenegraph.org wrote: -
To: osg-users@lists.openscenegraph.org
From: Jim Brooks
Sent by: osg-users-boun...@lists.openscenegraph.org
Date: 03/05/2009 09
Hi Jim,
I'm confused by your email and your code segment, so not really sure
what to comment on.
Robert.
On Fri, Mar 6, 2009 at 2:56 AM, Jim Brooks wrote:
> Found two different ways to tell OSG that vertexs were modified.
> Maybe these are circumventions that aren't proper (?).
>
> What is the
Found two different ways to tell OSG that vertexs were modified.
Maybe these are circumventions that aren't proper (?).
What is the "one right way"?
Call dirtyDisplayList() ?
ctor()
: mVertexs(new osg::Vec3Array),
mDrawArray(new osg::DrawArrays( osg::PrimitiveSet::POINTS,0,0))
{
}
4 matches
Mail list logo