Changeset 7479
- Timestamp:
- 09/25/07 19:01:16
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OpenSceneGraph/trunk/examples/osgmovie/osgmovie.cpp
r7477 r7479 268 268 269 269 270 osg::Geometry* myCreateTexturedQuadGeometry(const osg::Vec3& pos,float width,float height, osg::Image* image, bool useTextureRectangle, bool xyPlane )270 osg::Geometry* myCreateTexturedQuadGeometry(const osg::Vec3& pos,float width,float height, osg::Image* image, bool useTextureRectangle, bool xyPlane, bool option_flip) 271 271 { 272 272 bool flip = image->getOrigin()==osg::Image::TOP_LEFT; 273 if (option_flip) flip = !flip; 274 273 275 if (useTextureRectangle) 274 276 { … … 348 350 349 351 bool fullscreen = !arguments.read("--interactive"); 350 352 bool flip = arguments.read("--flip"); 351 353 352 354 osg::ref_ptr<osg::Geode> geode = new osg::Geode; … … 409 411 if (image) 410 412 { 411 geode->addDrawable(myCreateTexturedQuadGeometry(pos,image->s(),image->t(),image, useTextureRectangle, xyPlane ));413 geode->addDrawable(myCreateTexturedQuadGeometry(pos,image->s(),image->t(),image, useTextureRectangle, xyPlane, flip)); 412 414 413 415 bottomright = pos + osg::Vec3(static_cast<float>(image->s()),static_cast<float>(image->t()),0.0f);
