Torsten Dreyer <[email protected]> writes:
> I'm failing to build SimGear on 64bit linux:
> EffectGeode.cxx:83:136: error: no matching function for call to
> ‘osg::Geometry::setVertexAttribArray(int&, osg::Geometry::ArrayData)’
>
> OSG is stable 3.0.1 from svn (same with OSG trunk)
> SimGear is git next from today
>
> Yes, I rm-rf'ed previous artefacts and started from scratch.
these are the changes i made to get simgear to compile with
openscenegraph from svn:
diff --git a/simgear/scene/material/EffectGeode.cxx
b/simgear/scene/material/EffectGeode.cxx
index 26eab38..d634ac8 100644
--- a/simgear/scene/material/EffectGeode.cxx
+++ b/simgear/scene/material/EffectGeode.cxx
@@ -80,15 +80,15 @@ void EffectGeode::runGenerators(osg::Geometry *geometry)
int n = _effect->getGenerator(Effect::TANGENT);
tsg->generate(geometry, 0); // 0 is normal_unit, but I have no idea
what that is!
if (n != -1 && !geometry->getVertexAttribArray(n))
- geometry->setVertexAttribData(n,
osg::Geometry::ArrayData(tsg->getTangentArray(),
osg::Geometry::BIND_PER_VERTEX,GL_FALSE));
+ geometry->setVertexAttribArray(n, tsg->getTangentArray());
n = _effect->getGenerator(Effect::BINORMAL);
if (n != -1 && !geometry->getVertexAttribArray(n))
- geometry->setVertexAttribData(n,
osg::Geometry::ArrayData(tsg->getBinormalArray(),
osg::Geometry::BIND_PER_VERTEX,GL_FALSE));
+ geometry->setVertexAttribArray(n, tsg->getBinormalArray());
n = _effect->getGenerator(Effect::NORMAL);
if (n != -1 && !geometry->getVertexAttribArray(n))
- geometry->setVertexAttribData(n,
osg::Geometry::ArrayData(tsg->getNormalArray(),
osg::Geometry::BIND_PER_VERTEX,GL_FALSE));
+ geometry->setVertexAttribArray(n, tsg->getNormalArray());
}
}
--alex--
--
| I believe the moment is at hand when, by a paranoiac and active |
| advance of the mind, it will be possible (simultaneously with |
| automatism and other passive states) to systematize confusion |
| and thus to help to discredit completely the world of reality. |
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel