From a97f104ab697d4eeeeb07d34dde075a1470a6e54 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 21 Nov 2014 20:15:30 +0000 Subject: [PATCH] Added comment clarifying how Image::getColor(..) out of 0..1 range texcoords are handled - now clamped to edge. git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14520 16af8721-9629-0410-8352-f15c8da7e697 --- include/osg/Image | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/osg/Image b/include/osg/Image index cd3ea7d30..4fbdd1968 100644 --- a/include/osg/Image +++ b/include/osg/Image @@ -376,10 +376,10 @@ class OSG_EXPORT Image : public BufferData /** Set the color value for specified texcoord.*/ void setColor(const osg::Vec4& color, unsigned int s, unsigned int t=0, unsigned int r=0); - /** Set the color value for specified texcoord.*/ + /** Set the color value for specified texcoord. Note texcoord is clamped to edge.*/ void setColor(const osg::Vec4& color, const osg::Vec2& texcoord ) { setColor(color, osg::Vec3(texcoord, 0.0f)); } - /** Set the color value for specified texcoord.*/ + /** Set the color value for specified texcoord. Note texcoord is clamped to edge.*/ void setColor(const osg::Vec4& color, const osg::Vec3& texcoord ); /** Flip the image horizontally, around s dimension. */