Changeset 6947 for OpenSceneGraph/trunk/examples/osgmovie/osgmovie.cpp
- Timestamp:
- 06/12/07 18:55:44 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgmovie/osgmovie.cpp
r6941 r6947 269 269 osg::Geometry* myCreateTexturedQuadGeometry(const osg::Vec3& pos,float width,float height, osg::Image* image, bool useTextureRectangle) 270 270 { 271 bool flip = image->getOrigin()==osg::Image::TOP_LEFT; 271 272 if (useTextureRectangle) 272 273 { … … 274 275 osg::Vec3(width,0.0f,0.0f), 275 276 osg::Vec3(0.0f,0.0f,height), 276 0.0f, image->t(), image->s(),0.0f);277 0.0f, flip ? image->t() : 0.0, image->s(), flip ? 0.0 : image->t()); 277 278 278 279 osg::TextureRectangle* texture = new osg::TextureRectangle(image); … … 292 293 osg::Vec3(width,0.0f,0.0f), 293 294 osg::Vec3(0.0f,0.0f,height), 294 0.0f, 1.0f, 1.0f,0.0f);295 0.0f, flip ? 1.0f : 0.0f , 1.0f, flip ? 0.0f : 1.0f); 295 296 296 297 osg::Texture2D* texture = new osg::Texture2D(image);
