Removed the default play() in the MPEG, QuickTime and Xine plugins, moving

it into the osgmovie application, and into readNodeFile method where
--movie is now available for detecting movie code.
This commit is contained in:
Robert Osfield
2005-02-22 20:56:56 +00:00
parent e01990d419
commit e2f6dc5bf4
5 changed files with 31 additions and 11 deletions

View File

@@ -250,6 +250,8 @@ int main(int argc, char** argv)
if (arguments.isString(i))
{
osg::Image* image = osgDB::readImageFile(arguments[i]);
osg::ImageStream* imagestream = dynamic_cast<osg::ImageStream*>(image);
if (imagestream) imagestream->play();
geode->addDrawable(createTexturedQuadGeometry(pos,image->s(),image->t(),image));
geode->getOrCreateStateSet()->setMode(GL_LIGHTING,osg::StateAttribute::OFF);