Implemented an osg::createImageWithOrientationConversion(...) method to aid for changing orientation of images.

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14818 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2015-04-03 13:19:32 +00:00
parent 8fb08496ae
commit 40a7f903ec
2 changed files with 56 additions and 1 deletions

View File

@@ -17,6 +17,7 @@
#include <osg/Export>
#include <osg/Image>
#include <osg/Vec3i>
namespace osg {
@@ -238,6 +239,8 @@ enum ColorSpaceOperation
/** Convert the RGBA values in a Image based on a ColorSpaceOperation defined scheme.*/
extern OSG_EXPORT osg::Image* colorSpaceConversion(ColorSpaceOperation op, osg::Image* image, const osg::Vec4& colour);
/** Create a copy of an osg::Image. converting the origin to standard lower left OpenGL style origin .*/
extern OSG_EXPORT osg::Image* createImageWithOrientationConversion(const osg::Image* srcImage, const osg::Vec3i& srcOrigin, const osg::Vec3i& srcRow, const osg::Vec3i& srcColumn, const osg::Vec3i& srcLayer);
}