Show
Ignore:
Timestamp:
03/11/09 18:57:33 (5 years ago)
Author:
robert
Message:

Added docs on getPixelAspectRatio and corrected usage of getPixelAspection in osgmovie.cpp

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgmovie/osgmovie.cpp

    r9911 r9913  
    527527                osg::notify(osg::NOTICE)<<"image->s()"<<image->s()<<" image-t()="<<image->t()<<" aspectRatio="<<image->getPixelAspectRatio()<<std::endl; 
    528528 
    529                 float width = image->s(); 
    530                 float height = image->t() * image->getPixelAspectRatio(); 
     529                float width = image->s() * image->getPixelAspectRatio(); 
     530                float height = image->t(); 
    531531 
    532532                osg::ref_ptr<osg::Drawable> drawable = myCreateTexturedQuadGeometry(pos, width, height,image, useTextureRectangle, xyPlane, flip);