Added a bunch of files synched with 0.8.42

This commit is contained in:
Don BURNS
2001-09-19 21:08:56 +00:00
parent fed86f3f03
commit e8f256a59d
446 changed files with 58397 additions and 10552 deletions

View File

@@ -1,13 +1,7 @@
#include "osg/LightSource"
#include "osg/Input"
#include "osg/Output"
#include "osg/Registry"
using namespace osg;
RegisterObjectProxy<LightSource> g_LightSourceProxy;
LightSource::LightSource()
{
_bsphere_computed = false;
@@ -19,41 +13,13 @@ LightSource::~LightSource()
// ref_ptr<> automactially decrements the reference count of attached lights.
}
bool LightSource::readLocalData(Input& fr)
const bool LightSource::computeBound() const
{
bool iteratorAdvanced = false;
if (Node::readLocalData(fr)) iteratorAdvanced = true;
Light* light = static_cast<Light*>(Light::instance()->readClone(fr));
if (light)
{
_light = light;
iteratorAdvanced = true;
}
return iteratorAdvanced;
}
bool LightSource::writeLocalData(Output& fw)
{
Node::writeLocalData(fw);
if (_light.valid()) _light->write(fw);
return true;
}
bool LightSource::computeBound( void )
{
// note, don't do anything right now as the light itself is not
// visualised, just having an effect on the lighting of geodes.
_bsphere.init();
_bsphere_computed = true;
return true;
return true;
}