Added playing of the imagesequence on creation of the imagesequence

This commit is contained in:
Robert Osfield 2008-09-10 11:27:00 +00:00
parent 45ccf11161
commit b0cf7823a7

View File

@ -52,6 +52,9 @@ osg::StateSet* createState()
imageSequence->addImage(osgDB::readImageFile("Cubemap_axis/negy.png")); imageSequence->addImage(osgDB::readImageFile("Cubemap_axis/negy.png"));
imageSequence->addImage(osgDB::readImageFile("Cubemap_axis/posz.png")); imageSequence->addImage(osgDB::readImageFile("Cubemap_axis/posz.png"));
imageSequence->addImage(osgDB::readImageFile("Cubemap_axis/negz.png")); imageSequence->addImage(osgDB::readImageFile("Cubemap_axis/negz.png"));
// start the image sequence playing
imageSequence->play();
#if 1 #if 1
osg::Texture2D* texture = new osg::Texture2D; osg::Texture2D* texture = new osg::Texture2D;