Changeset 9913
- Timestamp:
- 03/11/09 18:57:33 (4 years ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 2 modified
-
examples/osgmovie/osgmovie.cpp (modified) (1 diff)
-
include/osg/Image (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgmovie/osgmovie.cpp
r9911 r9913 527 527 osg::notify(osg::NOTICE)<<"image->s()"<<image->s()<<" image-t()="<<image->t()<<" aspectRatio="<<image->getPixelAspectRatio()<<std::endl; 528 528 529 float width = image->s() ;530 float height = image->t() * image->getPixelAspectRatio();529 float width = image->s() * image->getPixelAspectRatio(); 530 float height = image->t(); 531 531 532 532 osg::ref_ptr<osg::Drawable> drawable = myCreateTexturedQuadGeometry(pos, width, height,image, useTextureRectangle, xyPlane, flip); -
OpenSceneGraph/trunk/include/osg/Image
r9910 r9913 187 187 inline unsigned int getPacking() const { return _packing; } 188 188 189 /** Set the pixel aspect ratio, defined as the pixel width divided by the pixel height.*/ 189 190 inline void setPixelAspectRatio(float pixelAspectRatio) { _pixelAspectRatio = pixelAspectRatio; } 191 192 /** Get the pixel aspect ratio.*/ 190 193 inline float getPixelAspectRatio() const { return _pixelAspectRatio; } 191 194
