Fixed typo and updated wrappers

This commit is contained in:
Robert Osfield 2006-11-30 18:42:38 +00:00
parent 54610429e9
commit 8d85636b50
4 changed files with 9 additions and 9 deletions

View File

@ -212,7 +212,7 @@ int main(int argc, char** argv)
group->addChild(model.get());
osg::ref_ptr<osg::Geode> geode = new osg::Geode;
occluder->comptueShadowVolumeGeometry(lightpos, *shadowVolume);
occluder->computeShadowVolumeGeometry(lightpos, *shadowVolume);
geode->addDrawable(shadowVolume.get());
group->addChild(geode.get());
@ -265,7 +265,7 @@ int main(int argc, char** argv)
{
osg::ref_ptr<osg::Geode> geode = new osg::Geode;
occluder->comptueShadowVolumeGeometry(lightpos, *shadowVolume);
occluder->computeShadowVolumeGeometry(lightpos, *shadowVolume);
geode->addDrawable(shadowVolume.get());
// switch off the writing to the color bit planes.
@ -289,7 +289,7 @@ int main(int argc, char** argv)
if (true)
{
osg::ref_ptr<osg::Geode> geode = new osg::Geode;
occluder->comptueShadowVolumeGeometry(lightpos, *shadowVolume);
occluder->computeShadowVolumeGeometry(lightpos, *shadowVolume);
geode->addDrawable(shadowVolume.get());
// switch off the writing to the color bit planes.
@ -374,7 +374,7 @@ int main(int argc, char** argv)
lightpos.set(sinf(t),cosf(t),0.8f,0.0f);
}
light->setPosition(lightpos);
occluder->comptueShadowVolumeGeometry(lightpos, *shadowVolume);
occluder->computeShadowVolumeGeometry(lightpos, *shadowVolume);
}
// update the scene by traversing it with the the update visitor which will

View File

@ -52,7 +52,7 @@ class OSGSHADOW_EXPORT OccluderGeometry : public osg::Drawable
/** Compute ShadowVolumeGeometry. */
void comptueShadowVolumeGeometry(const osg::Vec4& lightpos, ShadowVolumeGeometry& svg) const;
void computeShadowVolumeGeometry(const osg::Vec4& lightpos, ShadowVolumeGeometry& svg) const;
/** Set the bounding polytope of the OccluderGeometry.*/

View File

@ -738,7 +738,7 @@ void OccluderGeometry::computeLightPositionSlihouetteEdges(const osg::Vec3& ligh
}
void OccluderGeometry::comptueShadowVolumeGeometry(const osg::Vec4& lightpos, ShadowVolumeGeometry& svg) const
void OccluderGeometry::computeShadowVolumeGeometry(const osg::Vec4& lightpos, ShadowVolumeGeometry& svg) const
{
osg::Timer_t t0 = osg::Timer::instance()->tick();
@ -881,7 +881,7 @@ void OccluderGeometry::comptueShadowVolumeGeometry(const osg::Vec4& lightpos, Sh
svg.dirtyBound();
osg::Timer_t t1 = osg::Timer::instance()->tick();
osg::notify(osg::NOTICE)<<"comptueShadowVolumeGeometry "<<osg::Timer::instance()->delta_m(t0,t1)<<" ms"<<std::endl;
osg::notify(osg::NOTICE)<<"computeShadowVolumeGeometry "<<osg::Timer::instance()->delta_m(t0,t1)<<" ms"<<std::endl;
}
void OccluderGeometry::drawImplementation(osg::RenderInfo& renderInfo) const

View File

@ -70,8 +70,8 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::OccluderGeometry)
__void__computeOccluderGeometry__osg_Drawable_P1__osg_Matrix_P1__float,
"Compute an occluder geometry containing the geometry in specified drawable. ",
"");
I_Method2(void, comptueShadowVolumeGeometry, IN, const osg::Vec4 &, lightpos, IN, osgShadow::ShadowVolumeGeometry &, svg,
__void__comptueShadowVolumeGeometry__C5_osg_Vec4_R1__ShadowVolumeGeometry_R1,
I_Method2(void, computeShadowVolumeGeometry, IN, const osg::Vec4 &, lightpos, IN, osgShadow::ShadowVolumeGeometry &, svg,
__void__computeShadowVolumeGeometry__C5_osg_Vec4_R1__ShadowVolumeGeometry_R1,
"Compute ShadowVolumeGeometry. ",
"");
I_Method1(void, setBoundingPolytope, IN, const osg::Polytope &, polytope,