Changeset 9913

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

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

Location:
OpenSceneGraph/trunk
Files:
2 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); 
  • OpenSceneGraph/trunk/include/osg/Image

    r9910 r9913  
    187187        inline unsigned int getPacking() const { return _packing; } 
    188188 
     189        /** Set the pixel aspect ratio, defined as the pixel width divided by the pixel height.*/ 
    189190        inline void setPixelAspectRatio(float pixelAspectRatio) { _pixelAspectRatio = pixelAspectRatio; } 
     191 
     192        /** Get the pixel aspect ratio.*/ 
    190193        inline float getPixelAspectRatio() const { return _pixelAspectRatio; } 
    191194